1
0
mirror of https://github.com/golang/go synced 2024-10-05 04:31:22 -06:00
go/src/lib9
Russ Cox cbbc6a102d cmd/5l, cmd/6l, cmd/8l, cmd/cc, cmd/gc: new flag parsing
This CL adds a flag parser that matches the semantics of Go's
package flag. It also changes the linkers and compilers to use
the new flag parser.

Command lines that used to work, like
        8c -FVw
        6c -Dfoo
        5g -I/foo/bar
now need to be split into separate arguments:
        8c -F -V -w
        6c -D foo
        5g -I /foo/bar
The new spacing will work with both old and new tools.

The new parser also allows = for arguments, as in
        6c -D=foo
        5g -I=/foo/bar
but that syntax will not work with the old tools.

In addition to matching standard Go binary flag parsing,
the new flag parser generates more detailed usage messages
and opens the door to long flag names.

The recently added gc flag -= has been renamed -complete.

R=remyoudompheng, daniel.morsing, minux.ma, iant
CC=golang-dev
https://golang.org/cl/7035043
2013-01-06 15:24:47 -05:00
..
fmt lib9/fmt: do not put a main symbol into lib9.a 2012-09-24 12:57:05 -04:00
utf src/lib9/utf: update to Unicode 6.2.0 2012-10-31 10:52:59 -07:00
_exits.c
_p9dir.c
argv0.c
atoi.c
await.c lib9: make safe for automatic builds 2012-02-01 18:25:40 -05:00
cleanname.c
create.c lib9/create.c: delete unused variable 2011-04-13 23:12:48 -07:00
ctime.c lib9: fix warning under clang 3.1 2012-04-18 09:57:00 +10:00
dirfstat.c
dirfwstat.c build: test for _WIN32, not _MINGW32 2010-09-08 22:20:35 -04:00
dirstat.c build: test for _WIN32, not _MINGW32 2010-09-08 22:20:35 -04:00
dirwstat.c
dup.c
errstr.c
exec.c
execl.c
exitcode.c build: fix unused parameters 2011-08-25 16:08:13 -04:00
exits.c
flag.c cmd/5l, cmd/6l, cmd/8l, cmd/cc, cmd/gc: new flag parsing 2013-01-06 15:24:47 -05:00
fmtlock2.c
getenv.c
getfields.c
getwd.c lib9: fix memory leak in p9getwd() 2012-06-05 01:31:23 +08:00
goos.c cmd/dist, cmd/8g: implement GO386=387/sse to choose FPU flavour. 2013-01-02 22:55:23 +01:00
jmp.c lib9: make safe for automatic builds 2012-02-01 18:25:40 -05:00
main.c
Makefile build: delete make paraphernalia 2012-02-06 13:34:25 -05:00
nan.c
notify.c lib9: make safe for automatic builds 2012-02-01 18:25:40 -05:00
nulldir.c
open.c
readn.c
rfork.c lib9: make safe for automatic builds 2012-02-01 18:25:40 -05:00
seek.c
strecpy.c
sysfatal.c
time.c build: test for _WIN32, not _MINGW32 2010-09-08 22:20:35 -04:00
tokenize.c
windows.c lib9: make safe for automatic builds 2012-02-01 18:25:40 -05:00