]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Conf: Move definition of struct keyword to conf.h
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 14 Sep 2023 15:24:09 +0000 (17:24 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 14 Sep 2023 15:24:09 +0000 (17:24 +0200)
conf/cf-lex.l
conf/conf.h

index cee0e63e90afa7b577c540cf2d474b4778522fb5..dd62e31a3821b40e9d13bc1c62e55cf0bb3e8579 100644 (file)
 #include "lib/string.h"
 #include "lib/hash.h"
 
-struct keyword {
-  byte *name;
-  int value;
-};
-
 #include "conf/keywords.h"
 
 /* Could be defined by Bison in cf-parse.tab.h, inteferes with SYM hash */
index 1413cb581bd09fff80ec7191e0bf38b4ce6a3cd0..c301df1d286ac2cf2874f9a07d2fd0cedc25b34e 100644 (file)
@@ -110,6 +110,11 @@ void cfg_copy_list(list *dest, list *src, unsigned node_size);
 
 extern int (*cf_read_hook)(byte *buf, uint max, int fd);
 
+struct keyword {
+  byte *name;
+  int value;
+};
+
 struct symbol {
   node n;                              /* In list of symbols in config */
   struct symbol *next;