aboutsummaryrefslogtreecommitdiff
path: root/src/espik_net.c
diff options
context:
space:
mode:
authorbeber <beber>2005-10-12 21:06:11 +0000
committerbeber <beber>2005-10-12 21:06:11 +0000
commitffb0b0bb55de21a09814502243e6d60ac01c3f37 (patch)
tree00f9eea80288f9e239f64a5f39edd4a259b95247 /src/espik_net.c
parentDude ! (diff)
downloadespik-ffb0b0bb55de21a09814502243e6d60ac01c3f37.tar.xz
How could I used #ifndef for #if ?
Diffstat (limited to 'src/espik_net.c')
-rw-r--r--src/espik_net.c12
1 files changed, 7 insertions, 5 deletions
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 <Ecore.h>
#include <Ecore_Con.h>
+#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 <unistd.h>
#include <stdlib.h>
@@ -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);