]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: preserve safe annotation of package def.
authorDavid Symonds <dsymonds@golang.org>
Tue, 2 Apr 2013 21:26:08 +0000 (08:26 +1100)
committerDavid Symonds <dsymonds@golang.org>
Tue, 2 Apr 2013 21:26:08 +0000 (08:26 +1100)
commit389093feec0f71d3cd0cfe44e31600187ad24191
treec8ca2a30a755c70cae350be9a127b36dcd93c85d
parent019c8fc6255c21e4b7aa556269ae51d355728ef6
cmd/gc: preserve safe annotation of package def.

A package file may begin as either "package foo" or
"package foo safe". The latter is relevant when using -u.
https://golang.org/cl/6903059 resulted in the distinction
being dropped when a package was read for the second or later time.
This CL records whether that "safe" tag was present,
and includes it in the dummy statement generated for the lexer.

R=golang-dev, r, minux.ma, daniel.morsing, iant
CC=golang-dev
https://golang.org/cl/8255044
src/cmd/gc/go.h
src/cmd/gc/go.y
src/cmd/gc/lex.c
src/cmd/gc/y.tab.c