From 8c84d0187117f0788b184c7e6ba0cdb1ba98f955 Mon Sep 17 00:00:00 2001 From: timerix Date: Sun, 15 Jan 2023 23:50:32 +0600 Subject: [PATCH] removed non-standard unions --- src/lexer/context.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/lexer/context.h b/src/lexer/context.h index 5c2a11e..eb8c229 100644 --- a/src/lexer/context.h +++ b/src/lexer/context.h @@ -19,17 +19,11 @@ struct ContextStruct { }; typedef struct NamespaceContext{ - union { - Context base; - Context; - }; + Context base; } NamespaceContext; typedef struct FunctionContext { - union { - Context base; - Context; - }; + Context base; Autoarr(Token)* arguments; Autoarr(Token)* attributes; Token accessModifier; @@ -37,10 +31,7 @@ typedef struct FunctionContext { } FunctionContext; typedef struct ClassContext { - union { - Context base; - Context; - }; + Context base; Autoarr(Token)* attributes; Token accessModifier; } ClassContext;