]> Cypherpunks repositories - gostls13.git/commit
gc: clean up printing.
authorLuuk van Dijk <lvd@golang.org>
Mon, 31 Oct 2011 17:09:40 +0000 (18:09 +0100)
committerLuuk van Dijk <lvd@golang.org>
Mon, 31 Oct 2011 17:09:40 +0000 (18:09 +0100)
commit50110c9f83ee0cfa2909ca78a67f14dcca2e83c1
tree51c419b81bf1b7d8f398f4ffc1ee320342290946
parent584233608941dc579d8a4b90f463a8653f38de3a
gc: clean up printing.

Got rid of all the magic mystery globals. Now
for %N, %T, and %S, the flags +,- and # set a sticky
debug, sym and export mode, only visible in the new fmt.c.
Default is error mode. Handle h and l flags consistently with
the least side effects, so we can now change
things without worrying about unrelated things
breaking.

fixes #2361

R=rsc
CC=golang-dev
https://golang.org/cl/5316043
23 files changed:
src/cmd/gc/Makefile
src/cmd/gc/const.c
src/cmd/gc/dcl.c
src/cmd/gc/esc.c
src/cmd/gc/export.c
src/cmd/gc/fmt.c [new file with mode: 0644]
src/cmd/gc/gen.c
src/cmd/gc/go.h
src/cmd/gc/go.y
src/cmd/gc/lex.c
src/cmd/gc/obj.c
src/cmd/gc/print.c [deleted file]
src/cmd/gc/range.c
src/cmd/gc/reflect.c
src/cmd/gc/subr.c
src/cmd/gc/typecheck.c
src/cmd/gc/unsafe.c
src/cmd/gc/walk.c
src/pkg/fmt/fmt_test.go
src/pkg/reflect/all_test.go
test/ddd1.go
test/fixedbugs/bug340.go
test/named1.go