]> git.draconx.ca Git - gob-dx.git/blobdiff - src/util.h
Release 1.0.5
[gob-dx.git] / src / util.h
index ba7f1b5c2e136dbd3c888499f79d56180733c342..20692b0de46e02ec0c151ffa35c9b94e27fd919e 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);
+char * remove_sep(const char *base);
 /* replace the : separator from a typename with a different character*/
 char * replace_sep(const char *base, char r);
 
@@ -52,7 +59,7 @@ enum {
 gboolean setup_special_array(Class *c, gboolean *special_array);
 
 /* get the id without the first underscore, but only if we're removing them */
-char *get_real_id(char *id);
+const char *get_real_id(const char *id);
 
 #endif