diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-03-01 09:44:10 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-03-01 09:44:10 +0000 |
commit | c35ab347744adae6d8f2466464c4cc1c3b503c7d (patch) | |
tree | 7f3f497a82efcffb39cd999006a767ac81cf12fd /glib.h | |
parent | db8baf697889c80c0632d7cc91343c18a2647429 (diff) | |
download | glib-c35ab347744adae6d8f2466464c4cc1c3b503c7d.tar.gz |
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.
Diffstat (limited to 'glib.h')
-rw-r--r-- | glib.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2905,6 +2905,12 @@ gint g_win32_closedir (DIR *dir); */ 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 */ |