aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-01-19 16:33:32 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-01-19 16:33:32 +0200
commit284be00c81407735cc8ddec1f1353b867b2deffd (patch)
treef221a3fe79d9feedf3cdd64949d2462c8e31a47b /include
parent94202d7e094bc39b04ecd96184bb9c5e61890d41 (diff)
downloadek-284be00c81407735cc8ddec1f1353b867b2deffd.tar.gz
ek-284be00c81407735cc8ddec1f1353b867b2deffd.zip
improve export model
Diffstat (limited to 'include')
-rw-r--r--include/ek/ast.h1
-rw-r--r--include/ek/scope.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/ek/ast.h b/include/ek/ast.h
index 81b1a85..5c1c6e6 100644
--- a/include/ek/ast.h
+++ b/include/ek/ast.h
@@ -751,6 +751,7 @@ struct type *reverse_type_list(struct type *root);
struct ast *chain_base(struct ast *node);
struct ast *clone_chain(struct ast *chain);
+bool is_subchain(struct ast *sub, struct ast *top);
int type_lists_match(struct type *a, struct type *b);
diff --git a/include/ek/scope.h b/include/ek/scope.h
index d8a5974..aedeacf 100644
--- a/include/ek/scope.h
+++ b/include/ek/scope.h
@@ -340,4 +340,9 @@ bool is_exported_type(struct scope *scope, struct ast *def);
bool is_exported_symbol(struct scope *scope, struct ast *def);
bool is_exported_macro(struct scope *scope, struct ast *def);
+int scope_add_exported_symbol(struct scope *scope, struct ast *def);
+int scope_add_exported_type(struct scope *scope, struct ast *def);
+int scope_add_exported_chain(struct scope *scope, struct ast *def);
+int scope_add_exported_macro(struct scope *scope, struct ast *def);
+
#endif /* SCOPE_H */