diff options
author | Karel Kočí <cynerd@email.cz> | 2015-05-16 14:32:32 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-05-16 14:32:32 +0200 |
commit | 599690760476bf7c9c2be226c40cc70c813aa60d (patch) | |
tree | 2c7582e38c83ba00444813e2f9f84adcd30212b3 /scripts/parse_kconfig | |
parent | f189512d1a531578a87a0743d8bc6422613a1e99 (diff) | |
download | linux-conf-perf-599690760476bf7c9c2be226c40cc70c813aa60d.tar.gz linux-conf-perf-599690760476bf7c9c2be226c40cc70c813aa60d.tar.bz2 linux-conf-perf-599690760476bf7c9c2be226c40cc70c813aa60d.zip |
Implement evaluate
Diffstat (limited to 'scripts/parse_kconfig')
-rw-r--r-- | scripts/parse_kconfig/output.c | 6 | ||||
-rw-r--r-- | scripts/parse_kconfig/output.h | 3 | ||||
-rw-r--r-- | scripts/parse_kconfig/parse.c | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/scripts/parse_kconfig/output.c b/scripts/parse_kconfig/output.c index 81debaf..f931ba2 100644 --- a/scripts/parse_kconfig/output.c +++ b/scripts/parse_kconfig/output.c @@ -31,9 +31,11 @@ void output_rules_endterm(void) { } // Functions for variable_count -void output_write_variable_count(char *var_file, int count) { +void output_write_variable_count(char *var_file, int count, + unsigned lastoption) { FILE *f; f = fopen(var_file, "w"); - fprintf(f, "%d", count); + fprintf(f, "%d\n", count); + fprintf(f, "%d", lastoption); fclose(f); } diff --git a/scripts/parse_kconfig/output.h b/scripts/parse_kconfig/output.h index 2950f7a..fb3a7cf 100644 --- a/scripts/parse_kconfig/output.h +++ b/scripts/parse_kconfig/output.h @@ -19,6 +19,7 @@ void output_rules_symbol(int id); void output_rules_endterm(void); // Functions for variable_count -void output_write_variable_count(char *var_file, int count); +void output_write_variable_count(char *var_file, int count, + unsigned lastoption); #endif /* _OUTPUT_H_ */ diff --git a/scripts/parse_kconfig/parse.c b/scripts/parse_kconfig/parse.c index d7c2353..b8aded2 100644 --- a/scripts/parse_kconfig/parse.c +++ b/scripts/parse_kconfig/parse.c @@ -66,7 +66,7 @@ int main(int argc, char **argv) { cpy_dep(); output_write_variable_count(variable_count_file, - gsymlist->lastsym - 1); + gsymlist->lastsym - 1, gsymlist->pos); output_finish(); return 0; |