From fd8c639773f2bda4d5093389125efabb743233e4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 9 Nov 2012 14:37:28 +0900 Subject: [PATCH] Initialize current_symtab early, with pr.symtab. This (with the previous commit) fixes the problems with the tags for builtin structs. --- tools/qfcc/source/qfcc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/qfcc.c b/tools/qfcc/source/qfcc.c index 2d7544553..bdc43d677 100644 --- a/tools/qfcc/source/qfcc.c +++ b/tools/qfcc/source/qfcc.c @@ -163,6 +163,7 @@ InitData (void) pr.symtab = new_symtab (0, stab_global); pr.symtab->space = pr.near_data; + current_symtab = pr.symtab; pr.entity_data = defspace_new (); pr.entity_fields = new_symtab (0, stab_global);