More sh updates (with related changes to everything else). Switched

to using getopt and cleaned up the resulting mess.  if-then-else-fi
is now basically working (given a bunch of constraints).
 -Erik
This commit is contained in:
Eric Andersen
2000-07-28 15:14:45 +00:00
parent 6a99aaf020
commit 501c88b245
11 changed files with 421 additions and 193 deletions

View File

@ -1465,13 +1465,21 @@ extern void *xmalloc(size_t size)
return ptr;
}
void *xrealloc(void *old, size_t size)
extern void *xrealloc(void *old, size_t size)
{
void *ptr = realloc(old, size);
if (!ptr)
fatalError(memory_exhausted);
return ptr;
}
extern void *xcalloc(size_t nmemb, size_t size)
{
void *ptr = calloc(nmemb, size);
if (!ptr)
fatalError(memory_exhausted);
return ptr;
}
#endif
#if defined BB_FEATURE_NFSMOUNT