diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-13 13:16:41 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-13 13:16:41 +0200 |
commit | 4a01b7fc2bbabcfe5da7df6cbc3e0d4cde80a509 (patch) | |
tree | 5a26bcd6500f5eb0b5fc827f8a78851971335bed /scripts | |
parent | 48be82acc5de1ff06e909cbb2ca7e63fc7a48546 (diff) | |
download | linux-conf-perf-4a01b7fc2bbabcfe5da7df6cbc3e0d4cde80a509.tar.gz linux-conf-perf-4a01b7fc2bbabcfe5da7df6cbc3e0d4cde80a509.tar.bz2 linux-conf-perf-4a01b7fc2bbabcfe5da7df6cbc3e0d4cde80a509.zip |
write_solution to not search for NONAMEGEN
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/write_config/symlist.c | 7 |
1 files changed, 6 insertions, 1 deletions
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'; |