| glib-mkenums.1.lzma | glib-mkenums.1 | |||
|---|---|---|---|---|
| GLIB-MKENUMS(1) [FIXME: manual] GLIB-MKENU MS(1) | GLIB-MKENUMS(1) User Commands GLIB-MKENU MS(1) | |||
| NAME | NAME | |||
| glib-mkenums - C language enum description generation utility | glib-mkenums - C language enum description generation utility | |||
| SYNOPSIS | SYNOPSIS | |||
| glib-mkenums [options...] [files...] | glib-mkenums [options...] [files...] | |||
| DESCRIPTION | DESCRIPTION | |||
| glib-mkenums is a small perl-script utility that parses C code to ex tract enum definitions and produces enum descriptions based on text templat es specified by the user. Most frequently this script is used to produce C code | glib-mkenums is a small perl-script utility that parses C code to ex tract enum definitions and produces enum descriptions based on text templat es 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 n ame strings for introspection. | that contains enum values as strings so programs can provide value n ame strings for introspection. | |||
| skipping to change at line 83 | skipping to change at line 83 | |||
| @ENUMSHORT@ | @ENUMSHORT@ | |||
| The enum name with words uppercase and word-separated by undersc ores, prefix stripped (e.g. THE_XENUM). | The enum name with words uppercase and word-separated by undersc ores, prefix stripped (e.g. THE_XENUM). | |||
| @VALUENAME@ | @VALUENAME@ | |||
| The enum value name currently being processed with words upperca se and word-separated by underscores, this is the assumed literal notation of enum values in the C sources (e.g. PREFIX_THE_XVALUE). | The enum value name currently being processed with words upperca se and word-separated by underscores, this is the assumed literal notation of enum values in the C sources (e.g. PREFIX_THE_XVALUE). | |||
| @valuenick@ | @valuenick@ | |||
| A nick name for the enum value currently being processed, this i s usually generated by stripping common prefix words of all the enum values of the current enum, the words are lowercase and underscores are substitut ed by | A nick name for the enum value currently being processed, this i s usually generated by stripping common prefix words of all the enum values of the current enum, the words are lowercase and underscores are substitut ed by | |||
| a minus (e.g. the-xvalue). | a minus (e.g. the-xvalue). | |||
| @valuenum@ | ||||
| The integer value for the enum value currently being processed. | ||||
| This is calculated by using perl to attempt to evaluate the expression as i | ||||
| t appears in the C source code. If evaluation fails then glib-mkenums will | ||||
| exit | ||||
| with an error status, but this only happens if @valuenum@ appear | ||||
| s in your value production template. (Since: 2.26) | ||||
| @type@ | @type@ | |||
| This is substituted either by "enum" or "flags", depending on wh ether the enum value definitions contained bit-shift operators or not (e.g. flags). | This is substituted either by "enum" or "flags", depending on wh ether the enum value definitions contained bit-shift operators or not (e.g. flags). | |||
| @Type@ | @Type@ | |||
| The same as @type@ with the first letter capitalized (e.g. Flags ). | The same as @type@ with the first letter capitalized (e.g. Flags ). | |||
| @TYPE@ | @TYPE@ | |||
| The same as @type@ with all letters uppercased (e.g. FLAGS). | The same as @type@ with all letters uppercased (e.g. FLAGS). | |||
| @filename@ | @filename@ | |||
| skipping to change at line 120 | skipping to change at line 124 | |||
| { | { | |||
| PREFIX_THE_ZEROTH_VALUE, /*< skip >*/ | PREFIX_THE_ZEROTH_VALUE, /*< skip >*/ | |||
| PREFIX_THE_FIRST_VALUE, | PREFIX_THE_FIRST_VALUE, | |||
| PREFIX_THE_SECOND_VALUE, | PREFIX_THE_SECOND_VALUE, | |||
| PREFIX_THE_THIRD_VALUE, /*< nick=the-last-value >*/ | PREFIX_THE_THIRD_VALUE, /*< nick=the-last-value >*/ | |||
| } PrefixTheFlagsEnum; | } PrefixTheFlagsEnum; | |||
| SEE ALSO | SEE ALSO | |||
| glib-genmarshal(1) | glib-genmarshal(1) | |||
| [FIXME: source] 05/02/2010 GLIB-MKENU MS(1) | User Commands 06/05/2011 GLIB-MKENU MS(1) | |||
| End of changes. 3 change blocks. | ||||
| 1 lines changed or deleted | 9 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||