aboutsummaryrefslogtreecommitdiff
path: root/util/bincfg/bincfg.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2019-01-26 10:09:13 +0000
committerPatrick Georgi <pgeorgi@google.com>2019-01-26 13:35:43 +0000
commit175778f059b21f1bce06e1405647e292b3e8e6d6 (patch)
treeec792216e015beeb96c5e437b39b56ac84d9707c /util/bincfg/bincfg.h
parent3f7fd588239eea6d078c2fd96a7fd16569cd1112 (diff)
Revert "util/bincfg: code cleanup: convert sym_table to a local variable"
This reverts commit 48c24ce5eefe64b1aa82237f0a4be2772c686ef6. Reason for revert: Commit broke bincfg, and sym_table as a global variable is less bad than passing it around in function calls. Change-Id: Ib8d64a1dc201d17a4e278ab0114958b6807a45ac Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/31105 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'util/bincfg/bincfg.h')
-rw-r--r--util/bincfg/bincfg.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/bincfg/bincfg.h b/util/bincfg/bincfg.h
index c0e1242f83..b8c668889e 100644
--- a/util/bincfg/bincfg.h
+++ b/util/bincfg/bincfg.h
@@ -37,12 +37,13 @@ struct blob {
unsigned int lenactualblob;
};
-static struct field *putsym(field_ptr_t, char const *, unsigned int);
-static struct field *getsym(field_ptr_t, char const *);
-static void yyerror(FILE *, field_ptr_t, char const *);
-int yylex(void);
+static struct field *putsym (char const *, unsigned int);
+static struct field *getsym (char const *);
+static void yyerror (FILE* fp, char const *);
+int yylex (void);
static struct blob *binary;
+static struct field *sym_table;
static struct field *sym_table_tail;
#endif /* __BINCFG_H */