mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 00:46:16 +01:00
glib/gwin32.h Add const to gchar* arguments. (#384523, Yevgen Muntyan)
2006-12-27 Tor Lillqvist <tml@novell.com> * 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)
This commit is contained in:
parent
e6b78c9af1
commit
90d70c5967
@ -1,3 +1,11 @@
|
||||
2006-12-27 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* 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 <desrt@desrt.ca>
|
||||
|
||||
* glib/ghash.c: cache the value of the hash function
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user