summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/types.h b/types.h
index 7b0e498..e6a3ff2 100644
--- a/types.h
+++ b/types.h
@@ -759,9 +759,15 @@ typedef struct Declaration {
union {
Expression expr;
struct {
- /* only exist before typing */
- Expression *name;
- Expression *lib;
+ union {
+ struct {
+ /* only exist before typing */
+ Expression *name;
+ Expression *lib;
+ };
+ /* only set for non-functions */
+ const char *name_str;
+ };
} foreign;
};
Value val; /* only for constant decls. */