-
Notifications
You must be signed in to change notification settings - Fork 1
/
husk.yml
36 lines (34 loc) · 952 Bytes
/
husk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
GENERATOR:
PackageName: lowhusk
PackageDescription: "Utility library written in Rust exposed to Go"
PackageLicense: "MIT"
Includes: ["husk.h"]
PARSER:
SourcesPaths: ["cforgo-defines.h", "include/husk.h"]
Defines:
C_FOR_GO_WORKAROUNDS: 1
TRANSLATOR:
ConstRules:
defines: eval
Rules:
global:
- {action: accept, from: "^Shell"}
- {action: accept, from: "^XString"}
- {action: accept, from: "^shell_"}
- {action: accept, from: "^xstring_"}
- {action: accept, from: "^husk_"}
- {transform: export}
post-global:
- {load: snakecase}
PtrTips:
function:
- {target: ".*", default: sref}
MemTips:
- {target: ".*", default: raw}
TypeTips:
function:
- {target: ".*", self: plain}
Typemap:
{base: "char", const: true, pointers: 1}: {base: "byte", pointers: 1}
{base: "char", const: true, unsigned: true, pointers: 1}: {base: "byte", pointers: 1}