From 0dd08a9e15192dec7fd97febdbb39ce25a08a525 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 27 Aug 2009 07:40:37 -0600 Subject: mesa: move decls before code --- src/mesa/shader/symbol_table.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/shader/symbol_table.c b/src/mesa/shader/symbol_table.c index 71ce1287f5..7a9aa7b8f6 100644 --- a/src/mesa/shader/symbol_table.c +++ b/src/mesa/shader/symbol_table.c @@ -287,10 +287,12 @@ _mesa_symbol_table_add_symbol(struct _mesa_symbol_table *table, int name_space, const char *name, void *declaration) { + struct symbol_header *hdr; + struct symbol *sym; + check_symbol_table(table); - struct symbol_header *hdr = find_symbol(table, name); - struct symbol *sym; + hdr = find_symbol(table, name); check_symbol_table(table); -- cgit v1.2.3