diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-01 21:09:34 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-01 21:09:34 +0100 |
commit | a305845024061cc72d534573f3038014af4c1621 (patch) | |
tree | 8e6b2fcc6d0f6996c397ca9d45882bd5ca40f69d /src/mds-kbdc | |
parent | mds-kbdc: m (diff) | |
download | mds-a305845024061cc72d534573f3038014af4c1621.tar.gz mds-a305845024061cc72d534573f3038014af4c1621.tar.bz2 mds-a305845024061cc72d534573f3038014af4c1621.tar.xz |
mds-kbdc: m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-kbdc')
-rw-r--r-- | src/mds-kbdc/eliminate-dead-code.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mds-kbdc/eliminate-dead-code.c b/src/mds-kbdc/eliminate-dead-code.c index 495cbb5..586faa7 100644 --- a/src/mds-kbdc/eliminate-dead-code.c +++ b/src/mds-kbdc/eliminate-dead-code.c @@ -35,7 +35,7 @@ * @param ...:const char*, ... Error description format string and arguments * @scope error:mds_kbdc_parse_error_t* Variable where the new error will be stored */ -#define NEW_ERROR(NODE, SEVERITY, ...) \ +#define NEW_ERROR_WITHOUT_INCLUDES(NODE, SEVERITY, ...) \ NEW_ERROR_(result, SEVERITY, 1, (NODE)->loc_line, \ (NODE)->loc_start, (NODE)->loc_end, 1, __VA_ARGS__) @@ -56,10 +56,10 @@ * @param ...:const char*, ... Error description format string and arguments * @scope error:mds_kbdc_parse_error_t* Variable where the new error will be stored */ -#define NEW_ERROR_WITH_INCLUDES(NODE, PTR, SEVERITY, ...) \ +#define NEW_ERROR(NODE, PTR, SEVERITY, ...) \ do \ { \ - NEW_ERROR(NODE, SEVERITY, __VA_ARGS__); \ + NEW_ERROR_WITHOUT_INCLUDES(NODE, SEVERITY, __VA_ARGS__); \ DUMP_INCLUDE_STACK(PTR); \ } \ while (0) @@ -127,7 +127,7 @@ static int dump_include_stack(size_t ptr) { result->pathname = ptr ? includes[ptr - 1]->filename : original_pathname; result->source_code = ptr ? includes[ptr - 1]->source_code : original_source_code; - NEW_ERROR(includes[ptr], NOTE, "included from here"); + NEW_ERROR_WITHOUT_INCLUDES(includes[ptr], NOTE, "included from here"); } result->pathname = old_pathname; result->source_code = old_source_code; @@ -216,9 +216,9 @@ int eliminate_dead_code(mds_kbdc_parsed_t* restrict result_) -#undef NEW_ERROR_WITH_INCLUDES -#undef DUMP_INCLUDE_STACK #undef NEW_ERROR +#undef DUMP_INCLUDE_STACK +#undef NEW_ERROR_WITHOUT_INCLUDES #undef C |