2005-01-19 Jeffrey Stedfast <fejj@novell.com>
+ * providers/imap4/camel-imap4-command.c: Disable debugging spew
+ unless imap4:command is enabled.
+
* camel-offline-folder.c (camel_offline_folder_downsync): Documented.
* camel-offline-store.c (camel_offline_store_set_network_state):
#include "camel-imap4-command.h"
-#define d(x) x
+#define d(x) (camel_debug ("imap4:command") ? (x) : 0)
enum {
d(fprintf (stderr, "sending: %s ", ic->tag));
}
-#if d(!)0
- {
+ if (camel_debug ("imap4:command")) {
int sending = ic->part != ic->parts;
unsigned char *eoln, *eob;
sending = 1;
} while (linebuf < eob);
}
-#endif
linebuf = ic->part->buffer;
len = ic->part->buflen;
goto exception;
}
} else {
-#if d(!)0
- fprintf (stderr, "expected anything but this: ");
- unexpected_token (&token);
- fprintf (stderr, "\n");
-#endif
+ if (camel_debug ("imap4:command")) {
+ fprintf (stderr, "expected anything but this: ");
+ unexpected_token (&token);
+ fprintf (stderr, "\n");
+ }
goto unexpected;
}
break;
} else {
-#if d(!)0
- fprintf (stderr, "wtf is this: ");
- unexpected_token (&token);
- fprintf (stderr, "\n");
-#endif
+ if (camel_debug ("imap4:command")) {
+ fprintf (stderr, "wtf is this: ");
+ unexpected_token (&token);
+ fprintf (stderr, "\n");
+ }
unexpected: