diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2012-07-24 16:09:38 +0800 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-10-27 12:06:09 -0400 |
commit | af578e81c861cf31f494fc830ba02ca41d7c7613 (patch) | |
tree | 1c45330f3a7fca45da2e3d654c9c10b03eecb54d /girepository/girmodule.c | |
parent | f2e54769ca9f72401d438b66fd6144986ee288f3 (diff) | |
download | gobject-introspection-af578e81c861cf31f494fc830ba02ca41d7c7613.tar.gz |
girepository: Remove C99ism and other updates
-Make code using libgirepository_internals relocatable on Windows,
like what is done in the GTK+ stack, and the girepository DLL.
-Remove C99isms
-"interface" is a reserved keyword on certain compilers, so change that to
"giinterface"
https://bugzilla.gnome.org/show_bug.cgi?id=681820
Diffstat (limited to 'girepository/girmodule.c')
-rw-r--r-- | girepository/girmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/girepository/girmodule.c b/girepository/girmodule.c index af71f369..05c8987f 100644 --- a/girepository/girmodule.c +++ b/girepository/girmodule.c @@ -261,8 +261,9 @@ add_directory_index_section (guint8 *data, GIrModule *module, guint32 *offset2) for (i = 0; i < n_interfaces; i++) { + const char *str; entry = (DirEntry *)&data[header->directory + (i * header->entry_blob_size)]; - const char *str = (const char *) (&data[entry->name]); + str = (const char *) (&data[entry->name]); _gi_typelib_hash_builder_add_string (dirindex_builder, str, i); } |