summaryrefslogtreecommitdiff
path: root/src/cmd/gc/const.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-10-03 16:15:55 -0700
committerRuss Cox <rsc@golang.org>2008-10-03 16:15:55 -0700
commitd051793b3248f7d091c0c3ac2cbfeb11410f865b (patch)
treeae6629da01ba13e9eedfc0edd106bb1eba56778e /src/cmd/gc/const.c
parent17e3fde662d644d019e86fde01b0dde3beb33f8f (diff)
downloadgolang-d051793b3248f7d091c0c3ac2cbfeb11410f865b.tar.gz
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
Diffstat (limited to 'src/cmd/gc/const.c')
0 files changed, 0 insertions, 0 deletions