Browse Source

- minor fix, enclosed macro argument in brackets

development
Andreas Romeyke 10 months ago
parent
commit
8993d5097b
  1. 4
      src/parser/config_parser.c

4
src/parser/config_parser.c

@ -32,7 +32,7 @@ parser_state_t parser_state;
#define YY_INPUT(yyctx, buf, result, max_size) \
{ \
int yyc= fgetc(parser_state.stream); \
result= (EOF == yyc) ? 0 : (*(buf)= yyc, 1); \
(result)= (EOF == yyc) ? 0 : (*(buf)= yyc, 1); \
yyprintf((stderr, "<%c>", yyc)); \
}
@ -84,7 +84,7 @@ void print_plan () {
CHECKOVERFLOW(SPACE_P, NAME) \
CHECKUNDERFLOW(SPACE_P, NAME) \
for (int j=0; j< (SPACE_P)->NAME ## _stackp; j++)\
printf(" " #SPACE_P "->" #NAME "-stack value[ %i ] --> %s\n", j, VSTRINGARRAY[(SPACE_P)->NAME ## _stack[j]]);\
printf(" " #SPACE_P "->" #NAME "-stack value[ %i ] --> %s\n", j, (VSTRINGARRAY)[(SPACE_P)->NAME ## _stack[j]]);\
//endmacro PRINTV

Loading…
Cancel
Save