2 * Copyright (C) 1999-2000 the Free Software Foundation.
3 * Copyright (C) 2000 Eazel, Inc.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
31 /* print an error, or warning referring to 'line'
32 * (line can be 0 or negative for no line) */
33 void error_print(int type, int line, const char *error);
34 void error_printf(int type, int line, const char *error, ...) G_GNUC_PRINTF (3, 4);
36 /* remove the : separator from a typename */
37 char * remove_sep(const char *base);
38 /* replace the : separator from a typename with a different character*/
39 char * replace_sep(const char *base, char r);
40 char * gob_strup (char *s);
41 char * gob_strdown (char *s);
43 /*separate the namespace part and then replace rest of
45 void separns_replace_sep(const char *base, char **ns, char **name, char r);
47 /* make a macro with some prefix before the name but after
49 char * make_pre_macro(const char *base,const char *pre);
51 /* get a name usable for a cast from a GObject (without G_TYPE_)*/
52 const char * get_cast (const char *type, gboolean simple_only);
53 Type * get_tree_type (const char *type, gboolean simple_only);
54 char * get_type (const Type *t, gboolean postfix_to_stars);
62 /* returns TRUE if there are any special types at all */
63 gboolean setup_special_array(Class *c, gboolean *special_array);
65 char * make_me_type (const char *type, const char *alt);