Release calc version 2.11.0t4

This commit is contained in:
Landon Curt Noll
1999-09-30 02:01:00 -07:00
parent 1ce630ac19
commit 97e9429000
23 changed files with 225 additions and 106 deletions

View File

@@ -960,8 +960,8 @@ stringrsearch(STRING *s1, STRING *s2, long start, long end, ZVALUE *index)
#define STRALLOC 100
static STRING *freeStr;
static STRING **firstStrs;
static STRING *freeStr = NULL;
static STRING **firstStrs = NULL;
static long blockcount = 0;
@@ -984,8 +984,12 @@ stralloc(void)
temp->s_links = 0;
}
blockcount++;
newfn = (STRING **)
realloc(firstStrs, blockcount * sizeof(STRING *));
if (firstStrs == NULL) {
newfn = (STRING **) malloc( blockcount * sizeof(STRING *));
} else {
newfn = (STRING **)
realloc(firstStrs, blockcount * sizeof(STRING *));
}
if (newfn == NULL) {
math_error("Cannot allocate new string block");
/*NOTREACHED*/