]> git.draconx.ca Git - gob-dx.git/blobdiff - src/util.c
Release 1.0.11
[gob-dx.git] / src / util.c
index 37abe55cfe3b9243ef61449f435503d3fa27f158..0e8ad9463c1dfcc004e275a8a58dadec827ffda8 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include "config.h"
+#include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <glib.h>
@@ -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;