From e8fb1d3efb114d1859f14fda2b6681d99df1f48a Mon Sep 17 00:00:00 2001 From: wkj Date: Mon, 17 May 2004 02:24:15 +0000 Subject: tr2post and aux/download; download is a shell script in $PLAN9/bin. --- src/cmd/postscript/tr2post/Bgetfield.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/cmd/postscript/tr2post/Bgetfield.c') diff --git a/src/cmd/postscript/tr2post/Bgetfield.c b/src/cmd/postscript/tr2post/Bgetfield.c index 974fce62..fc0dfc13 100644 --- a/src/cmd/postscript/tr2post/Bgetfield.c +++ b/src/cmd/postscript/tr2post/Bgetfield.c @@ -4,6 +4,9 @@ #include "../common/common.h" #include "tr2post.h" +#undef isspace +#define isspace risspace + int isspace(Rune r) { @@ -11,9 +14,8 @@ isspace(Rune r) } int -Bskipws(Biobufhdr *bp) { +Bskipws(Biobuf *bp) { int r; - char c[UTFmax]; int sindex = 0; /* skip over initial white space */ @@ -54,7 +56,7 @@ asc2dig(char c, int base) { */ int -Bgetfield(Biobufhdr *bp, int type, void *thing, int size) { +Bgetfield(Biobuf *bp, int type, void *thing, int size) { int r; Rune R; char c[UTFmax]; @@ -65,6 +67,8 @@ Bgetfield(Biobufhdr *bp, int type, void *thing, int size) { int dig; unsigned int u = 0; + r = 0; + /* skip over initial white space */ if (Bskipws(bp) < 0) return(-1); -- cgit v1.2.3