gobject-introspection r440 - in trunk: . girepository



Author: walters
Date: Thu Aug 21 16:25:42 2008
New Revision: 440
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=440&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/girepository/girmodule.c

Modified: trunk/girepository/girmodule.c
==============================================================================
--- trunk/girepository/girmodule.c	(original)
+++ trunk/girepository/girmodule.c	Thu Aug 21 16:25:42 2008
@@ -104,12 +104,8 @@
 
   /* Adjust size for strings allocated in header below specially */
   size += strlen (module->name);
-  header_size = ALIGN_VALUE (header_size + strlen (module->name) + 1, 4);
   if (module->shared_library) 
-    {
-      size += strlen (module->shared_library);
-      header_size = ALIGN_VALUE (header_size + strlen (module->shared_library) + 1, 4);
-    }
+    size += strlen (module->shared_library);
 
   g_message ("allocating %d bytes (%d header, %d directory, %d entries)\n", 
 	  size, header_size, dir_size, size - header_size - dir_size);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]