From 119bc227de969a7e19ab2e9d06bf386b4417d23d Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 15 Aug 1988 15:27:29 +0000 Subject: [PATCH] use Realloc instead of Srealloc --- util/cpp/LLlex.c | 4 ++-- util/cpp/domacro.c | 12 ++++++------ util/cpp/replace.c | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/util/cpp/LLlex.c b/util/cpp/LLlex.c index d188cfbea..e6ddc619a 100644 --- a/util/cpp/LLlex.c +++ b/util/cpp/LLlex.c @@ -317,11 +317,11 @@ string_token(nm, stop_char) } str[pos++] = c; if (pos == str_size) - str = Srealloc(str, str_size <<= 1); + str = Realloc(str, str_size <<= 1); LoadChar(c); } str[pos++] = '\0'; /* for filenames etc. */ - str = Srealloc(str, pos); + str = Realloc(str, pos); return str; } diff --git a/util/cpp/domacro.c b/util/cpp/domacro.c index 2e84e4192..d9db2b2dc 100644 --- a/util/cpp/domacro.c +++ b/util/cpp/domacro.c @@ -611,7 +611,7 @@ get_text(formals, length) else text[pos++] = '\\'; if (pos == text_size) - text = Srealloc(text, text_size <<= 1); + text = Realloc(text, text_size <<= 1); } else if ( c == '/') { @@ -624,7 +624,7 @@ get_text(formals, length) else text[pos++] = '/'; if (pos == text_size) - text = Srealloc(text, text_size <<= 1); + text = Realloc(text, text_size <<= 1); } else if (formals && class(c) == STIDF) { @@ -644,7 +644,7 @@ get_text(formals, length) /* construct the formal parameter mark */ text[pos++] = FORMALP | (char) n; if (pos == text_size) - text = Srealloc(text, + text = Realloc(text, text_size <<= 1); } else { @@ -653,7 +653,7 @@ get_text(formals, length) idp = id_buf; while (pos + sz >= text_size) text_size <<= 1; - text = Srealloc(text, text_size); + text = Realloc(text, text_size); while (text[pos++] = *idp++) ; pos--; } @@ -661,12 +661,12 @@ get_text(formals, length) else { text[pos++] = c; if (pos == text_size) - text = Srealloc(text, text_size <<= 1); + text = Realloc(text, text_size <<= 1); LoadChar(c); } } text[pos++] = '\0'; - text = Srealloc(text, pos); + text = Realloc(text, pos); *length = pos - 1; return text; } diff --git a/util/cpp/replace.c b/util/cpp/replace.c index 9299cdb99..a71880ece 100644 --- a/util/cpp/replace.c +++ b/util/cpp/replace.c @@ -173,18 +173,18 @@ macro2buffer(idef, actpars, siztext) for (p = actpars[n - 1]; *p; p++) { text[pos++] = *p; if (pos == size) - text = Srealloc(text, size <<= 1); + text = Realloc(text, size <<= 1); } } else { text[pos++] = *ptr++; if (pos == size) - text = Srealloc(text, size <<= 1); + text = Realloc(text, size <<= 1); } } text[pos] = '\0'; *siztext = pos; - return Srealloc(text, pos+1); + return Realloc(text, pos+1); } EXPORT