mirror of
https://github.com/golang/go
synced 2024-10-04 07:21:22 -06:00
b8babed7c2
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
51 lines
779 B
Makefile
51 lines
779 B
Makefile
# Copyright 2009 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
include ../../Make.conf
|
|
|
|
LIB=\
|
|
gc.a$O\
|
|
|
|
HFILES=\
|
|
go.h\
|
|
y.tab.h\
|
|
|
|
YFILES=\
|
|
go.y\
|
|
|
|
OFILES=\
|
|
y.tab.$O\
|
|
lex.$O\
|
|
subr.$O\
|
|
dcl.$O\
|
|
export.$O\
|
|
walk.$O\
|
|
const.$O\
|
|
mparith1.$O\
|
|
mparith2.$O\
|
|
mparith3.$O\
|
|
sysimport.$O\
|
|
compat.$O\
|
|
|
|
$(LIB): $(OFILES)
|
|
ar rsc $(LIB) $(OFILES)
|
|
|
|
$(OFILES): $(HFILES)
|
|
|
|
y.tab.h: $(YFILES)
|
|
yacc $(YFLAGS) $(YFILES)
|
|
|
|
y.tab.c: y.tab.h
|
|
test -f y.tab.c && touch y.tab.c
|
|
|
|
sysimport.c: sys.go mksys.c
|
|
gcc -o mksys mksys.c
|
|
6g sys.go
|
|
./mksys sys.6 >_sysimport.c && mv _sysimport.c sysimport.c
|
|
|
|
clean:
|
|
rm -f $(OFILES) *.6 enam.c 6.out a.out y.tab.h y.tab.c $(LIB) _sysimport.c
|
|
|
|
install: $(LIB)
|