diff --git a/misc.c b/misc.c index 2c521cc..e5e9fd6 100644 --- a/misc.c +++ b/misc.c @@ -29,7 +29,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.174 2011/10/24 19:40:58 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.175 2011/10/25 22:25:06 tg Exp $"); /* type bits for unsigned char */ unsigned char chtypes[UCHAR_MAX + 1]; @@ -96,7 +96,7 @@ initctypes(void) /* called from XcheckN() to grow buffer */ char * -Xcheck_grow_(XString *xsp, const char *xp, size_t more) +Xcheck_grow(XString *xsp, const char *xp, size_t more) { const char *old_beg = xsp->beg; diff --git a/sh.h b/sh.h index 58f450d..6f8ce2b 100644 --- a/sh.h +++ b/sh.h @@ -151,7 +151,7 @@ #endif #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.496 2011/10/24 19:41:13 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.497 2011/10/25 22:25:07 tg Exp $"); #endif #define MKSH_VERSION "R40 2011/10/24" @@ -1297,7 +1297,7 @@ typedef char *XStringP; #define XcheckN(xs, xp, n) do { \ ssize_t more = ((xp) + (n)) - (xs).end; \ if (more > 0) \ - (xp) = Xcheck_grow_(&(xs), (xp), more); \ + (xp) = Xcheck_grow(&(xs), (xp), more); \ } while (/* CONSTCOND */ 0) /* check for overflow, expand string */ @@ -1318,7 +1318,7 @@ typedef char *XStringP; #define Xsavepos(xs, xp) ((xp) - (xs).beg) #define Xrestpos(xs, xp, n) ((xs).beg + (n)) -char *Xcheck_grow_(XString *, const char *, size_t); +char *Xcheck_grow(XString *, const char *, size_t); /* * expandable vector of generic pointers