aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.h
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2014-10-02 14:16:58 -0700
committerRob Pike <r@golang.org>2014-10-02 14:16:58 -0700
commit7c8e057ad3b4fed16719d9ef91936537dff90ecd (patch)
tree62f700c28dcba6a0768f8a0f194e1f9bd54652b7 /src/runtime/malloc.h
parent28ddfb090c2824d60e30007cf171b5dc1e8935e2 (diff)
downloadgo-7c8e057ad3b4fed16719d9ef91936537dff90ecd.tar.xz
fmt: make the %#v verb a special flag
The %#v verb is special: it says all values below need to print as %#v. However, for some situations the # flag has other meanings and this causes some issues, particularly in how Formatters work. Since %#v dominates all formatting, translate it into actual state of the formatter and decouple it from the # flag itself within the calculations (although it must be restored when methods are doing the work.) The result is cleaner code and correct handling of # for Formatters. TODO: Apply the same thinking to the + flag in a followup CL. Also, the wasString return value in handleMethods is always false, so eliminate it. Update #8835 LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/146650043
Diffstat (limited to 'src/runtime/malloc.h')
0 files changed, 0 insertions, 0 deletions