From 4a01b7fc2bbabcfe5da7df6cbc3e0d4cde80a509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 13 Apr 2015 13:16:41 +0200 Subject: write_solution to not search for NONAMEGEN --- scripts/write_config/symlist.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/write_config') diff --git a/scripts/write_config/symlist.c b/scripts/write_config/symlist.c index 71d9470..51904bc 100644 --- a/scripts/write_config/symlist.c +++ b/scripts/write_config/symlist.c @@ -1,5 +1,7 @@ #include "symlist.h" +#define NONAMEGEN "NONAMEGEN" + struct symlist *symlist_read(FILE * f) { struct symlist *ret; ret = malloc(sizeof(struct symlist)); @@ -23,7 +25,10 @@ struct symlist *symlist_read(FILE * f) { ret->size * sizeof(struct symlist_el)); } ret->array[(size_t) id - 1].id = id; - ret->array[(size_t) id - 1].sym = sym_lookup(w, 0); + if (!strncmp(w, NONAMEGEN, strlen(NONAMEGEN))) + ret->array[(size_t) id - 1].sym = NULL; + else + ret->array[(size_t) id - 1].sym = sym_lookup(w, 0); w_pos = 0; } else if (c == ':') { w[w_pos] = '\0'; -- cgit v1.2.3