Shouldn't g_quark_from_static_string be const?
- From: Nicolás Lichtmaier <nick technisys com ar>
- To: gtk-devel-list gnome org
- Subject: Shouldn't g_quark_from_static_string be const?
- Date: Thu, 19 Dec 2002 17:13:11 -0300
Hi!
Shouldn't g_quark_from_static_string be declared with G_GNUC_CONST (
__attribute__(__const__) ) ?
As the static string won't ever change, it's safe for the compiler to
assume that the function output is entirely dependant on the pointer
value itself.
This way GCC will be able to take the function call out of loops... What
do you think?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]