]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.cc] cmd/new5a etc, cmd/internal/asm: initial C → Go conversion
authorRuss Cox <rsc@golang.org>
Wed, 21 Jan 2015 16:36:15 +0000 (11:36 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 21 Jan 2015 19:42:48 +0000 (19:42 +0000)
commit9e2f8fdb6f54d539bafc9e2bef4b266def1e3e74
tree8c7e7aa1b5f4c4d6ced98d6eeb769109a1117f63
parent24dfaba6d1dafffe55987ded672c73a9b6087e79
[dev.cc] cmd/new5a etc, cmd/internal/asm: initial C → Go conversion

This is the raw output of c2go. It needs fixes to make it compile.
Rather than make c2go do a 100% conversion (like we're doing for
liblink and the Go compilers), since this is so trivial I'm going to
make the remaining changes by hand in a followup CL.
This CL makes the next CL's diffs useful.

Also copy unmodified .y files (5a/a.y → new5a/a.y and so on)

The converted 6a/lex.c has been written to new6a/lex.go
but also to internal/asm/asm.go, because I'm going to factor
out some common code rather than convert it four times.

Change-Id: I01d5dfd6a9be3ef6191581560bdddd0ac0e8bc58
Reviewed-on: https://go-review.googlesource.com/3142
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/internal/asm/asm.go [new file with mode: 0644]
src/cmd/internal/asm/lexbody.go [new file with mode: 0644]
src/cmd/internal/asm/macbody.go [new file with mode: 0644]
src/cmd/new5a/a.y [new file with mode: 0644]
src/cmd/new5a/lex.go [new file with mode: 0644]
src/cmd/new6a/a.y [new file with mode: 0644]
src/cmd/new6a/lex.go [new file with mode: 0644]
src/cmd/new8a/a.y [new file with mode: 0644]
src/cmd/new8a/lex.go [new file with mode: 0644]
src/cmd/new9a/a.y [new file with mode: 0644]
src/cmd/new9a/lex.go [new file with mode: 0644]