]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: use a named type to indicate syntactic context
authorBryan C. Mills <bcmills@google.com>
Thu, 14 Sep 2017 15:36:21 +0000 (11:36 -0400)
committerBryan Mills <bcmills@google.com>
Tue, 19 Sep 2017 18:22:10 +0000 (18:22 +0000)
commitf2a5ed852bbde6c1bd21e3a716d6b8c834332015
tree0a6c9f49aa7d35bc2649ab4490aed346e36e8857
parent3066dbad52b0b0201f183db723044e68f3e4988d
cmd/cgo: use a named type to indicate syntactic context

We previously used bare strings, which made it difficult to see (and
to cross-reference) the set of allowed context values.

This change is purely cosmetic, but makes it easier for me to
understand how to address #21878.

updates #21878

Change-Id: I9027d94fd5997a0fe857c0055dea8719e1511f03
Reviewed-on: https://go-review.googlesource.com/63830
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/ast.go
src/cmd/cgo/gcc.go
src/cmd/cgo/main.go