mesa: move decls before code
authorVinson Lee <vlee@vmware.com>
Thu, 27 Aug 2009 13:40:37 +0000 (07:40 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 27 Aug 2009 13:40:48 +0000 (07:40 -0600)
src/mesa/shader/symbol_table.c

index 71ce1287f54ef22e5c6357eab071a0676260e754..7a9aa7b8f653c8d47fc3f7066b1f68447cf33a87 100644 (file)
@@ -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);