From cd15c4f2581257e0fd8d2fdbb03f41f8577d3d1f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 2 Jul 2014 15:41:29 -0400 Subject: 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 --- src/cmd/6l/6.out.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/6l') 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, -- cgit v1.2.1