diff options
author | Denys Vlasenko | 2010-06-17 20:20:24 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-06-17 20:20:24 +0200 |
commit | 2f41e7ea5700aab61f32a1db97569f832563fbd8 (patch) | |
tree | 27718bc88b201f0f917fd249a62e37b587413c5c /scripts/basic/fixdep.c | |
parent | 3324c963352392c00bda9eb77b815f0db9f6bdb7 (diff) | |
download | busybox-2f41e7ea5700aab61f32a1db97569f832563fbd8.zip busybox-2f41e7ea5700aab61f32a1db97569f832563fbd8.tar.gz |
fix extra bogus files generation in include/config/*
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/basic/fixdep.c')
-rw-r--r-- | scripts/basic/fixdep.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index bbb575c..1a5b10f 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -243,22 +243,27 @@ void parse_config_file(char *map, size_t len) if (!memcmp(p, "IF_NOT", 6)) goto conf7; } /* we have at least 3 chars because of p <= end_3 */ - /*if (!memcmp(p, "IF_", 3)) goto conf3;*/ - if (p[0] == 'I' && p[1] == 'F' && p[2] == '_') goto conf3; + /*if (!memcmp(p, "IF_", 3)) ...*/ + if (p[0] == 'I' && p[1] == 'F' && p[2] == '_') { + off = 3; + goto conf; + } /* This identifier is not interesting, skip it */ while (p <= end_3 && (isalnum(*p) || *p == '_')) p++; continue; - conf3: off = 3; conf7: off = 7; + conf: p += off; for (q = p; q < end_3+3; q++) { if (!(isalnum(*q) || *q == '_')) break; } - use_config(p, q-p); + if (q != p) { + use_config(p, q-p); + } } } |