Skip to content

Commit fa37711

Browse files
committed
Code cleanup
1 parent d2acd20 commit fa37711

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/preprocessor.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ token_t *pp_read_constant_expr_operand(token_t *tk, int *val)
363363
tk = pp_lex_next_token(tk, true);
364364

365365
if (!strcmp("defined", tk->literal)) {
366-
macro_t *macro;
367366
tk = pp_lex_expect_token(tk, T_open_bracket, true);
368367
tk = pp_lex_expect_token(tk, T_identifier, true);
369368
val[0] = is_macro_defined(tk->literal);
@@ -792,8 +791,7 @@ token_t *preprocess_internal(token_t *tk, preprocess_ctx_t *ctx)
792791
if (hashmap_contains(PRAGMA_ONCE, inclusion_path))
793792
continue;
794793

795-
file_tks =
796-
lex_token_by_file(intern_string(inclusion_path));
794+
file_tks = lex_token_by_file(intern_string(inclusion_path));
797795
cur->next = preprocess_internal(file_tks->head, &inclusion_ctx);
798796
cur = inclusion_ctx.end_of_token;
799797
continue;
@@ -829,8 +827,7 @@ token_t *preprocess_internal(token_t *tk, preprocess_ctx_t *ctx)
829827
tk = pp_lex_next_token(tk, true);
830828
macro->is_variadic = true;
831829
macro->variadic_tk = copy_token(tk);
832-
macro->variadic_tk->literal =
833-
intern_string("__VA_ARGS__");
830+
macro->variadic_tk->literal = intern_string("__VA_ARGS__");
834831
}
835832

836833
tk = pp_lex_expect_token(tk, T_close_bracket, true);

0 commit comments

Comments
 (0)