From ffb0b0bb55de21a09814502243e6d60ac01c3f37 Mon Sep 17 00:00:00 2001 From: beber Date: Wed, 12 Oct 2005 21:06:11 +0000 Subject: How could I used #ifndef for #if ? --- src/espik_net.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/espik_net.c') diff --git a/src/espik_net.c b/src/espik_net.c index 14ef5fe..510ead1 100644 --- a/src/espik_net.c +++ b/src/espik_net.c @@ -4,11 +4,11 @@ #include #include +#include "espik_global.h" #include "espik_net.h" #include "espik_common_handler.h" #include "espik_error.h" #include "espik.h" -#include "espik_global.h" #include #include @@ -35,13 +35,13 @@ void espik_con_init (t_info serv_info) void espik_con_shutdown () { -#ifdef _D_ +#if _ESPIK_DEBUG_ printf ("> espik_con_shutdown\n"); #endif ecore_con_server_del (con_sock); ecore_con_shutdown (); -#ifdef _D_ +#if _ESPIK_DEBUG_ printf ("< espik_con_shutdown\n"); #endif /* ecore_main_loop_quit (); */ @@ -58,16 +58,18 @@ void espik_raw_send (char *msg) snprintf (out, len, "%s\r\n", msg); -#ifdef _D_ +#if _ESPIK_DEBUG_ printf ("espik_raw_send:\nmsg: %s\nout: %s\n", msg, out); +#endif /* printf ("out[len-3]: 0x%X\n", out[len - 3]); printf ("out[len-2]: 0x%X\n", out[len - 2]); printf ("out[len-1]: 0x%X\n", out[len - 1]); */ +#if _ESPIK_DEBUG_ printf ("ecore_con_server_send: %d\n", ecore_con_server_send (con_sock, - out, strlen (out))); + out, strlen (out))); #endif free (out); -- cgit v1.2.3