diff options
-rw-r--r-- | miscutils/bc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index d8fbb6ed7..bdee14de4 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -2902,6 +2902,8 @@ static bool bc_lex_more_input(BcLex *l) | |||
2902 | 2902 | ||
2903 | IF_BC(static BC_STATUS zbc_lex_token(BcLex *l);) | 2903 | IF_BC(static BC_STATUS zbc_lex_token(BcLex *l);) |
2904 | IF_DC(static BC_STATUS zdc_lex_token(BcLex *l);) | 2904 | IF_DC(static BC_STATUS zdc_lex_token(BcLex *l);) |
2905 | #define zbc_lex_token(...) (zbc_lex_token(__VA_ARGS__) COMMA_SUCCESS) | ||
2906 | #define zdc_lex_token(...) (zdc_lex_token(__VA_ARGS__) COMMA_SUCCESS) | ||
2905 | 2907 | ||
2906 | static BC_STATUS zbc_lex_next(BcLex *l) | 2908 | static BC_STATUS zbc_lex_next(BcLex *l) |
2907 | { | 2909 | { |
@@ -3100,6 +3102,7 @@ static BC_STATUS zbc_lex_comment(BcLex *l) | |||
3100 | } | 3102 | } |
3101 | #define zbc_lex_comment(...) (zbc_lex_comment(__VA_ARGS__) COMMA_SUCCESS) | 3103 | #define zbc_lex_comment(...) (zbc_lex_comment(__VA_ARGS__) COMMA_SUCCESS) |
3102 | 3104 | ||
3105 | #undef zbc_lex_token | ||
3103 | static BC_STATUS zbc_lex_token(BcLex *l) | 3106 | static BC_STATUS zbc_lex_token(BcLex *l) |
3104 | { | 3107 | { |
3105 | BcStatus s = BC_STATUS_SUCCESS; | 3108 | BcStatus s = BC_STATUS_SUCCESS; |
@@ -3290,6 +3293,7 @@ static BC_STATUS zbc_lex_token(BcLex *l) | |||
3290 | 3293 | ||
3291 | RETURN_STATUS(s); | 3294 | RETURN_STATUS(s); |
3292 | } | 3295 | } |
3296 | #define zbc_lex_token(...) (zbc_lex_token(__VA_ARGS__) COMMA_SUCCESS) | ||
3293 | #endif // ENABLE_BC | 3297 | #endif // ENABLE_BC |
3294 | 3298 | ||
3295 | #if ENABLE_DC | 3299 | #if ENABLE_DC |
@@ -3356,6 +3360,7 @@ static BC_STATUS zdc_lex_string(BcLex *l) | |||
3356 | } | 3360 | } |
3357 | #define zdc_lex_string(...) (zdc_lex_string(__VA_ARGS__) COMMA_SUCCESS) | 3361 | #define zdc_lex_string(...) (zdc_lex_string(__VA_ARGS__) COMMA_SUCCESS) |
3358 | 3362 | ||
3363 | #undef zdc_lex_token | ||
3359 | static BC_STATUS zdc_lex_token(BcLex *l) | 3364 | static BC_STATUS zdc_lex_token(BcLex *l) |
3360 | { | 3365 | { |
3361 | static const //BcLexType - should be this type, but narrower type saves size: | 3366 | static const //BcLexType - should be this type, but narrower type saves size: |
@@ -3500,6 +3505,7 @@ static BC_STATUS zdc_lex_token(BcLex *l) | |||
3500 | 3505 | ||
3501 | RETURN_STATUS(s); | 3506 | RETURN_STATUS(s); |
3502 | } | 3507 | } |
3508 | #define zdc_lex_token(...) (zdc_lex_token(__VA_ARGS__) COMMA_SUCCESS) | ||
3503 | #endif // ENABLE_DC | 3509 | #endif // ENABLE_DC |
3504 | 3510 | ||
3505 | static void bc_parse_push(BcParse *p, char i) | 3511 | static void bc_parse_push(BcParse *p, char i) |