From bd76eef3aadf3ac8f5d9944db20c87c110cce3ab Mon Sep 17 00:00:00 2001 From: lyon Date: Sun, 3 Apr 2022 10:44:21 +0800 Subject: [PATCH] use global const "" --- src/PikaParser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PikaParser.c b/src/PikaParser.c index 7a5b86d95..91287969e 100644 --- a/src/PikaParser.c +++ b/src/PikaParser.c @@ -595,8 +595,9 @@ char* Lexer_getOperator(Args* outBuffs, char* stmt) { return operator; } +const char void_str[] = ""; + void LexToken_update(struct LexToken* lex_token) { - const char void_str[] = ""; lex_token->type = Lexer_getTokenType(lex_token->token); if (lex_token->type == TOKEN_strEnd) { lex_token->pyload = (char*)void_str;