From 671e1e2d1599aa8c5f1010b3fe75c151c56a7403 Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Mon, 7 Jul 1997 00:00:01 +0100 Subject: beta: rc-1.5b2 --- heredoc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'heredoc.c') diff --git a/heredoc.c b/heredoc.c index 3930d9e..ba4fd3a 100644 --- a/heredoc.c +++ b/heredoc.c @@ -26,7 +26,7 @@ static char *readheredoc(char *eof) { int c; char *t, *buf, *bufend; unsigned char *s; - SIZE_T bufsize; + size_t bufsize; t = buf = nalloc(bufsize = 512); bufend = &buf[bufsize]; dead = FALSE; @@ -34,7 +34,7 @@ static char *readheredoc(char *eof) { char *nbuf; \ bufsize = bufsize * 2 + extra; \ nbuf = nalloc(bufsize); \ - memcpy(nbuf, buf, (SIZE_T) (t - buf)); \ + memcpy(nbuf, buf, (size_t) (t - buf)); \ t = nbuf + (t - buf); \ buf = nbuf; \ bufend = &buf[bufsize]; \ @@ -48,7 +48,7 @@ static char *readheredoc(char *eof) { return buf; } if (s != (unsigned char *) eof) { - SIZE_T len = s - (unsigned char *) eof; + size_t len = s - (unsigned char *) eof; if (t + len >= bufend) RESIZE(len); memcpy(t, eof, len); @@ -92,7 +92,7 @@ static Node *parseheredoc(char *s) { node = mk(nQword, "$", NULL); c = *s; } else { - SIZE_T len = 0; + size_t len = 0; do len++; while (!dnw[c = *(unsigned char *) s++]); -- cgit v1.2.3