mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
New function that returns the message string for a Win32 error code.
2000-03-04 Tor Lillqvist <tml@iki.fi> * gwin32.c (g_win32_error_message): New function that returns the message string for a Win32 error code. * glib.h: Declare it. * glib.def: Export it, plus g_node_copy. * gmodule-win32.c: Call g_win32_error_message() to get the error message strings. * libgplugin_a.c * libgplugin_b.c * gmodule.c: Remove LibMain functions that were needed by LCC, which is not a supported compiler. * testgmodule.c (main): Test for G_MODULE_IMPL == G_MODULE_IMPL_WIN32, not G_OS_WIN32. * gmoduleconf.h.win32: Remove LCC stuff from here, too.
This commit is contained in:
parent
db8baf6978
commit
c35ab34774
6
glib.h
6
glib.h
@ -2905,6 +2905,12 @@ gint g_win32_closedir (DIR *dir);
|
|||||||
*/
|
*/
|
||||||
gchar * g_win32_getlocale (void);
|
gchar * g_win32_getlocale (void);
|
||||||
|
|
||||||
|
/* Translate a Win32 error code (as returned by GetLastError()) into
|
||||||
|
* the corresponding message. The returned string should be deallocated
|
||||||
|
* with g_free().
|
||||||
|
*/
|
||||||
|
gchar * g_win32_error_message (gint error);
|
||||||
|
|
||||||
#endif /* G_OS_WIN32 */
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
|
|
||||||
|
@ -2905,6 +2905,12 @@ gint g_win32_closedir (DIR *dir);
|
|||||||
*/
|
*/
|
||||||
gchar * g_win32_getlocale (void);
|
gchar * g_win32_getlocale (void);
|
||||||
|
|
||||||
|
/* Translate a Win32 error code (as returned by GetLastError()) into
|
||||||
|
* the corresponding message. The returned string should be deallocated
|
||||||
|
* with g_free().
|
||||||
|
*/
|
||||||
|
gchar * g_win32_error_message (gint error);
|
||||||
|
|
||||||
#endif /* G_OS_WIN32 */
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
2000-03-04 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* gmodule-win32.c: Call g_win32_error_message() to get the error
|
||||||
|
message strings.
|
||||||
|
|
||||||
|
* libgplugin_a.c
|
||||||
|
* libgplugin_b.c
|
||||||
|
* gmodule.c: Remove LibMain functions that were needed by LCC,
|
||||||
|
which is not a supported compiler.
|
||||||
|
|
||||||
|
* testgmodule.c (main): Test for G_MODULE_IMPL ==
|
||||||
|
G_MODULE_IMPL_WIN32, not G_OS_WIN32.
|
||||||
|
|
||||||
|
* gmoduleconf.h.win32: Remove LCC stuff from here, too.
|
||||||
|
|
||||||
Wed Mar 1 05:34:47 2000 Tim Janik <timj@gtk.org>
|
Wed Mar 1 05:34:47 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gmodule-beos.c (_g_module_symbol): do not return NULL symbols.
|
* gmodule-beos.c (_g_module_symbol): do not return NULL symbols.
|
||||||
|
@ -53,16 +53,16 @@ main (int arg,
|
|||||||
string = g_get_current_dir ();
|
string = g_get_current_dir ();
|
||||||
g_print ("testgmodule (%s):\n", string);
|
g_print ("testgmodule (%s):\n", string);
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#if (G_MODULE_IMPL == G_MODULE_IMPL_WIN32)
|
||||||
plugin_a = g_strconcat (string, "\\libgplugin_a.dll", NULL);
|
plugin_a = g_strconcat (string, "\\libgplugin_a.dll", NULL);
|
||||||
plugin_b = g_strconcat (string, "\\libgplugin_b.dll", NULL);
|
plugin_b = g_strconcat (string, "\\libgplugin_b.dll", NULL);
|
||||||
#elif (G_MODULE_IMPL == G_MODULE_IMPL_DLD)
|
#elif (G_MODULE_IMPL == G_MODULE_IMPL_DLD)
|
||||||
plugin_a = g_strconcat (string, "/.libs/", "libgplugin_a.sl", NULL);
|
plugin_a = g_strconcat (string, "/.libs/", "libgplugin_a.sl", NULL);
|
||||||
plugin_b = g_strconcat (string, "/.libs/", "libgplugin_b.sl", NULL);
|
plugin_b = g_strconcat (string, "/.libs/", "libgplugin_b.sl", NULL);
|
||||||
#else /* G_MODULE_IMPL != G_MODULE_IMPL_DLD && !G_OS_WIN32 */
|
#else /* neither DLD nor WIN32 */
|
||||||
plugin_a = g_strconcat (string, "/.libs/", "libgplugin_a.so", NULL);
|
plugin_a = g_strconcat (string, "/.libs/", "libgplugin_a.so", NULL);
|
||||||
plugin_b = g_strconcat (string, "/.libs/", "libgplugin_b.so", NULL);
|
plugin_b = g_strconcat (string, "/.libs/", "libgplugin_b.so", NULL);
|
||||||
#endif /* G_OS_WIN32 */
|
#endif
|
||||||
g_free (string);
|
g_free (string);
|
||||||
|
|
||||||
/* module handles
|
/* module handles
|
||||||
|
Loading…
Reference in New Issue
Block a user