interfacing between transports written in different programming languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
487 B

include yslt.yml2
tstylesheet {
include standardlib.ysl2
template "/enum"
||
#include <pEp/«@name».h>
const char *«@name»_label(PEP_«@name» value)
{
switch (value) {
`` apply "item|doc"
default:
return "unknown";
}
}
||
template "item"
||
case PEP_«yml:abbr(../@name)»_«@name»:
return "«translate(@name,'_',' ')»";
||
template "doc"
||
// «.»
||
}