Update of /cvsroot/agd/server/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10497
Modified Files:
vars.c
Log Message:
Removed references to T_LVALUE.
Index: vars.c
===================================================================
RCS file: /cvsroot/agd/server/src/vars.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- vars.c 12 Mar 2004 08:40:10 -0000 1.7
+++ vars.c 21 Mar 2004 08:50:29 -0000 1.8
@@ -27,8 +27,6 @@
return v->u.s && strlen(v->u.s);
case T_OBJECT:
return v->u.ob?1:0;
- case T_LVALUE:
- return test_var(v->u.v);
default:
printf("test_var(): unknown datatype %d, returning false\n", v->type);
return 0;
@@ -37,11 +35,6 @@
int compare_vars(variable_t *v1, variable_t *v2)
{
- if(v1->type == T_LVALUE)
- v1 = v1->u.v;
- if(v2->type == T_LVALUE)
- v2 = v2->u.v;
-
switch(v1->type) {
case T_INT:
switch(v2->type) {
@@ -107,11 +100,11 @@
break;
case T_OBJECT: var->u.ob = NULL; break;
case T_VOID:
- printf("trying to init T_VOID\n");
- break;
+ printf("trying to init T_VOID\n");
+ break;
default:
- printf("init_var(): unhandled var type %d\n", var->type);
- break;
+ printf("init_var(): unhandled var type %d\n", var->type);
+ break;
}
}
@@ -124,11 +117,6 @@
if(!v1 || !v2)
return NULL;
- if(v1->type == T_LVALUE)
- v1 = v1->u.v;
- else if(v2->type == T_LVALUE)
- v2 = v2->u.v;
-
ret = type_xmalloc(variable_t);
ret->name = NULL; /* Just for debugging. Remove later. */
|