use abbr() function

makefile-conf
Volker Birk 2 years ago
parent 714bca5722
commit 78e1c693ee

@ -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»

@ -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