X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/5b42e9400440d86723a27747b2191ab8cd59c2ee..refs/tags/v1.0.3:/src/util.h diff --git a/src/util.h b/src/util.h index 8e84318..ba7f1b5 100644 --- a/src/util.h +++ b/src/util.h @@ -1,5 +1,6 @@ /* GOB C Preprocessor * Copyright (C) 1999-2000 the Free Software Foundation. + * Copyright (C) 2000 Eazel, Inc. * * Author: George Lebl * @@ -28,15 +29,15 @@ void print_error(gboolean is_warn, char *error, int line); /* remove the : separator from a typename */ char * remove_sep(char *base); /* replace the : separator from a typename with a different character*/ -char * replace_sep(char *base, char r); +char * replace_sep(const char *base, char r); /*separate the namespace part and then replace rest of separators with r*/ -void separns_replace_sep(char *base, char **ns, char **name, char r); +void separns_replace_sep(const char *base, char **ns, char **name, char r); /* make a macro with some prefix before the name but after namespace */ -char * make_pre_macro(char *base, char *pre); +char * make_pre_macro(const char *base,const char *pre); /* get a name usable for a cast from a GTK+ type (without GTK_TYPE_)*/ const char * get_cast(char *type, gboolean simple_only); @@ -50,5 +51,8 @@ enum { /* returns TRUE if there are any special types at all */ 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); + #endif