-
Notifications
You must be signed in to change notification settings - Fork 3
/
goplctag.yml
50 lines (48 loc) · 1.56 KB
/
goplctag.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
GENERATOR:
PackageName: goplctag
PackageDescription: "Go package goplctag, a wrapper for libplctag c library"
PackageLicense: "Mozilla Public License 2.0, and LGPL License."
PkgConfigOpts: [libplctag]
Includes: ["libplctag.h", "callbacks.h"]
PARSER:
IncludePaths: ["/usr/include/", "/usr/include/x86_64-linux-gnu/"]
SourcesPaths: ["/usr/local/include/libplctag.h", "callbacks.h"]
TRANSLATOR:
ConstRules:
defines: eval
PtrTips:
function:
- { target: "plc_tag_create_ex", tips: [ref, sref] }
Rules:
global:
- { transform: lower }
- { action: accept, from: "^plc_tag_" }
- { action: replace, from: "^plc_tag_" }
- { action: ignore, from: "^plc_tag_create_ex" }
- { action: ignore, from: "^plc_tag_register_callback" }
- { action: ignore, from: "^plc_tag_register_logger" }
- { action: accept, from: "^go_plc_tag_" }
- { action: replace, from: "^go_plc_tag_" }
- { transform: export }
const:
- { action: accept, from: "^PLCTAG_" }
- { action: replace, from: "^Plctag" }
type:
- { action: replace, from: "_t$" }
private:
- { transform: unexport }
post-global:
- { action: doc, from: "^ogg_u?int[0-9]+_t" } # types like ogg_uint32_t
- {
action: doc,
from: "^ogg_",
to: "https://xiph.org/ogg/doc/libogg/$name.html",
}
- {
action: doc,
from: "^vorbis_",
to: "https://xiph.org/vorbis/doc/libvorbis/$name.html",
}
- { action: replace, from: _$ }
- { load: snakecase }