Browse Source

ig-c99: remove extracted idl-api test

main
heck 2 years ago
parent
commit
b7b9dc63d1
  1. 52
      lm-c99/ig-c99.ysl2

52
lm-c99/ig-c99.ysl2

@ -8,9 +8,6 @@ tstylesheet {
include standardlib.ysl2
include idl_api.ysl2
// ----------------------------------------------------------------------
// IG-C99
// ----------------------------------------------------------------------
@ -102,52 +99,6 @@ tstylesheet {
}
// TYPE-TESTING
template "test-types" document "ig-c99/test_types.h", "text" {
||
// basetypes
«func:typeinfo('string')»
«func:typeinfo('binary')»
«func:typeinfo('int')»
«func:typeinfo('uint')»
«func:typeinfo('size')»
«func:typeinfo('bool')»
«func:typeinfo('opaque')»
// deftype basetype
«func:typeinfo('deftype1')»
«func:typeinfo('deftype2')»
// deftype generic
«func:typeinfo('stringlist')»
// enum
«func:typeinfo('enum1')»
// struct
«func:typeinfo('struct1')»
// undefined
«func:typeinfo('undefined')»
||
}
def "func:typeinfo" {
param "idltype";
result call "typeinfo" with "idltype", "$idltype";
};
function "typeinfo" {
param "idltype";
||
idltype: «$idltype»
idl_type_is_defined: «func:idl_type_is_defined($idltype)»
idl_type_get_typekind_of_type: «func:idl_type_get_typekind_of_type($idltype)»
idl_type_get_resolved_typekind: «func:idl_type_get_resolved_typekind($idltype)»
idl_type_get_resolved_type: «func:idl_type_get_resolved_type($idltype)»
idl_type_is_of_typekind_basetype: «func:idl_type_is_of_typekind_basetype($idltype)»
idl_type_is_of_typekind_deftype: «func:idl_type_is_of_typekind_deftype($idltype)»
idl_type_is_of_typekind_enum: «func:idl_type_is_of_typekind_enum($idltype)»
idl_type_is_of_typekind_struct: «func:idl_type_is_of_typekind_struct($idltype)»
||
}
// TYPEALIAS
// ---------
@ -224,7 +175,6 @@ tstylesheet {
result "yml:ucase(concat($pkg_name, '_', $name))";
}
template "enum" {
const "idl_name", "@name";
const "pkg_name", "../../@name";
@ -310,6 +260,7 @@ tstylesheet {
result "'sfd'";
}
// DOC
// ---
@ -340,6 +291,5 @@ tstylesheet {
}
}
}
}

Loading…
Cancel
Save