Mesa (master): mesa: move decls before code
Brian Paul
brianp at kemper.freedesktop.org
Thu Aug 27 13:41:51 UTC 2009
Module: Mesa
Branch: master
Commit: 0dd08a9e15192dec7fd97febdbb39ce25a08a525
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0dd08a9e15192dec7fd97febdbb39ce25a08a525
Author: Vinson Lee <vlee at vmware.com>
Date: Thu Aug 27 07:40:37 2009 -0600
mesa: move decls before code
---
src/mesa/shader/symbol_table.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/shader/symbol_table.c b/src/mesa/shader/symbol_table.c
index 71ce128..7a9aa7b 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);
More information about the mesa-commit
mailing list