change def_list from def_t ** to hashtab_t * and comment out some debug code

This commit is contained in:
Bill Currie 2001-10-19 00:45:56 +00:00
parent 237d238a65
commit 3572a6be28

View file

@ -32,6 +32,7 @@ static const char rcsid[] =
"$Id$"; "$Id$";
#include "qfcc.h" #include "qfcc.h"
#include "QF/hash.h"
#define YYDEBUG 1 #define YYDEBUG 1
#define YYERROR_VERBOSE 1 #define YYERROR_VERBOSE 1
@ -56,8 +57,8 @@ void finish_function (function_t *f);
void emit_function (function_t *f, expr_t *e); void emit_function (function_t *f, expr_t *e);
void build_scope (function_t *f, def_t *func); void build_scope (function_t *f, def_t *func);
def_t **save_local_inits (def_t *scope); hashtab_t *save_local_inits (def_t *scope);
void restore_local_inits (def_t **def_list); void restore_local_inits (hashtab_t *def_list);
typedef struct { typedef struct {
type_t *type; type_t *type;
@ -68,17 +69,17 @@ typedef struct {
%} %}
%union { %union {
int op; int op;
scope_t scope; scope_t scope;
def_t *def; def_t *def;
def_t **def_list; struct hashtab_s *def_list;
type_t *type; type_t *type;
expr_t *expr; expr_t *expr;
int integer_val; int integer_val;
float float_val; float float_val;
char *string_val; char *string_val;
float vector_val[3]; float vector_val[3];
float quaternion_val[4]; float quaternion_val[4];
function_t *function; function_t *function;
} }
@ -716,8 +717,8 @@ emit_function (function_t *f, expr_t *e)
pr_scope = f->def; pr_scope = f->def;
while (e) { while (e) {
print_expr (e); //print_expr (e);
puts(""); //puts("");
emit_expr (e); emit_expr (e);
e = e->next; e = e->next;
@ -730,13 +731,13 @@ emit_function (function_t *f, expr_t *e)
//puts (""); //puts ("");
} }
def_t ** hashtab_t *
save_local_inits (def_t *scope) save_local_inits (def_t *scope)
{ {
return 0; return 0;
} }
void void
restore_local_inits (def_t **def_list) restore_local_inits (hashtab_t *def_list)
{ {
} }