X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/c9914e54f16c3315d47040f4cca2d3788228c504..853c670e4b839fd435507201f04d16080590a894:/src/util.h diff --git a/src/util.h b/src/util.h index ba7f1b5..9eac446 100644 --- a/src/util.h +++ b/src/util.h @@ -23,8 +23,15 @@ #ifndef _UTIL_H_ #define _UTIL_H_ -/* print an error, or warning (if 'is_warn') referring to 'line' */ -void print_error(gboolean is_warn, char *error, int line); +enum { + GOB_WARN, + GOB_ERROR +}; + +/* print an error, or warning referring to 'line' + * (line can be 0 or negative for no line) */ +void error_print(int type, int line, const char *error); +void error_printf(int type, int line, const char *error, ...) G_GNUC_PRINTF (3, 4); /* remove the : separator from a typename */ char * remove_sep(char *base);