feat(profile): fix struct Token

This commit is contained in:
phaneron 2026-04-15 13:57:31 -04:00
parent fcf5f9352a
commit 06d9db2d7e

View file

@ -2,6 +2,7 @@
#define LUA_LEX_H #define LUA_LEX_H
DECLARE_UNION(SemInfo); DECLARE_UNION(SemInfo);
DECLARE_STRUCT(Token);
DECLARE_STRUCT(LexState); DECLARE_STRUCT(LexState);
#include "lua/parser.h" #include "lua/parser.h"
@ -12,10 +13,10 @@ union SemInfo {
TString* ts; TString* ts;
}; /* semantics information */ }; /* semantics information */
typedef struct Token { struct Token {
int token; int32_t token;
SemInfo seminfo; SemInfo seminfo;
} Token; };
struct LexState { struct LexState {
int32_t current; /* current character (charint) */ int32_t current; /* current character (charint) */