]> mj.ucw.cz Git - umpf.git/blobdiff - umpf.h
redo variables
[umpf.git] / umpf.h
diff --git a/umpf.h b/umpf.h
index e379c8400a0a1120f910c35e7abc044b4ccf3008..35f65ef7c352a39dbdfb9de0ea1636e02d267465 100644 (file)
--- a/umpf.h
+++ b/umpf.h
@@ -13,6 +13,12 @@ enum keyword {
        K_FILTER
 };
 
+enum var_type {
+       VAR_HEADER,
+       VAR_INTERN,
+       VAR_USER
+};
+
 struct tree {
        enum {
                ST_IF,
@@ -164,6 +170,7 @@ struct variable {
        char* name;
        int varcode;
        int modified;
+       enum var_type type;
 };
 
 struct list input_code;
@@ -179,8 +186,8 @@ char* empty;
 
 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);