more ANSI/ISO C changes; start on converting the unwind-protect framework to ANSI C

This commit is contained in:
Chet Ramey
2023-03-29 15:43:46 -04:00
parent 727e92c806
commit d267701a91
41 changed files with 128 additions and 570 deletions
+3 -3
View File
@@ -387,7 +387,7 @@ xbotch (PTR_T mem, int e, const char *s, const char *file, int line)
assumed to not be busy; the caller (morecore()) checks for this.
BUSY[NU] must be set to 1. */
static void
bcoalesce (register int nu)
bcoalesce (int nu)
{
register union mhead *mp, *mp1, *mp2;
register int nbuck;
@@ -455,7 +455,7 @@ bcoalesce (register int nu)
is assumed to be empty. Must be called with signals blocked (e.g.,
by morecore()). BUSY[NU] must be set to 1. */
static void
bsplit (register int nu)
bsplit (int nu)
{
register union mhead *mp;
int nbuck, nblks, split_max;
@@ -616,7 +616,7 @@ morecore (int nu)
sigset_t set, oset;
int blocked_sigs;
/* Block all signals in case we are executed from a signal handler. */
/* Block signals in case we are executed from a signal handler. */
blocked_sigs = 0;
#ifdef SHELL
# if defined (SIGCHLD)