From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/lib9/fmt/fltfmt.c | 2 +- src/lib9/fmt/fmtquote.c | 2 +- src/lib9/fmt/strtod.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib9/fmt') diff --git a/src/lib9/fmt/fltfmt.c b/src/lib9/fmt/fltfmt.c index 14ad8679..9c94f156 100644 --- a/src/lib9/fmt/fltfmt.c +++ b/src/lib9/fmt/fltfmt.c @@ -286,7 +286,7 @@ found: if(e >= -5 && e <= prec) { c1 = -e - 1; c4 = prec - e; - chr = 'h'; // flag for 'f' style + chr = 'h'; /* flag for 'f' style */ } break; case 'f': diff --git a/src/lib9/fmt/fmtquote.c b/src/lib9/fmt/fmtquote.c index b6f2e179..2304c4e5 100644 --- a/src/lib9/fmt/fmtquote.c +++ b/src/lib9/fmt/fmtquote.c @@ -209,7 +209,7 @@ __quotestrfmt(int runesin, Fmt *f) outlen = (char*)f->stop - (char*)f->to; __quotesetup(s, r, nin, outlen, &q, f->flags&FmtSharp, f->runes); -//print("bytes in %d bytes out %d runes in %d runesout %d\n", q.nbytesin, q.nbytesout, q.nrunesin, q.nrunesout); +/*print("bytes in %d bytes out %d runes in %d runesout %d\n", q.nbytesin, q.nbytesout, q.nrunesin, q.nrunesout); */ if(runesin){ if(!q.quoted) diff --git a/src/lib9/fmt/strtod.c b/src/lib9/fmt/strtod.c index fbc1c59e..c19c2849 100644 --- a/src/lib9/fmt/strtod.c +++ b/src/lib9/fmt/strtod.c @@ -67,7 +67,7 @@ enum S4, /* _+#.# #S4 eS5 */ S5, /* _+#.#e +S6 #S7 */ S6, /* _+#.#e+ #S7 */ - S7, /* _+#.#e+# #S7 */ + S7 /* _+#.#e+# #S7 */ }; static int xcmp(char*, char*); -- cgit v1.2.3