aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/print.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-07-16 06:54:42 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-07-16 06:54:42 +0000
commitbe47d6eceffd2c5dbbc1566d5eea490527fb2bd4 (patch)
tree0e8fda573576bb4181dba29d0e88380a8c38fafd /libgo/runtime/print.c
parentefb30cdeb003fd7c585ee0d7657340086abcbd9e (diff)
downloadgcc-be47d6eceffd2c5dbbc1566d5eea490527fb2bd4.zip
gcc-be47d6eceffd2c5dbbc1566d5eea490527fb2bd4.tar.gz
gcc-be47d6eceffd2c5dbbc1566d5eea490527fb2bd4.tar.bz2
libgo: Update to Go 1.1.1.
From-SVN: r200974
Diffstat (limited to 'libgo/runtime/print.c')
-rw-r--r--libgo/runtime/print.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/runtime/print.c b/libgo/runtime/print.c
index 9e0c45b..f5c6e82 100644
--- a/libgo/runtime/print.c
+++ b/libgo/runtime/print.c
@@ -88,6 +88,9 @@ go_vprintf(const char *s, va_list va)
case 'a':
runtime_printslice(va_arg(va, Slice));
break;
+ case 'c':
+ runtime_printbyte(va_arg(va, int32));
+ break;
case 'd':
runtime_printint(va_arg(va, int32));
break;
@@ -154,6 +157,12 @@ runtime_printbool(_Bool v)
}
void
+runtime_printbyte(int8 c)
+{
+ gwrite(&c, 1);
+}
+
+void
runtime_printfloat(double v)
{
byte buf[20];