Add doc comments. (g_win32_get_package_installation_directory): Add one

2001-01-17  Tor Lillqvist  <tml@iki.fi>

	* gwin32.c (g_win32_getlocale, g_win32_error_message): Add doc
	comments.
	(g_win32_get_package_installation_directory): Add one parameter,
	the name of a DLL in the package. Add possibility to use that to
	deduce the installation directory if not entered into the
	Registry. Make the return value dynamically allocated.
	(g_win32_get_package_installation_subdirectory): New convenience
	function.

	* gutils.c (GLIB_LOCALE_DIR)
	* gwin32.h: Adapt accordingly.

	* testglib.c (main): Adapt tests accordingly.
This commit is contained in:
Tor Lillqvist
2001-01-17 21:37:32 +00:00
committed by Tor Lillqvist
parent ff51072d50
commit 69dbd6eb03
18 changed files with 510 additions and 86 deletions

View File

@@ -1009,11 +1009,12 @@ g_get_codeset (void)
#ifdef G_OS_WIN32
#define GLIB_LOCALE_DIR \
g_strconcat (g_win32_get_package_installation_directory (GETTEXT_PACKAGE), \
G_DIR_SEPARATOR_S, \
"locale", \
NULL)
#define GLIB_LOCALE_DIR \
g_win32_get_package_installation_subdirectory \
(GETTEXT_PACKAGE, g_strdup_printf ("glib-%d.%d.dll", \
GLIB_MAJOR_VERSION, \
GLIB_MINOR_VERSION), \
"locale")
#endif /* G_OS_WIN32 */