summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorElliot Lee <sopwith@redhat.com>2000-08-25 22:45:48 +0000
committerElliot Lee <sopwith@src.gnome.org>2000-08-25 22:45:48 +0000
commita435aaff030e440c910d76f354f0e2157545b33e (patch)
tree6fd05675ce2fa861b748cf458ac42f0b9b2168ac /gmodule
parent8f2c74a5b24b28ec70d831a064d531ae9edeb598 (diff)
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
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/gmodule.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmodule/gmodule.h b/gmodule/gmodule.h
index 0ebe26de1..3f2148c01 100644
--- a/gmodule/gmodule.h
+++ b/gmodule/gmodule.h
@@ -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,