From bc7f4e0e3447c579f68b43d407b64a5262f0d11e Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 21 Feb 2015 12:42:31 +0100 Subject: [PATCH] Bump max symbol length to 64. And move the constant to conf.h header. Thanks to Alexander Chernikov for the patch. --- conf/cf-lex.l | 1 - conf/conf.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/cf-lex.l b/conf/cf-lex.l index b3e13311..61e04075 100644 --- a/conf/cf-lex.l +++ b/conf/cf-lex.l @@ -61,7 +61,6 @@ static struct keyword *kw_hash[KW_HASH_SIZE]; static int kw_hash_inited; #define SYM_HASH_SIZE 128 -#define SYM_MAX_LEN 32 struct sym_scope { struct sym_scope *next; /* Next on scope stack */ diff --git a/conf/conf.h b/conf/conf.h index 799873d2..00a8c8f2 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -108,6 +108,8 @@ struct symbol { char name[1]; }; +#define SYM_MAX_LEN 64 + /* Remember to update cf_symbol_class_name() */ #define SYM_VOID 0 #define SYM_PROTO 1