assembler: Don't expose functions only used in main.c
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 21 Jan 2013 22:17:54 +0000 (22:17 +0000)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Mar 2013 15:54:38 +0000 (15:54 +0000)
and make then static.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
assembler/gen4asm.h
assembler/main.c

index 388cc75..8dd08b7 100644 (file)
@@ -234,8 +234,6 @@ struct declared_register {
 };
 struct declared_register *find_register(char *name);
 void insert_register(struct declared_register *reg);
-void add_label(struct brw_program_instruction *instruction);
-int label_to_addr(char *name, int start_addr);
 
 int yyparse(void);
 int yylex(void);
index 85f0790..176835b 100644 (file)
@@ -155,7 +155,7 @@ void insert_register(struct declared_register *reg)
     insert_hash_item(declared_register_table, reg->name, reg);
 }
 
-void add_label(struct brw_program_instruction *i)
+static void add_label(struct brw_program_instruction *i)
 {
     struct label_item **p = &label_table;
 
@@ -170,7 +170,7 @@ void add_label(struct brw_program_instruction *i)
 
 /* Some assembly code have duplicated labels.
    Start from start_addr. Search as a loop. Return the first label found. */
-int label_to_addr(char *name, int start_addr)
+static int label_to_addr(char *name, int start_addr)
 {
     /* return the first label just after start_addr, or the first label from the head */
     struct label_item *p;