From: Peep P. <so...@us...> - 2004-06-07 15:45:30
|
Update of /cvsroot/agd/server/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9013 Modified Files: object.h Log Message: Removed uses of array_t. Index: object.h =================================================================== RCS file: /cvsroot/agd/server/src/object.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- object.h 1 Apr 2004 19:10:53 -0000 1.8 +++ object.h 7 Jun 2004 15:45:20 -0000 1.9 @@ -3,27 +3,39 @@ typedef struct { int type; - array_t args; - array_t code; + + int *args; + int numarg; + + long int *code; + int codelen; + unsigned int lineno; } function_t; typedef struct { - array_t functions; - array_t fun_table; + function_t **functions; /* This shouldn't be an array to pointers. */ + int numfunc; + char **fun_table; /* This should be a hash table. */ + + int num_str; + char **str_tbl; + int ref; } program_t; typedef struct object_t { char *name; + program_t *prog; - array_t variables; + variable_t *globals; + int numglobals; - int ref; - array_t refs; + int numref; + list_t refs; int flags; - struct object_t *location, *parent; + struct object_t *environment, *parent; struct object_t **inv; /* The interactive player associated with this object. */ |