1 /* errors.h - declarations for error.c */ 2 #ifndef ERRORS_H 3 #define ERRORS_H 4 5 #include "tree_types.h" 6 7 void fatal (char *); 8 void bug (char *); 9 10 enum error_type { error, warning }; 11 12 void line_error (char *format, ...); 13 void line_warn (char *format, ...); 14 void command_error (ELEMENT *e, char *format, ...); 15 void command_warn (ELEMENT *e, char *format, ...); 16 void wipe_errors (void); 17 void line_error_ext (enum error_type type, LINE_NR *cmd_line_nr, 18 char *format, ...); 19 void bug_message (char *format, ...); 20 21 char *dump_errors (void); 22 #endif 23