mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
Add support for function symbols.
This commit is contained in:
parent
b186173d18
commit
8fb1b49a9d
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,7 @@ typedef enum {
|
||||||
sy_const, ///< symbol refers to a constant
|
sy_const, ///< symbol refers to a constant
|
||||||
sy_type, ///< symbol refers to a type
|
sy_type, ///< symbol refers to a type
|
||||||
sy_expr, ///< symbol refers to an expression
|
sy_expr, ///< symbol refers to an expression
|
||||||
|
sy_func, ///< symbol refers to a function
|
||||||
} sy_type_e;
|
} sy_type_e;
|
||||||
|
|
||||||
typedef struct symbol_s {
|
typedef struct symbol_s {
|
||||||
|
@ -61,6 +62,7 @@ typedef struct symbol_s {
|
||||||
union {
|
union {
|
||||||
int value;
|
int value;
|
||||||
struct expr_s *expr;
|
struct expr_s *expr;
|
||||||
|
struct function_s *func;
|
||||||
} s;
|
} s;
|
||||||
} symbol_t;
|
} symbol_t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue