]> git.draconx.ca Git - gob-dx.git/blobdiff - src/util.h
Release 1.0.4
[gob-dx.git] / src / util.h
index ba7f1b5c2e136dbd3c888499f79d56180733c342..9eac4464ac2c3b689bdf9c7e4193b1822165c54c 100644 (file)
 #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);