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.
 
 
 
 
 

42 lines
595 B

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