summaryrefslogtreecommitdiff
path: root/src/cmd/6l
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-07-02 15:41:29 -0400
committerRuss Cox <rsc@golang.org>2014-07-02 15:41:29 -0400
commitcd15c4f2581257e0fd8d2fdbb03f41f8577d3d1f (patch)
tree58cd265be4d401fcb4e716006738500b990c3961 /src/cmd/6l
parentc0874fe1faea174b892b4498e1481d86925dd6b8 (diff)
downloadgo-cd15c4f2581257e0fd8d2fdbb03f41f8577d3d1f.tar.gz
build: annotations and modifications for c2go
The main changes fall into a few patterns: 1. Replace #define with enum. 2. Add /*c2go */ comment giving effect of #define. This is necessary for function-like #defines and non-enum-able #defined constants. (Not all compilers handle negative or large enums.) 3. Add extra braces in struct initializer. (c2go does not implement the full rules.) This is enough to let c2go typecheck the source tree. There may be more changes once it is doing other semantic analyses. LGTM=minux, iant R=minux, dave, iant CC=golang-codereviews https://codereview.appspot.com/106860045
Diffstat (limited to 'src/cmd/6l')
-rw-r--r--src/cmd/6l/6.out.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/6l/6.out.h b/src/cmd/6l/6.out.h
index 1e2a1488f..af72784e8 100644
--- a/src/cmd/6l/6.out.h
+++ b/src/cmd/6l/6.out.h
@@ -36,7 +36,7 @@
* amd64
*/
-enum as
+enum
{
AXXX,
AAAA,