girepository: Clarify SimpleTypeBlob documentation

The documentation comment for SimpleTypeBlob seemed to imply that a basic
type was embedded if the reserved fields were nonzero. After examining the
code, I believe that was actually due to some words missing, and the
comment should say that the type is embedded if the fields are zero.
This commit is contained in:
Philip Chimento 2022-01-28 13:22:05 -08:00 committed by Emmanuele Bassi
parent 8f047f11f6
commit 0f330c1581

View File

@ -378,9 +378,9 @@ union _SimpleTypeBlob
* references to types.
*
* SimpleTypeBlob is divided into two cases; first, if "reserved" and
* "reserved2", the type tag for a basic type is embedded in the "tag" bits.
* This allows e.g. GI_TYPE_TAG_UTF8, GI_TYPE_TAG_INT and the like to be
* embedded directly without taking up extra space.
* "reserved2" are both zero, the type tag for a basic type is embedded in the
* "tag" bits. This allows e.g. GI_TYPE_TAG_UTF8, GI_TYPE_TAG_INT and the like
* to be embedded directly without taking up extra space.
*
* References to "interfaces" (objects, interfaces) are more complicated;
* In this case, the integer is actually an offset into the directory (see