diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-27 11:05:50 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:40 +0000 |
commit | 1d53e1813e2519c966a527efc20a1b5795f25b60 (patch) | |
tree | 9294292774bb7c86ab3319f88cb33f1850d1529e /assembler/main.c | |
parent | 6d3d36953549afed7ebc9afe5e26f133173d835d (diff) |
assembler: Cleanup visibility of a few global variables/functions
Not everything has to be exported out the compilation unit. Do a small
cleanup pass.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/main.c')
-rw-r--r-- | assembler/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/assembler/main.c b/assembler/main.c index 4fe13156..269bc264 100644 --- a/assembler/main.c +++ b/assembler/main.c @@ -39,17 +39,12 @@ extern FILE *yyin; -extern int errors; - long int gen_level = 40; int advanced_flag = 0; /* 0: in unit of byte, 1: in unit of data element size */ unsigned int warning_flags = WARN_ALWAYS; -int binary_like_output = 0; /* 0: default output style, 1: nice C-style output */ int need_export = 0; char *input_filename = "<stdin>"; -char *export_filename = NULL; - -const char const *binary_prepend = "static const char gen_eu_bytes[] = {\n"; +int errors; struct brw_context genasm_brw_context; struct brw_compile genasm_compile; @@ -57,6 +52,11 @@ struct brw_compile genasm_compile; struct brw_program compiled_program; struct program_defaults program_defaults = {.register_type = BRW_REGISTER_TYPE_F}; +/* 0: default output style, 1: nice C-style output */ +static int binary_like_output = 0; +static char *export_filename = NULL; +static const char binary_prepend[] = "static const char gen_eu_bytes[] = {\n"; + #define HASH_SIZE 37 struct hash_item { |