From 9ffea830b673a8b8506877a371e0c9fc52c99b94 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 14 Sep 2023 17:24:09 +0200 Subject: Conf: Move definition of struct keyword to conf.h --- conf/cf-lex.l | 5 ----- conf/conf.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'conf') diff --git a/conf/cf-lex.l b/conf/cf-lex.l index cee0e63e..dd62e31a 100644 --- a/conf/cf-lex.l +++ b/conf/cf-lex.l @@ -51,11 +51,6 @@ #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 */ diff --git a/conf/conf.h b/conf/conf.h index 1413cb58..c301df1d 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -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; -- cgit v1.2.3