Shouldn't g_quark_from_static_string be const?



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]