mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-30 07:46:17 +01:00
Revert change to increment header_size; we do that in write_string.
2008-08-21 Colin Walters <walters@verbum.org> * girepository/girmodule.c (g_ir_module_build_typelib): Revert change to increment header_size; we do that in write_string. svn path=/trunk/; revision=440
This commit is contained in:
parent
60adefcef2
commit
c66c06f048
@ -104,12 +104,8 @@ g_ir_module_build_typelib (GIrModule *module,
|
|||||||
|
|
||||||
/* Adjust size for strings allocated in header below specially */
|
/* Adjust size for strings allocated in header below specially */
|
||||||
size += strlen (module->name);
|
size += strlen (module->name);
|
||||||
header_size = ALIGN_VALUE (header_size + strlen (module->name) + 1, 4);
|
|
||||||
if (module->shared_library)
|
if (module->shared_library)
|
||||||
{
|
size += strlen (module->shared_library);
|
||||||
size += strlen (module->shared_library);
|
|
||||||
header_size = ALIGN_VALUE (header_size + strlen (module->shared_library) + 1, 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
g_message ("allocating %d bytes (%d header, %d directory, %d entries)\n",
|
g_message ("allocating %d bytes (%d header, %d directory, %d entries)\n",
|
||||||
size, header_size, dir_size, size - header_size - dir_size);
|
size, header_size, dir_size, size - header_size - dir_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user