diff options
author | Russ Cox <rsc@golang.org> | 2014-07-02 15:41:29 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-07-02 15:41:29 -0400 |
commit | cd15c4f2581257e0fd8d2fdbb03f41f8577d3d1f (patch) | |
tree | 58cd265be4d401fcb4e716006738500b990c3961 /src/cmd/8l | |
parent | c0874fe1faea174b892b4498e1481d86925dd6b8 (diff) | |
download | go-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/8l')
-rw-r--r-- | src/cmd/8l/8.out.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/8l/8.out.h b/src/cmd/8l/8.out.h index 8e642d390..ed54f6744 100644 --- a/src/cmd/8l/8.out.h +++ b/src/cmd/8l/8.out.h @@ -32,7 +32,7 @@ #define NSNAME 8 #include "../ld/textflag.h" -enum as +enum { AXXX, AAAA, |