]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: remove Biobuf unget
authorDave Cheney <dave@cheney.net>
Fri, 1 May 2015 05:29:11 +0000 (15:29 +1000)
committerDave Cheney <dave@cheney.net>
Fri, 1 May 2015 23:08:18 +0000 (23:08 +0000)
commit8d16253c90aea7f0c6eaef7741e0f32ecc86100e
treea7975ba3f9fe3125f70651f19f095a4a17a41c18
parentc723230e4a1ddb30b4822de8f795c16fd9aa90ff
cmd/internal/obj: remove Biobuf unget

This change applies CL 9365 to the copy of Biobuf in cmd/internal/obj.

In the process I discovered that some of the methods that should have been
checking the unget buffer before reading were not and it was probably just
dumb luck that we handn't hit these issues before; Bungetc is only used in
one place in cmd/internal/gc and only an unlikely code path.

Change-Id: Ifa0c5c08442e9fe951a5078c6e9ec77a8a4dc2ff
Reviewed-on: https://go-review.googlesource.com/9529
Reviewed-by: Daniel Morsing <daniel.morsing@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
Run-TryBot: Dave Cheney <dave@cheney.net>
src/cmd/internal/gc/lex.go
src/cmd/internal/obj/util.go