Skip to content

Explain magic literals in G_VARIANT_*_INIT

Alexander Klauer requested to merge alexander.klauer/glib:issue-2613 into main

Add short comment to the definitions of G_VARIANT_BUILDER_INIT and G_VARIANT_DICT_INIT to explain the provenance of the magic integer literals. Their definitions as GVSB_MAGIC_PARTIAL and GVSB_MAGIC_PARTIAL, respectively, are kept in gvariant.c so as to not expose them as part of the external API. This commit does not change any external or private interfaces. This commit implements #2613 (comment 1399325).

Closes #2613 (closed)

Merge request reports