summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-08-27 07:40:37 -0600
committerBrian Paul <brianp@vmware.com>2009-08-27 07:40:48 -0600
commit0dd08a9e15192dec7fd97febdbb39ce25a08a525 (patch)
tree155bc202783da828fcec8b5924ec07b274af1869 /src/mesa/shader
parentba87cbf2be04d9d14d7e0b6d40508edadd4705e9 (diff)
mesa: move decls before code
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/symbol_table.c6
1 files changed, 4 insertions, 2 deletions
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);