[RFC PATCH 03/20] add new symbol flags for typed symbols
Asbjørn Sloth Tønnesen
ast at 2e8.dk
Mon Dec 30 17:56:29 CET 2019
---
conf/conf.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/conf/conf.h b/conf/conf.h
index 6029fee2..39015e62 100644
--- a/conf/conf.h
+++ b/conf/conf.h
@@ -156,7 +156,11 @@ struct sym_scope {
#define SYM_VAL(s) ((s)->val->val)
/* Symbol flags */
-#define SYM_FLAG_SAME 0x1 /* For SYM_FUNCTION and SYM_FILTER */
+#define SYM_FLAG_SAME 0x1 /* For SYM_FUNCTION and SYM_FILTER */
+#define SYM_FLAG_IS_TYPED 0x2 /* This is a net_typed symbol */
+#define SYM_FLAG_DO_ADAPT 0x4 /* Tihis symbol must be adapted */
+
+#define SYM_FLAGS_TYPED (SYM_FLAG_IS_TYPED | SYM_FLAG_DO_ADAPT)
struct include_file_stack {
void *buffer; /* Internal lexer state */
--
2.24.0
More information about the Bird-users
mailing list