1
0
mirror of https://github.com/golang/go synced 2024-11-12 00:30:22 -07:00
go/doc/progs
Hiroshi Ioka 03876af91c cmd/cgo: support niladic function-like macros
Currently, cgo supports only macros which can be reduced to constants
or variables. The CL addresses remaining parts, macros which can be
represented as niladic functions.

The basic idea is simple:
  1. make a thin wrapper function per macros.
  2. replace macro expansions with function calls.

Fixes #10715
Fixes #18720

Change-Id: I150b4fb48e9dc4cc34466ef6417c04ac93d4bc1a
Reviewed-on: https://go-review.googlesource.com/43970
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-08-30 18:28:58 +00:00
..
cgo1.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
cgo2.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
cgo3.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
cgo4.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
defer2.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
defer.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
eff_bytesize.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
eff_qr.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
eff_sequence.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
eff_unused1.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
eff_unused2.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
error2.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
error3.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
error4.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
error.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
go1.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
gobs1.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
gobs2.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
image_draw.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
image_package1.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
image_package2.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
image_package3.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
image_package4.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
image_package5.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
image_package6.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
interface2.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
interface.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
json1.go all: spell "marshal" and "unmarshal" consistently 2016-11-12 00:13:35 +00:00
json2.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
json3.go all: spell "marshal" and "unmarshal" consistently 2016-11-12 00:13:35 +00:00
json4.go all: spell "marshal" and "unmarshal" consistently 2016-11-12 00:13:35 +00:00
json5.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
run.go cmd/cgo: support niladic function-like macros 2017-08-30 18:28:58 +00:00
slices.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
timeout1.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00
timeout2.go doc/progs: rewrite test driver in Go 2015-04-07 00:41:59 +00:00