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 int store_const(char* c);
184 struct list* new_var_hash(void);
185 int get_bucket_number(char* name);
186 void print_code(void);
197 struct list* headers;
204 void save_current_headers(struct list* hash);
205 void print_vars(struct list* hash);
206 void interp(struct list* ins, struct list* hash);
207 void free_string(char* c);
208 void __attribute__ ((noreturn)) bye(int code, char* msg, ...);
211 char* default_mailbox;
215 struct list* current_headers;
216 struct email* current_body;
217 struct list* make_hlist(int fd);
218 void print_headers(struct list* l);
219 struct email* get_body(int fd);
220 int deliver_local_email(char* folder, struct email* email);
221 int write_email_to_fd(int fd, struct email* email);
222 char* read_email(struct email* em);
223 void open_email(void);
226 void save_gids(void);
227 void close_mailbox(int fd, char* path, int is_default_mailbox);
228 int open_mailbox(char* path, int is_default_mailbox);
229 char* cat(char* l, char* r);