|
|
- // p≡p API C data types mapping
-
- // Copyleft (c) 2019, p≡p foundation
- // this file is under GNU General Public License 3.0
- // see LICENSE.txt
-
- // written by Volker Birk
-
-
- template "*", mode=name {
- param "abbr", "false()";
- if ".!=/*" {
- apply "..", 0, mode=name;
- > _
- }
- choose {
- when '@name="basic"'
- > «/*/@name»
- otherwise
- > «@name»
- }
- }
-
- function "name" {
- param "abbr", "false()";
- apply ".", mode=name with "abbr", "$abbr";
- }
-
- def "func:name" {
- param "abbr", "false()";
- result call "name" with "abbr", "$abbr";
- }
-
|