Browse Source

use abbr() function

makefile-conf
Volker Birk 9 months ago
parent
commit
78e1c693ee
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      src/gen_c.ysl2
  2. +1
    -1
      src/transport_status_code.yml2

+ 2
- 2
src/gen_c.ysl2 View File

@ -28,9 +28,9 @@ tstylesheet {
indent 0;
choose {
when "@output='hex'"
> PEP_«../@abbr»_«@name» = 0x«yml:dec2hex(.,$hexdigits)»
> PEP_«yml:abbr(../@name)»_«@name» = 0x«yml:dec2hex(.,$hexdigits)»
otherwise
> PEP_«../@abbr»_«@name» = «.»
> PEP_«yml:abbr(../@name)»_«@name» = «.»
}
if "position()!=last()" > ,
if "@doc" > // «@doc»


+ 1
- 1
src/transport_status_code.yml2 View File

@ -8,7 +8,7 @@ decl hex is item (output=hex);
// the first octet is the transport id; for general values it is 0x00
// the first bit of the second octet is set if this is an error state
enum transport_status_code abbr=tsc {
enum transport_status_code {
hex ready 0x00000000;
doc > non error states


Loading…
Cancel
Save