aboutsummaryrefslogtreecommitdiff
path: root/src/liblink/obj6.c
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
commitebce79446dad6251f1d71b1e133a420ff6e8093c (patch)
tree69f669a1c17d7a76de0daffa17807113a75902e7 /src/liblink/obj6.c
parent4fedb59aec525faadaa5dcdd55c9798f6b4468ae (diff)
downloadgo-ebce79446dad6251f1d71b1e133a420ff6e8093c.tar.xz
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://golang.org/cl/106860045
Diffstat (limited to 'src/liblink/obj6.c')
-rw-r--r--src/liblink/obj6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblink/obj6.c b/src/liblink/obj6.c
index a8538c9ecf..6879e97bec 100644
--- a/src/liblink/obj6.c
+++ b/src/liblink/obj6.c
@@ -958,7 +958,7 @@ xfol(Link *ctxt, Prog *p, Prog **last)
{
Prog *q;
int i;
- enum as a;
+ int a;
loop:
if(p == nil)