|
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.
Total comments: 17
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1757 lines, -1628 lines) |
Patch |
 |
M |
include/bio.h
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
include/link.h
|
View
|
1
5
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/5g/galign.c
|
View
|
1
2
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5g/gg.h
|
View
|
1
2
|
1 chunk |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5g/gsubr.c
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5g/opt.h
|
View
|
1
2
|
2 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5g/peep.c
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5g/reg.c
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5l/5.out.h
|
View
|
1
2
|
3 chunks |
+60 lines, -47 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6g/galign.c
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6g/gsubr.c
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6g/opt.h
|
View
|
1
2
|
2 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6g/reg.c
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6l/6.out.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/8g/galign.c
|
View
|
1
2
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8g/gsubr.c
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8g/opt.h
|
View
|
1
2
|
2 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8g/peep.c
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/8g/reg.c
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8l/8.out.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/dist/buildgc.c
|
View
|
1
2
|
1 chunk |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/gc/bisonerrors
|
View
|
1
|
2 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/gc/const.c
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/esc.c
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/lex.c
|
View
|
1
2
|
5 chunks |
+161 lines, -165 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/md5.c
|
View
|
1
|
1 chunk |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/gc/plive.c
|
View
|
1
|
2 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/popt.c
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/subr.c
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/swt.c
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/yerr.h
|
View
|
1
|
1 chunk |
+42 lines, -42 lines |
0 comments
|
Download
|
 |
M |
src/cmd/ld/textflag.h
|
View
|
1
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/liblink/asm5.c
|
View
|
1
2
|
2 chunks |
+1 line, -59 lines |
0 comments
|
Download
|
 |
M |
src/liblink/asm6.c
|
View
|
1
2
3
4
5
|
2 chunks |
+773 lines, -771 lines |
0 comments
|
Download
|
 |
M |
src/liblink/asm8.c
|
View
|
1
2
|
1 chunk |
+500 lines, -500 lines |
0 comments
|
Download
|
 |
M |
src/liblink/ld.c
|
View
|
1
2
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/liblink/obj6.c
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/liblink/obj8.c
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/liblink/sym.c
|
View
|
1
2
3
4
5
|
1 chunk |
+14 lines, -14 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/funcdata.h
|
View
|
1
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/stack.h
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 11
|