From 90d70c596701c902d4388fce02d9f53080084f45 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 27 Dec 2006 14:50:17 +0000 Subject: [PATCH] glib/gwin32.h Add const to gchar* arguments. (#384523, Yevgen Muntyan) 2006-12-27 Tor Lillqvist * glib/gwin32.h * glib/gwin32.c (get_package_directory_from_module) (g_win32_get_package_installation_directory) (g_win32_get_package_installation_subdirectory): Add const to gchar* arguments. (#384523, Yevgen Muntyan) --- ChangeLog | 8 ++++++++ glib/gwin32.c | 22 +++++++++++----------- glib/gwin32.h | 10 +++++----- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index fafe3fe0..53df5ee7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-12-27 Tor Lillqvist + + * glib/gwin32.h + * glib/gwin32.c (get_package_directory_from_module) + (g_win32_get_package_installation_directory) + (g_win32_get_package_installation_subdirectory): Add const to + gchar* arguments. (#384523, Yevgen Muntyan) + 2006-12-27 Ryan Lortie * glib/ghash.c: cache the value of the hash function diff --git a/glib/gwin32.c b/glib/gwin32.c index f7a295e4..b2a53510 100644 --- a/glib/gwin32.c +++ b/glib/gwin32.c @@ -1081,7 +1081,7 @@ g_win32_error_message (gint error) } static gchar * -get_package_directory_from_module (gchar *module_name) +get_package_directory_from_module (const gchar *module_name) { static GHashTable *module_dirs = NULL; G_LOCK_DEFINE_STATIC (module_dirs); @@ -1184,8 +1184,8 @@ get_package_directory_from_module (gchar *module_name) **/ gchar * -g_win32_get_package_installation_directory (gchar *package, - gchar *dll_name) +g_win32_get_package_installation_directory (const gchar *package, + const gchar *dll_name) { static GHashTable *package_dirs = NULL; G_LOCK_DEFINE_STATIC (package_dirs); @@ -1264,8 +1264,8 @@ g_win32_get_package_installation_directory (gchar *package, /* DLL ABI binary compatibility version that uses system codepage file names */ gchar * -g_win32_get_package_installation_directory (gchar *package, - gchar *dll_name) +g_win32_get_package_installation_directory (const gchar *package, + const gchar *dll_name) { gchar *utf8_package = NULL, *utf8_dll_name = NULL; gchar *utf8_retval, *retval; @@ -1307,9 +1307,9 @@ g_win32_get_package_installation_directory (gchar *package, **/ gchar * -g_win32_get_package_installation_subdirectory (gchar *package, - gchar *dll_name, - gchar *subdir) +g_win32_get_package_installation_subdirectory (const gchar *package, + const gchar *dll_name, + const gchar *subdir) { gchar *prefix; gchar *dirname; @@ -1327,9 +1327,9 @@ g_win32_get_package_installation_subdirectory (gchar *package, /* DLL ABI binary compatibility version that uses system codepage file names */ gchar * -g_win32_get_package_installation_subdirectory (gchar *package, - gchar *dll_name, - gchar *subdir) +g_win32_get_package_installation_subdirectory (const gchar *package, + const gchar *dll_name, + const gchar *subdir) { gchar *prefix; gchar *dirname; diff --git a/glib/gwin32.h b/glib/gwin32.h index 92977d34..9c104477 100644 --- a/glib/gwin32.h +++ b/glib/gwin32.h @@ -82,12 +82,12 @@ gchar* g_win32_error_message (gint error); #define g_win32_get_package_installation_directory g_win32_get_package_installation_directory_utf8 #define g_win32_get_package_installation_subdirectory g_win32_get_package_installation_subdirectory_utf8 -gchar* g_win32_get_package_installation_directory (gchar *package, - gchar *dll_name); +gchar* g_win32_get_package_installation_directory (const gchar *package, + const gchar *dll_name); -gchar* g_win32_get_package_installation_subdirectory (gchar *package, - gchar *dll_name, - gchar *subdir); +gchar* g_win32_get_package_installation_subdirectory (const gchar *package, + const gchar *dll_name, + const gchar *subdir); guint g_win32_get_windows_version (void); -- 2.34.1