summaryrefslogtreecommitdiff
path: root/catalog/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'catalog/dump.c')
-rw-r--r--catalog/dump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/catalog/dump.c b/catalog/dump.c
index ef893d647edf..248f718d719b 100644
--- a/catalog/dump.c
+++ b/catalog/dump.c
@@ -35,24 +35,24 @@ parse(FILE *fp)
{
int ch, s1, s2, s3;
-#define TESTD(s) { \
+#define TESTD(s) do { \
if ((s = getc(fp)) == EOF) \
return; \
if (!isdigit(s)) \
continue; \
-}
-#define TESTP { \
+} while (0)
+#define TESTP do { \
if ((ch = getc(fp)) == EOF) \
return; \
if (ch != '|') \
continue; \
-}
-#define MOVEC(t) { \
+} while (0)
+#define MOVEC(t) do { \
do { \
if ((ch = getc(fp)) == EOF) \
return; \
} while (ch != (t)); \
-}
+} while (0)
for (;;) {
MOVEC('"');
TESTD(s1);