- Add bcmath to the standard UNIX build

- Change a couple of malloc()'s and free()'s to emalloc()'s and efree()'s
This commit is contained in:
Zeev Suraski 2000-11-26 09:34:01 +00:00
parent 203d67ea6b
commit 8a03f3062f
9 changed files with 33 additions and 690 deletions

View file

@ -51,9 +51,9 @@ char
/* Allocate the string memory. */
signch = ( num->n_sign == PLUS ? 0 : 1 ); /* Number of sign chars. */
if (num->n_scale > 0)
str = (char *) malloc (num->n_len + num->n_scale + 2 + signch);
str = (char *) emalloc (num->n_len + num->n_scale + 2 + signch);
else
str = (char *) malloc (num->n_len + 1 + signch);
str = (char *) emalloc (num->n_len + 1 + signch);
if (str == NULL) bc_out_of_memory();
/* The negative sign if needed. */