]> Cypherpunks repositories - gostls13.git/commit
gc: use HEADER_IO macro from gopack
authorRon Minnich <rminnich@gmail.com>
Mon, 7 Nov 2011 16:42:13 +0000 (11:42 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 7 Nov 2011 16:42:13 +0000 (11:42 -0500)
commit986ad31b2dad78d2238a426904fcf9fbf120d2c8
tree917e34a630324b5795cb3551195d2ba0c7b0b91a
parent2e1bb76f9b7264b8d6cdb4d244746fd8ac45f160
gc: use HEADER_IO macro from gopack

Use HEADER_IO macro from gopack to read archive header
The HEADER_IO macro portably reads archive headers. The
current arsize code fails in the case of archive headers produced
on plan 9 6c and read on other systems (it's not portable).
Modify lex.c to use the portable macro
Build tested (including tests) on OSX.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5323072
src/cmd/gc/lex.c