gobject-introspection r945 - trunk/girepository
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r945 - trunk/girepository
- Date: Tue, 18 Nov 2008 18:42:32 +0000 (UTC)
Author: walters
Date: Tue Nov 18 18:42:32 2008
New Revision: 945
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=945&view=rev
Log:
Add a comment about keeping hardcoded numbers in g_typelib_check_sanity
Modified:
trunk/girepository/gtypelib.c
Modified: trunk/girepository/gtypelib.c
==============================================================================
--- trunk/girepository/gtypelib.c (original)
+++ trunk/girepository/gtypelib.c Tue Nov 18 18:42:32 2008
@@ -152,6 +152,14 @@
n, sizeof (s)); \
size_check_ok = FALSE; \
}
+
+ /* When changing the size of a typelib structure, you are required to update
+ * the hardcoded size here. Do NOT change these to use sizeof(); these
+ * should match whatever is defined in the text specification and serve as
+ * a sanity check on structure modifications.
+ *
+ * Everything else in the code however should be using sizeof().
+ */
CHECK_SIZE (Header, 108);
CHECK_SIZE (DirEntry, 12);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]