From 4d11cf3555d32d367dcf8859080d9245f3e99915 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 20 Apr 2008 06:41:26 +0200 Subject: [PATCH] Move UNIMPLEMENTED macro to sokoke. --- src/Makefile.am | 3 +-- src/debug.h | 25 ------------------------- src/sokoke.c | 9 ++++++++- 3 files changed, 9 insertions(+), 28 deletions(-) delete mode 100644 src/debug.h diff --git a/src/Makefile.am b/src/Makefile.am index b712c206..8202314b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -30,5 +30,4 @@ midori_SOURCES = \ sokoke.c sokoke.h \ search.c search.h \ global.h \ - ui.h \ - debug.h + ui.h diff --git a/src/debug.h b/src/debug.h deleted file mode 100644 index d44b9657..00000000 --- a/src/debug.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - Copyright (C) 2007 Christian Dywan - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - See the file COPYING for the full license text. -*/ - -#ifndef __DEBUG_H__ -#define __DEBUG_H__ 1 - -#include "config.h" - -#include - -#if SOKOKE_DEBUG > 1 - #define UNIMPLEMENTED g_print(" * Unimplemented: %s\n", G_STRFUNC); -#else - #define UNIMPLEMENTED ; -#endif - -#endif /* !__DEBUG_H__ */ diff --git a/src/sokoke.c b/src/sokoke.c index bda6479b..bb38b30d 100644 --- a/src/sokoke.c +++ b/src/sokoke.c @@ -11,7 +11,7 @@ #include "sokoke.h" -#include "debug.h" +#include "config.h" #include #ifdef HAVE_UNISTD_H @@ -19,6 +19,13 @@ #endif #include #include +#include + +#if SOKOKE_DEBUG > 1 + #define UNIMPLEMENTED g_print(" * Unimplemented: %s\n", G_STRFUNC); +#else + #define UNIMPLEMENTED ; +#endif void sokoke_combo_box_add_strings(GtkComboBox* combobox , const gchar* labelFirst, ...) -- 2.39.5