diff options
author | Michael Forney <mforney@mforney.org> | 2024-04-12 00:46:22 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-04-12 00:46:22 -0700 |
commit | 7d6efdd8626fd3a654a8f231fc1ddc481352af6a (patch) | |
tree | edc6352a07ffd5e23af2f9ffcbc4c0d0be6c38e9 /cc.h | |
parent | aefce92bd54033c49ba007fde4904dfc6ca740ff (diff) |
decl: Add name field to decl struct
Diffstat (limited to 'cc.h')
-rw-r--r-- | cc.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -271,6 +271,7 @@ enum builtinkind { }; struct decl { + char *name; enum declkind kind; enum linkage linkage; struct type *type; @@ -487,7 +488,7 @@ bool gnuattr(struct attr *, enum attrkind); /* decl */ -struct decl *mkdecl(enum declkind, struct type *, enum typequal, enum linkage); +struct decl *mkdecl(char *name, enum declkind, struct type *, enum typequal, enum linkage); bool decl(struct scope *, struct func *); struct type *typename(struct scope *, enum typequal *); @@ -501,7 +502,7 @@ void scopeinit(void); struct scope *mkscope(struct scope *); struct scope *delscope(struct scope *); -void scopeputdecl(struct scope *, const char *, struct decl *); +void scopeputdecl(struct scope *, struct decl *); struct decl *scopegetdecl(struct scope *, const char *, bool); void scopeputtag(struct scope *, const char *, struct type *); |