Skip to content

Commit 5dfc830

Browse files
committed
add cname comment and pick it up
1 parent dd67aee commit 5dfc830

File tree

24 files changed

+57
-1662
lines changed

24 files changed

+57
-1662
lines changed

c/c.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type (
3333
Float = float32
3434
Double = float64
3535
Pointer = unsafe.Pointer
36-
FilePtr = *FILE
36+
FilePtr = *FILE //cname:*FILE
3737
)
3838

3939
type FILE struct {
@@ -55,9 +55,9 @@ type integer interface {
5555
~int | ~uint | ~uintptr | ~int32 | ~uint32 | ~int64 | ~uint64
5656
}
5757

58-
type SizeT = uintptr
58+
type SizeT = uintptr //cname:size_t
5959

60-
type IntptrT = uintptr
60+
type IntptrT = uintptr //cname:intptr_t
6161
type UintptrT = uintptr
6262
type Int8T = int8
6363
type Int16T = int16

c/c.pub

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
todo:unsafe.Pointer Pointer at positon:../../c/c.go:35:2
2-
todo:*FILE FilePtr at positon:../../c/c.go:36:2
1+
*FILE FilePtr
32
FILE
4-
todo:uintptr SizeT at positon:../../c/c.go:58:6
5-
todo:uintptr IntptrT at positon:../../c/c.go:60:6
6-
todo:uintptr UintptrT at positon:../../c/c.go:61:6
7-
todo:int8 Int8T at positon:../../c/c.go:62:6
8-
todo:int16 Int16T at positon:../../c/c.go:63:6
9-
todo:int32 Int32T at positon:../../c/c.go:64:6
10-
todo:int64 Int64T at positon:../../c/c.go:65:6
11-
todo:uint8 Uint8T at positon:../../c/c.go:67:6
12-
todo:uint16 Uint16T at positon:../../c/c.go:68:6
13-
todo:uint32 Uint32T at positon:../../c/c.go:69:6
14-
todo:uint64 Uint64T at positon:../../c/c.go:70:6
15-
todo:LongLong IntmaxT at positon:../../c/c.go:72:6
16-
todo:UlongLong UintmaxT at positon:../../c/c.go:73:6
3+
size_t SizeT
4+
intptr_t IntptrT
5+
uintptr_t UintptrT
6+
int8_t Int8T
7+
int16_t Int16T
8+
int32_t Int32T
9+
int64_t Int64T
10+
uint8_t Uint8T
11+
uint16_t Uint16T
12+
uint32_t Uint32T
13+
uint64_t Uint64T
14+
intmax_t IntmaxT
15+
uintmax_t UintmaxT
1716
Option

c/cjson/cjson.pub

Lines changed: 0 additions & 1 deletion
This file was deleted.

c/clang/clang.pub

Lines changed: 0 additions & 21 deletions
This file was deleted.

c/debug/debug.pub

Lines changed: 0 additions & 2 deletions
This file was deleted.

c/ffi/ffi.pub

Lines changed: 0 additions & 3 deletions
This file was deleted.

c/libuv/libuv.pub

Lines changed: 0 additions & 69 deletions
This file was deleted.

c/llama2/llama2.pub

Lines changed: 0 additions & 8 deletions
This file was deleted.

c/lua/lua.pub

Lines changed: 0 additions & 14 deletions
This file was deleted.

c/neco/neco.pub

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)