diff options
author | Akira TAGOH <akira@tagoh.org> | 2006-10-21 19:29:43 +0000 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2006-10-21 19:29:43 +0000 |
commit | f6dfc9c6c80ba6b65e18edc858b37c9a670e2dde (patch) | |
tree | f208132017e91835465350a8866956dcc0beab63 /plugins | |
parent | b9cf605d8fe87e71e2b4870ba528154ac7e2b5c9 (diff) |
2006-10-22 Akira TAGOH <at@gclab.org>
* hieroglyph/Makefile.am (libhieroglyph_la_SOURCES): added hglog.c.
* hieroglyph/hglog.[ch]: new files for logger.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/debug/debug-main.c | 5 | ||||
-rw-r--r-- | plugins/libedit/libedit-main.c | 5 | ||||
-rw-r--r-- | plugins/test/test-main.c | 5 |
3 files changed, 9 insertions, 6 deletions
diff --git a/plugins/debug/debug-main.c b/plugins/debug/debug-main.c index 7572295..c7ce966 100644 --- a/plugins/debug/debug-main.c +++ b/plugins/debug/debug-main.c @@ -26,6 +26,7 @@ #endif #include <hieroglyph/hgdict.h> +#include <hieroglyph/hglog.h> #include <hieroglyph/hgmem.h> #include <hieroglyph/hgplugins.h> #include <hieroglyph/hgstack.h> @@ -157,7 +158,7 @@ plugin_load(HgPlugin *plugin, g_return_val_if_fail (vm != NULL, FALSE); if (plugin->user_data != NULL) { - g_warning("already loaded."); + hg_log_warning("already loaded."); return FALSE; } systemdict = hg_vm_get_dict_systemdict(vm); @@ -187,7 +188,7 @@ plugin_unload(HgPlugin *plugin, g_return_val_if_fail (vm != NULL, FALSE); if (plugin->user_data != NULL) { - g_warning("not yet loaded."); + hg_log_warning("not yet loaded."); return FALSE; } diff --git a/plugins/libedit/libedit-main.c b/plugins/libedit/libedit-main.c index 2dae288..8a26cac 100644 --- a/plugins/libedit/libedit-main.c +++ b/plugins/libedit/libedit-main.c @@ -33,6 +33,7 @@ #include <hieroglyph/hgdict.h> #include <hieroglyph/hgfile.h> #include <hieroglyph/hglineedit.h> +#include <hieroglyph/hglog.h> #include <hieroglyph/hgmem.h> #include <hieroglyph/hgplugins.h> #include <hieroglyph/hgstack.h> @@ -286,7 +287,7 @@ plugin_load(HgPlugin *plugin, g_return_val_if_fail (vm != NULL, FALSE); if (plugin->user_data != NULL) { - g_warning("already loaded."); + hg_log_warning("already loaded."); return FALSE; } plugin->user_data = hg_vm_get_line_editor(vm); @@ -328,7 +329,7 @@ plugin_unload(HgPlugin *plugin, g_return_val_if_fail (vm != NULL, FALSE); if (plugin->user_data != NULL) { - g_warning("not yet loaded."); + hg_log_warning("not yet loaded."); return FALSE; } hg_vm_set_line_editor(vm, plugin->user_data); diff --git a/plugins/test/test-main.c b/plugins/test/test-main.c index 679766c..7284b74 100644 --- a/plugins/test/test-main.c +++ b/plugins/test/test-main.c @@ -28,6 +28,7 @@ #include <hieroglyph/hgarray.h> #include <hieroglyph/hgdict.h> #include <hieroglyph/hgfile.h> +#include <hieroglyph/hglog.h> #include <hieroglyph/hgmem.h> #include <hieroglyph/hgplugins.h> #include <hieroglyph/hgstack.h> @@ -244,7 +245,7 @@ plugin_load(HgPlugin *plugin, g_return_val_if_fail (vm != NULL, FALSE); if (plugin->user_data != NULL) { - g_warning("already loaded."); + hg_log_warning("already loaded."); return FALSE; } systemdict = hg_vm_get_dict_systemdict(vm); @@ -277,7 +278,7 @@ plugin_unload(HgPlugin *plugin, g_return_val_if_fail (vm != NULL, FALSE); if (plugin->user_data != NULL) { - g_warning("not yet loaded."); + hg_log_warning("not yet loaded."); return FALSE; } |