use global const ""

This commit is contained in:
lyon 2022-04-03 10:44:21 +08:00
parent ab8c177e00
commit bd76eef3aa

View File

@ -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;