aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-11 04:00:27 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-11 04:00:27 +0100
commit5a8092304d155448b00ff5f064abe77abbdaa6ae (patch)
tree8a444109517e2ae85128040208fcec36c6a6f887 /src/mds-kbdc
parentm (diff)
downloadmds-5a8092304d155448b00ff5f064abe77abbdaa6ae.tar.gz
mds-5a8092304d155448b00ff5f064abe77abbdaa6ae.tar.bz2
mds-5a8092304d155448b00ff5f064abe77abbdaa6ae.tar.xz
CHARS_END => END
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-kbdc')
-rw-r--r--src/mds-kbdc/make-tree.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mds-kbdc/make-tree.c b/src/mds-kbdc/make-tree.c
index 908d681..cd4a8fb 100644
--- a/src/mds-kbdc/make-tree.c
+++ b/src/mds-kbdc/make-tree.c
@@ -260,7 +260,7 @@
/**
* Test that there are no more parameters
*/
-#define CHARS_END \
+#define END \
while (*line && (*line == ' ')) \
line++; \
do \
@@ -307,7 +307,7 @@
#define QUOTES_1(var) \
QUOTES; \
CHARS(var); \
- CHARS_END
+ END
/**
@@ -504,7 +504,7 @@ int parse_to_tree(const char* restrict filename, mds_kbdc_tree_t** restrict resu
{
NEW_NODE(if, IF);
CHARS(condition);
- CHARS_END;
+ END;
BRANCH("if");
}
else if (!strcmp(line, "else"))
@@ -539,7 +539,7 @@ int parse_to_tree(const char* restrict filename, mds_kbdc_tree_t** restrict resu
tree_stack[stack_ptr][0]->if_.otherwise = (mds_kbdc_tree_t*)node;
line += 2;
CHARS(condition);
- CHARS_END;
+ END;
BRANCH("if");
}
else
@@ -555,7 +555,7 @@ int parse_to_tree(const char* restrict filename, mds_kbdc_tree_t** restrict resu
CHARS(last);
TEST_FOR_KEYWORD("as");
CHARS(variable);
- CHARS_END;
+ END;
BRANCH("for");
}
else if (!strcmp(line, "let")) ; /* TODO */
@@ -571,7 +571,7 @@ int parse_to_tree(const char* restrict filename, mds_kbdc_tree_t** restrict resu
NEW_NODE(assumption_have_range, ASSUMPTION_HAVE_RANGE);
CHARS(first);
CHARS(last);
- CHARS_END;
+ END;
LEAF;
}
else if (!strcmp(line, "end"))
@@ -631,7 +631,7 @@ int parse_to_tree(const char* restrict filename, mds_kbdc_tree_t** restrict resu
#undef TEST_FOR_KEYWORD
#undef QUOTES_1
#undef QUOTES
-#undef CHARS_END
+#undef END
#undef CHARS
#undef NAMES_1
#undef NO_PARAMETERS