X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/853c670e4b839fd435507201f04d16080590a894..7c9125f3e75c250e51d5bb9658f730519f103c10:/src/util.c diff --git a/src/util.c b/src/util.c index 37abe55..0e8ad94 100644 --- a/src/util.c +++ b/src/util.c @@ -21,6 +21,7 @@ */ #include "config.h" +#include #include #include #include @@ -72,7 +73,7 @@ error_printf(int type, int line, const char *error, ...) } char * -remove_sep(char *base) +remove_sep(const char *base) { char *p; char *s = g_strdup(base); @@ -215,7 +216,7 @@ init_type_hash(void) } const char * -get_cast(char *type, gboolean simple_only) +get_cast(const char *type, gboolean simple_only) { OurGtkType *gtype; @@ -277,12 +278,12 @@ 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) { - if(!no_kill_underscores && - id[0] == '_' && - id[1] != '\0') + if( ! no_kill_underscores && + id[0] == '_' && + id[1] != '\0') return &id[1]; else return id;