5 void yyerror (char const *);
26 } st; /* subtree type */
29 struct tree* c; /* condition */
30 struct tree* i; /* if */
31 struct tree* e; /* else */
38 JUST_BOOL /* value only in left, no op */
43 } cond; /* binary operator */
79 struct tree* input_tree;
82 #define CC(a,b) ((a<<8)|b)
83 void* xmalloc(size_t size);
84 void* xrealloc(void* buf, size_t size);
85 char* xstrdup(const char* s);
86 void __attribute__ ((noreturn)) die(char* msg, ...);
87 void read_conf(char* filename);
147 int res; /* result */
151 int res; /* result */
169 struct list input_code;
170 struct list* var_hash;
173 int temp_varcode_start;
181 void compile(struct tree* t, struct list* where);
182 int find_var(char* name, struct list* hash);
183 struct variable* get_var_struct(char* name, struct list* hash);
184 int store_const(char* c);
185 struct list* new_var_hash(void);
186 int get_bucket_number(char* name);
187 void print_code(void);
198 struct list* headers;
205 void save_current_headers(struct list* hash);
206 void print_vars(struct list* hash);
207 void interp(struct list* ins, struct list* hash);
208 void free_string(char* c);
209 void __attribute__ ((noreturn)) bye(int code, char* msg, ...);
212 char* default_mailbox;
216 struct list* current_headers;
217 struct email* current_body;
218 struct list* make_hlist(int fd);
219 void print_headers(struct list* l);
220 struct email* get_body(int fd);
221 int deliver_local_email(char* folder, struct email* email);
222 int write_email_to_fd(int fd, struct email* email);
223 char* read_email(struct email* em);
224 void open_email(void);
227 void save_gids(void);
228 void close_mailbox(int fd, char* path, int is_default_mailbox);
229 int open_mailbox(char* path, int is_default_mailbox);
230 char* cat(char* l, char* r);