Skip to content

Commit c760784

Browse files
committed
change llcppg.symb.json for _llcppgtest
1 parent 4a6cec1 commit c760784

File tree

8 files changed

+118
-5
lines changed

8 files changed

+118
-5
lines changed

_llcppgtest/cjson/conf/linux/llcppg.cfg

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,15 @@
88
],
99
"trimPrefixes": ["cJSON_", "cJSONUtils_"],
1010
"cplusplus": false,
11-
"mix":true
11+
"mix":true,
12+
"symMap": {
13+
"cJSON_PrintUnformatted":".CStr",
14+
"cJSON_CreateObject":"Object",
15+
"cJSON_CreateArray":"Array",
16+
"cJSON_CreateString":"String",
17+
"cJSON_free":"FreeCStr",
18+
"cJSON_AddItemToArray":".AddItem",
19+
"cJSON_AddItemToObject":".SetItem",
20+
"cJSON_free":"FreeCStr"
21+
}
1222
}

_llcppgtest/cjson/llcppg.cfg

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,15 @@
77
"cJSON_Utils.h"
88
],
99
"trimPrefixes": ["cJSON_", "cJSONUtils_"],
10-
"cplusplus": false
10+
"cplusplus": false,
11+
"symMap": {
12+
"cJSON_PrintUnformatted":".CStr",
13+
"cJSON_CreateObject":"Object",
14+
"cJSON_CreateArray":"Array",
15+
"cJSON_CreateString":"String",
16+
"cJSON_free":"FreeCStr",
17+
"cJSON_AddItemToArray":".AddItem",
18+
"cJSON_AddItemToObject":".SetItem",
19+
"cJSON_free":"FreeCStr"
20+
}
1121
}

_llcppgtest/cjson/llcppg.symb.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[
2+
{
3+
"mangle": "cJSON_PrintUnformatted",
4+
"c++": "cJSON_PrintUnformatted(const cJSON *)",
5+
"go": "(*CJSON).CStr"
6+
},
7+
{
8+
"mangle": "cJSON_CreateObject",
9+
"c++": "cJSON_CreateObject()",
10+
"go": "Object"
11+
},
12+
{
13+
"mangle": "cJSON_CreateArray",
14+
"c++": "cJSON_free()",
15+
"go": "Array"
16+
},
17+
{
18+
"mangle": "cJSON_CreateString",
19+
"c++": "cJSON_CreateString(const char *)",
20+
"go": "String"
21+
},
22+
{
23+
"mangle": "cJSON_free",
24+
"c++": "cJSON_free(void *)",
25+
"go": "FreeCStr"
26+
},
27+
{
28+
"mangle": "cJSON_AddItemToArray",
29+
"c++": "cJSON_AddItemToArray(cJSON *, cJSON *)",
30+
"go": "(*CJSON).AddItem"
31+
},
32+
{
33+
"mangle": "cJSON_AddItemToObject",
34+
"c++": "cJSON_AddItemToObject(cJSON *, const char *, cJSON *)",
35+
"go": "(*CJSON).SetItem"
36+
},
37+
{
38+
"mangle": "cJSON_free",
39+
"c++": "cJSON_free(void *)",
40+
"go": "FreeCStr"
41+
}
42+
]

_llcppgtest/sqlite/conf/linux/llcppg.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
],
99
"trimPrefixes": ["sqlite3_","SQLITE_"],
1010
"cplusplus": false,
11-
"mix":true
11+
"mix":true,
12+
"symMap":{
13+
"sqlite3_finalize":".Close"
14+
}
1215
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"mangle": "sqlite3_finalize",
4+
"c++": "sqlite3_finalize(sqlite3_stmt *)",
5+
"go": "(*Stmt).Close"
6+
}
7+
]

_llcppgtest/zlib/conf/linux/llcppg.cfg

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@
99
"trimPrefixes": ["Z_"],
1010
"cplusplus": false,
1111
"mix":true,
12-
"deps":["c/os"]
12+
"deps":["c/os"],
13+
"symMap":{
14+
"compress":"Compress",
15+
"compress2":"Compress2",
16+
"uncompress":"Uncompress",
17+
"uncompress2":"Uncompress2",
18+
"compressBound":"CompressBound"
19+
}
1320
}

_llcppgtest/zlib/llcppg.cfg

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,12 @@
88
],
99
"trimPrefixes": ["Z_"],
1010
"cplusplus": false,
11-
"deps":["c/os"]
11+
"deps":["c/os"],
12+
"symMap":{
13+
"compress":"Compress",
14+
"compress2":"Compress2",
15+
"uncompress":"Uncompress",
16+
"uncompress2":"Uncompress2",
17+
"compressBound":"CompressBound"
18+
}
1219
}

_llcppgtest/zlib/llcppg.symb.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"mangle": "compress",
4+
"c++": "compress(Bytef *, uLongf *, const Bytef *, uLong)",
5+
"go": "Compress"
6+
},
7+
{
8+
"mangle": "compress2",
9+
"c++": "compress2(Bytef *, uLongf *, const Bytef *, uLong, int)",
10+
"go": "Compress2"
11+
},
12+
{
13+
"mangle": "uncompress",
14+
"c++": "uncompress(Bytef *, uLongf *, const Bytef *, uLong)",
15+
"go": "Uncompress"
16+
},
17+
{
18+
"mangle": "uncompress2",
19+
"c++": "uncompress2(Bytef *, uLongf *, const Bytef *, uLong *)",
20+
"go": "Uncompress2"
21+
},
22+
{
23+
"mangle": "compressBound",
24+
"c++": "compressBound(uLong)",
25+
"go": "CompressBound"
26+
}
27+
]

0 commit comments

Comments
 (0)