]> mj.ucw.cz Git - umpf.git/blobdiff - umpf.h
fix many little bugs, release 0.1
[umpf.git] / umpf.h
diff --git a/umpf.h b/umpf.h
index cff01db6181c1389bd7d9b34b760df1674bf16d5..0d0697f6804d686a353559b41f6a83384f13afd5 100644 (file)
--- a/umpf.h
+++ b/umpf.h
@@ -1,3 +1,4 @@
+#include <setjmp.h>
 #include "lists.h"
 
 /* definitions of internal variables */
@@ -5,6 +6,9 @@
 #define INT_VAR_LAST_EXIT "LAST_EXIT_CODE"
 #define INT_VAR_PIPE_RES "LAST_OUTPUT"
 
+/* umpf.c */
+jmp_buf env;
+
 /* cond.h */
 int yylex (void);
 void yyerror (char const *);
@@ -174,16 +178,20 @@ struct variable {
        struct node car;
        char* name;
        int varcode;
-       int modified;
        enum var_type type;
 };
 
+struct vartab {
+       char* value;
+       int modif;
+};
+
 struct list input_code;
 struct list* var_hash;
 int current_varcode;
 int max_varcode;
 int temp_varcode_start;
-char** var_tab; 
+struct vartab* var_tab; 
 char** const_tab;
 int cur_const_n;
 int cur_const_s;
@@ -225,6 +233,7 @@ void set_cur_mail_length_var(int len, struct list* hash);
 char* default_mailbox;
 int chars_written;
 int curr_email_len;
+char* fromline;
 
 struct list* current_headers;
 struct email* current_body;