mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Mark the following functions G_GNUC_CONST (to allow betteroptimization)
2000-08-25 Elliot Lee <sopwith@redhat.com> * glib.h, gunicode.h, gmodule/gmodule.h: Mark the following functions G_GNUC_CONST (to allow betteroptimization) because their results are a function of only their parameters: g_int_hash, g_int_equal, g_direct_hash, g_direct_equal, g_quark_to_string, g_date_is_leap_year, g_date_days_in_month, g_date_monday_weeks_in_year, g_date_sunday_weeks_in_year, g_spaced_primes_closest, g_unichar_is*, g_unichar_to*, g_unichar_*digit_value, g_unichar_type
This commit is contained in:
@@ -57,7 +57,7 @@ typedef const gchar* (*GModuleCheckInit) (GModule *module);
|
||||
typedef void (*GModuleUnload) (GModule *module);
|
||||
|
||||
/* return TRUE if dynamic module loading is supported */
|
||||
gboolean g_module_supported (void);
|
||||
gboolean g_module_supported (void) G_GNUC_CONST;
|
||||
|
||||
/* open a module `file_name' and return handle, which is NULL on error */
|
||||
GModule* g_module_open (const gchar *file_name,
|
||||
|
Reference in New Issue
Block a user