vala r871 - in trunk: . gobject-introspection
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r871 - in trunk: . gobject-introspection
- Date: Sat, 19 Jan 2008 20:23:18 +0000 (GMT)
Author: juergbi
Date: Sat Jan 19 20:23:18 2008
New Revision: 871
URL: http://svn.gnome.org/viewvc/vala?rev=871&view=rev
Log:
2008-01-19 Juerg Billeter <j bitron ch>
* gobject-introspection/scanner.c: support type_t naming convention
Modified:
trunk/ChangeLog
trunk/gobject-introspection/scanner.c
Modified: trunk/gobject-introspection/scanner.c
==============================================================================
--- trunk/gobject-introspection/scanner.c (original)
+++ trunk/gobject-introspection/scanner.c Sat Jan 19 20:23:18 2008
@@ -762,6 +762,16 @@
g_list_insert_sorted (igenerator->module->entries, ginode,
(GCompareFunc) g_idl_node_cmp);
lower_case_prefix = g_ascii_strdown (sym->ident, -1);
+
+ /* support type_t naming convention */
+ if (g_str_has_suffix (lower_case_prefix, "_t"))
+ {
+ char *tmp = lower_case_prefix;
+ tmp[strlen (tmp) - strlen ("_t")] = '\0';
+ lower_case_prefix = str_replace (tmp, "_", "");
+ g_free (tmp);
+ }
+
g_hash_table_insert (igenerator->type_map, sym->ident, ginode);
g_hash_table_insert (igenerator->type_by_lower_case_prefix,
lower_case_prefix, ginode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]