annotate libc/config/public_api.td @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents c4bab56944e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 include "spec/spec.td"
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 class MacroDef<string name> {
anatofuz
parents:
diff changeset
4 string Name = name;
anatofuz
parents:
diff changeset
5 string Defn = "";
anatofuz
parents:
diff changeset
6 }
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 class SimpleMacroDef<string name, string value> : MacroDef<name> {
anatofuz
parents:
diff changeset
9 let Defn = !strconcat("#define ", name, " ", value);
anatofuz
parents:
diff changeset
10 }
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 class MacroDefineIfNot<string name, string value> : MacroDef<name> {
anatofuz
parents:
diff changeset
13 let Defn = !strconcat("#ifndef ", name, "\n",
anatofuz
parents:
diff changeset
14 "#define " , name, " ", value, "\n",
anatofuz
parents:
diff changeset
15 "#endif // ", name);
anatofuz
parents:
diff changeset
16 }
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 class PublicAPI<string name> {
anatofuz
parents:
diff changeset
19 string HeaderName = name;
anatofuz
parents:
diff changeset
20 list<MacroDef> Macros = [];
236
c4bab56944e8 LLVM 16
kono
parents: 173
diff changeset
21 list<string> Types = [];
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
22 list<string> Enumerations = [];
150
anatofuz
parents:
diff changeset
23 list<string> Structs = [];
anatofuz
parents:
diff changeset
24 list<string> Functions = [];
236
c4bab56944e8 LLVM 16
kono
parents: 173
diff changeset
25 list<string> Objects = [];
150
anatofuz
parents:
diff changeset
26 }