summaryrefslogtreecommitdiff
path: root/heredoc.c
diff options
context:
space:
mode:
authorToby Goodwin <tgoodwin@cygnus.co.uk>1997-07-07 00:00:01 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:59 +0100
commitb87bfedf65c289bf0ee5338c9e10492b70b1e8e0 (patch)
tree906ba5d55d6993f59d7bb1def63d494bafd38728 /heredoc.c
parent5556dde4d3ad4e34267320b1411fc090b18a24b0 (diff)
beta: rc-1.5b2
Diffstat (limited to 'heredoc.c')
-rw-r--r--heredoc.c8
1 files changed, 4 insertions, 4 deletions
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++]);