]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bump max symbol length to 64.
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 Feb 2015 11:42:31 +0000 (12:42 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 Feb 2015 11:42:31 +0000 (12:42 +0100)
And move the constant to conf.h header.

Thanks to Alexander Chernikov for the patch.

conf/cf-lex.l
conf/conf.h

index b3e13311e27db6b712c328f2992a60d2f31b70d4..61e0407585dec08d1589ce3ec628a5a5b34766e5 100644 (file)
@@ -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 */
index 799873d2b0cf615e772b757c66841a20555e3f1d..00a8c8f21812404363436a2417061b99eadf6ef0 100644 (file)
@@ -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