comparison go/godc/README.txt @ 17:739c40f35a6a

- update READMEs
author cslag
date Sat, 26 Mar 2016 22:32:59 +0100
parents 8a45a05ff64e
children 1e3d929e43be
comparison
equal deleted inserted replaced
16:a40084782546 17:739c40f35a6a
2 Copyright 2014-2016 Tassilo Philipp 2 Copyright 2014-2016 Tassilo Philipp
3 February 23, 2014 3 February 23, 2014
4 4
5 5
6 BUILD/INSTALLATION 6 BUILD/INSTALLATION
7 ------------------ 7 ==================
8 8
9 1) make sure dyncall is built and libraries/headers are in include paths or 9 1) make sure dyncall is built and libraries/headers are in include paths or
10 CGO_CFLAGS points to them, etc. 10
11 CGO_CFLAGS points to them, etc.
11 12
12 2) Build this nut with: 13 2) Build this nut with:
13 go build 14
15 go build
14 16
15 17
16 API 18 API
17 --- 19 ===
18 20
19 Since go is low level, dyncall's public functions are pretty much exposed 21 Since go is low level, dyncall's public functions are pretty much exposed
20 function by function. Referg to dyncall(3) and godc.go. 22 function by function. Referg to dyncall(3) and godc.go.
21 23
22 l := new(ExtLib) 24 l := new(ExtLib)
41 43
42 vm.Arg.... 44 vm.Arg....
43 45
44 46
45 SIGNATURE FORMAT 47 SIGNATURE FORMAT
46 ---------------- 48 ================
47 49
48 Signature string is only used by ArgF function, rest uses type info from Go. 50 Signature string is only used by ArgF function, rest uses type info from Go.
49 51
50 TYPE CONVERSIONS (and reserved signature char) 52 TYPE CONVERSIONS (and reserved signature char)
51 53
67 'd' | float64,C.double | double | float64 69 'd' | float64,C.double | double | float64
68 'p' | *,[],unsafe.Pointer | void* | unsafe.Pointer 70 'p' | *,[],unsafe.Pointer | void* | unsafe.Pointer
69 'Z' | string | void* | string 71 'Z' | string | void* | string
70 72
71 73
72 ToDo: 74 TODO
75 ====
76
73 - structs 77 - structs
74 - callbacks 78 - callbacks
75 - callf wrap (argf already there) 79 - callf wrap (argf already there)
80 - update cconv modes, so they are up to date
76 81