Revert "util/bincfg: code cleanup: convert sym_table to a local variable"

This reverts commit 48c24ce5ee.

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>
This commit is contained in:
Angel Pons
2019-01-26 10:09:13 +00:00
committed by Patrick Georgi
parent 3f7fd58823
commit 175778f059
2 changed files with 41 additions and 61 deletions

View File

@@ -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 */