From 1d53e1813e2519c966a527efc20a1b5795f25b60 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Sun, 27 Jan 2013 11:05:50 +0000 Subject: 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 --- assembler/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'assembler/main.c') 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 = ""; -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 { -- cgit v1.2.3