K_FILTER
};
+enum var_type {
+ VAR_HEADER,
+ VAR_INTERN,
+ VAR_USER
+};
+
struct tree {
enum {
ST_IF,
char* name;
int varcode;
int modified;
+ enum var_type type;
};
struct list input_code;
void init(void);
void compile(struct tree* t, struct list* where);
-int find_var(char* name, struct list* hash);
-struct variable* get_var_struct(char* name, struct list* hash);
+int find_var(char* name, enum var_type type, struct list* hash);
+struct variable* get_var_struct(char* name, enum var_type type, struct list* hash);
int store_const(char* c);
struct list* new_var_hash(void);
int get_bucket_number(char* name);