]> Cypherpunks repositories - gostls13.git/commit
new import/export format
authorRuss Cox <rsc@golang.org>
Fri, 3 Oct 2008 23:15:55 +0000 (16:15 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 3 Oct 2008 23:15:55 +0000 (16:15 -0700)
commitb8babed7c23a38e4267f432c54909dd89c5f6c30
treeae6629da01ba13e9eedfc0edd106bb1eba56778e
parent8877d27b401046f6b6403946ad5bcb50dd349539
new import/export format

    package flag
export type flag.Flag struct { name flag.string; usage flag.string; \
value flag.Value; next *flag.Flag }
type flag.string string
type flag.Value interface { AsBool () (? *flag.BoolValue); \
AsInt () (? *flag.IntValue); AsString () (? *flag.StringValue); \
IsBool () (? flag.bool); IsInt () (? flag.bool); IsString () (? flag.bool); \
Str () (? flag.string); ValidValue (str flag.string) (? flag.bool) }
type flag.BoolValue struct { val flag.bool; p *flag.bool }
type flag.IntValue struct { val flag.int64; p *flag.int64 }
type flag.StringValue struct { val flag.string; p *flag.string }
type flag.bool bool
func (e *flag.StringValue) AsBool () (? *flag.BoolValue)
func (e *flag.StringValue) AsInt () (? *flag.IntValue)
...

the \ continuations are for this message, not real.

changed delimiter for import from (( )) to $$ $$.

replaced mksys.bash with mksys.c

changed sys.go to use leading export,
fake package name is now SYS not foop

don't always require ; on forward func decls

R=ken,r
DELTA=1827  (446 added, 1083 deleted, 298 changed)
OCL=16433
CL=16463
13 files changed:
src/cmd/ar/ar.c
src/cmd/gc/Makefile
src/cmd/gc/dcl.c
src/cmd/gc/export.c
src/cmd/gc/go.h
src/cmd/gc/go.y
src/cmd/gc/lex.c
src/cmd/gc/mksys.bash [deleted file]
src/cmd/gc/mksys.c [new file with mode: 0644]
src/cmd/gc/subr.c
src/cmd/gc/sys.go
src/cmd/gc/sysimport.c
test/golden.out