summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-02-21 12:42:31 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2015-02-21 12:42:31 +0100
commitbc7f4e0e3447c579f68b43d407b64a5262f0d11e (patch)
tree24dd42d1ef77d83f4d2be1d87e96f0ea440d7f11 /conf
parentab006391305165c805f75e3a2ce20946748233c9 (diff)
Bump max symbol length to 64.
And move the constant to conf.h header. Thanks to Alexander Chernikov for the patch.
Diffstat (limited to 'conf')
-rw-r--r--conf/cf-lex.l1
-rw-r--r--conf/conf.h2
2 files changed, 2 insertions, 1 deletions
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