mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-26 05:52:16 +01:00
Tweak to use UINT instead of INT. Not likely to matter. Add to
2008-08-21 Colin Walters <walters@verbum.org> * girepository/girnode.c (write_string): Tweak to use UINT instead of INT. Not likely to matter. * girepository/girmodule.c (g_ir_module_build_typelib): Add to header_offset as well for header strings to match what write_string does. * girepository/gtypelib.c: Replace is_name with validate_name, which more strongly validates and handles errors in a better way. Update all callers. * giscanner/glibtransformer.py: Handle constructors better. svn path=/trunk/; revision=439
This commit is contained in:
committed by
Colin Walters
parent
a47d659cd1
commit
60adefcef2
@@ -2144,12 +2144,12 @@ write_string (const gchar *str,
|
||||
value = g_hash_table_lookup (strings, str);
|
||||
|
||||
if (value)
|
||||
return GPOINTER_TO_INT (value);
|
||||
return GPOINTER_TO_UINT (value);
|
||||
|
||||
unique_string_count += 1;
|
||||
unique_string_size += strlen (str);
|
||||
|
||||
g_hash_table_insert (strings, (gpointer)str, GINT_TO_POINTER (*offset));
|
||||
g_hash_table_insert (strings, (gpointer)str, GUINT_TO_POINTER (*offset));
|
||||
|
||||
start = *offset;
|
||||
*offset = ALIGN_VALUE (start + strlen (str) + 1, 4);
|
||||
|
||||
Reference in New Issue
Block a user