From 5a8092304d155448b00ff5f064abe77abbdaa6ae Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 11 Nov 2014 04:00:27 +0100 Subject: CHARS_END => END MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/make-tree.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/mds-kbdc/make-tree.c') 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 -- cgit v1.2.3-70-g09d2