summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorPavel Holejsovsky <pavel.holejsovsky@gmail.com>2010-12-14 16:28:01 +0100
committerPavel Holejsovsky <pholejs@src.gnome.org>2011-01-13 16:20:01 +0100
commitf3f3cb62abec946f82fe44a8382a04b28d6c7313 (patch)
treebc45a2e369fbe98cc85fc16f3d76244ba56c8951 /girepository
parent076b4de06e23f7baaae5a7a8ad0fbfce4f774d7e (diff)
downloadgobject-introspection-f3f3cb62abec946f82fe44a8382a04b28d6c7313.tar.gz
Add support for g[u]intptr in scanner and girwriter.
https://bugzilla.gnome.org/show_bug.cgi?id=634838
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girparser.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 03ab6d2e..96761ace 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -366,8 +366,10 @@ static IntegerAliasInfo integer_aliases[] = {
{ "guint", SIZEOF_INT, 0 },
{ "glong", SIZEOF_LONG, 1 },
{ "gulong", SIZEOF_LONG, 0 },
- { "gsize", GLIB_SIZEOF_SIZE_T, 0 },
{ "gssize", GLIB_SIZEOF_SIZE_T, 1 },
+ { "gsize", GLIB_SIZEOF_SIZE_T, 0 },
+ { "gintptr", GLIB_SIZEOF_SIZE_T, 1 },
+ { "guintptr", GLIB_SIZEOF_SIZE_T, 0 },
};
typedef struct {
@@ -407,12 +409,12 @@ parse_basic (const char *str)
for (i = 0; i < n_basic; i++)
{
- if (g_str_has_prefix (str, basic_types[i].str))
+ if (strcmp (str, basic_types[i].str) == 0)
return &(basic_types[i]);
}
for (i = 0; i < G_N_ELEMENTS (integer_aliases); i++)
{
- if (g_str_has_prefix (str, integer_aliases[i].str))
+ if (strcmp (str, integer_aliases[i].str) == 0)
{
switch (integer_aliases[i].size)
{