From dcfa22549af735d30788e4a3c1f4e9c82f9fbd11 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 10 Jan 2018 12:58:53 +0000 Subject: [PATCH] docs: Small improvements to glib-mkenums man page Clarify some typical usage of glib-mkenums and its substitutions. --- docs/reference/gobject/glib-mkenums.xml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/reference/gobject/glib-mkenums.xml b/docs/reference/gobject/glib-mkenums.xml index b9554137f..a59cacf43 100644 --- a/docs/reference/gobject/glib-mkenums.xml +++ b/docs/reference/gobject/glib-mkenums.xml @@ -34,15 +34,14 @@ Description glib-mkenums is a small utility that parses C code to extract enum definitions and produces enum descriptions based on text templates -specified by the user. Most frequently this script is used to produce C code -that contains enum values as strings so programs can provide value name strings -for introspection. +specified by the user. Typically, you can use this tool to generate enumeration +types for the GType type system, for #GObject properties and signal marshalling; +additionally, you can use it to generate enumeration values of #GSettings schemas. glib-mkenums takes a list of valid C code files as -input. The options specified control the text that is output, certain -substitutions are performed on the text templates for keywords enclosed -in @ characters. +input. The options specified control the text that generated, substituting various +keywords enclosed in @ characters in the templates. Production text substitutions @@ -63,7 +62,7 @@ typedef enum The name of the enum currently being processed, enum names are assumed to be properly namespaced and to use mixed capitalization to separate -words (e.g. PrefixTheXEnum). +words (e.g. PrefixTheXEnum). @@ -71,7 +70,7 @@ words (e.g. PrefixTheXEnum). @enum_name@ The enum name with words lowercase and word-separated by underscores -(e.g. prefix_the_xenum). +(e.g. prefix_the_xenum). @@ -79,7 +78,7 @@ The enum name with words lowercase and word-separated by underscores @ENUMNAME@ The enum name with words uppercase and word-separated by underscores -(e.g. PREFIX_THE_XENUM). +(e.g. PREFIX_THE_XENUM). @@ -87,14 +86,14 @@ The enum name with words uppercase and word-separated by underscores @ENUMSHORT@ The enum name with words uppercase and word-separated by underscores, -prefix stripped (e.g. THE_XENUM). +prefix stripped (e.g. THE_XENUM). @ENUMPREFIX@ -The prefix of the enum name (e.g. PREFIX). +The prefix of the enum name (e.g. PREFIX). @@ -104,7 +103,7 @@ The prefix of the enum name (e.g. PREFIX). The enum value name currently being processed with words uppercase and word-separated by underscores, this is the assumed literal notation of enum values in the C sources -(e.g. PREFIX_THE_XVALUE). +(e.g. PREFIX_THE_XVALUE). @@ -114,7 +113,7 @@ this is the assumed literal notation of enum values in the C sources A nick name for the enum value currently being processed, this is usually generated by stripping common prefix words of all the enum values of the current enum, the words are lowercase and underscores are substituted by a -minus (e.g. the-xvalue). +minus (e.g. the-xvalue). @@ -160,7 +159,8 @@ The name of the input file currently being processed (e.g. foo.h). @basename@ -The base name of the input file currently being processed (e.g. foo.h). (Since: 2.22) +The base name of the input file currently being processed (e.g. foo.h). Typically +you want to use @basename@ in place of @filename@ in your templates, to improve the reproducibility of the build. (Since: 2.22) @@ -176,7 +176,7 @@ indicate this enum definition to be skipped, or for it to be treated as a flags definition, or to specify the common prefix to be stripped from all values to generate value nicknames, respectively. The "underscore_name" option can be used to specify the word separation used in the *_get_type() -function. For instance, /*< underscore_name=gnome_vfs_uri_hide_options >*/. +function. For instance, /*< underscore_name=gnome_vfs_uri_hide_options >*/. Per value definition, the options "skip" and "nick" are supported. -- 2.11.4.GIT