From: Ondrej Zajicek Date: Sat, 21 Feb 2015 11:42:31 +0000 (+0100) Subject: Bump max symbol length to 64. X-Git-Tag: v1.5.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc7f4e0e3447c579f68b43d407b64a5262f0d11e;p=thirdparty%2Fbird.git Bump max symbol length to 64. And move the constant to conf.h header. Thanks to Alexander Chernikov for the patch. --- diff --git a/conf/cf-lex.l b/conf/cf-lex.l index b3e13311e..61e040758 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 799873d2b..00a8c8f21 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