summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0165997)
SCCS-vsn: usr.bin/pascal/src/case.c 1.2
SCCS-vsn: usr.bin/pascal/src/hash.c 1.2
SCCS-vsn: usr.bin/pascal/src/nl.c 1.4
SCCS-vsn: usr.bin/pascal/src/string.c 1.2
SCCS-vsn: usr.bin/pascal/src/subr.c 1.3
SCCS-vsn: usr.bin/pascal/src/tree.c 1.2
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)case.c 1.1 %G%";
+static char sccsid[] = "@(#)case.c 1.2 %G%";
#include "whoami.h"
#include "0.h"
#include "whoami.h"
#include "0.h"
* Allocate case table space
*/
ctab = i = malloc(n * sizeof *ctab);
* Allocate case table space
*/
ctab = i = malloc(n * sizeof *ctab);
error("Ran out of memory (case)");
pexit(DIED);
}
error("Ran out of memory (case)");
pexit(DIED);
}
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)hash.c 1.1 %G%";
+static char sccsid[] = "@(#)hash.c 1.2 %G%";
#include "whoami.h"
#include "0.h"
#include "whoami.h"
#include "0.h"
for (htp = htab; htp < &htab[MAXHASH]; htp++) {
if (htp->ht_low == NIL) {
cp = (char *) calloc(sizeof ( int * ), HASHINC);
for (htp = htab; htp < &htab[MAXHASH]; htp++) {
if (htp->ht_low == NIL) {
cp = (char *) calloc(sizeof ( int * ), HASHINC);
yerror("Ran out of memory (hash)");
pexit(DIED);
}
yerror("Ran out of memory (hash)");
pexit(DIED);
}
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)nl.c 1.3 %G%";
+static char sccsid[] = "@(#)nl.c 1.4 %G%";
#include "whoami.h"
#include "0.h"
#include "whoami.h"
#include "0.h"
if (nlp >= nlact->nls_high) {
i = NLINC;
cp = malloc(NLINC * sizeof *nlp);
if (nlp >= nlact->nls_high) {
i = NLINC;
cp = malloc(NLINC * sizeof *nlp);
i = NLINC / 2;
cp = malloc((NLINC / 2) * sizeof *nlp);
}
i = NLINC / 2;
cp = malloc((NLINC / 2) * sizeof *nlp);
}
error("Ran out of memory (defnl)");
pexit(DIED);
}
error("Ran out of memory (defnl)");
pexit(DIED);
}
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)string.c 1.1 %G%";
+static char sccsid[] = "@(#)string.c 1.2 %G%";
#include "whoami.h"
#include "0.h"
#include "whoami.h"
#include "0.h"
i = strlen(cp) + 1;
if (strngp + i >= strng + STRINC) {
strngp = malloc(STRINC);
i = strlen(cp) + 1;
if (strngp + i >= strng + STRINC) {
strngp = malloc(STRINC);
yerror("Ran out of memory (string)");
pexit(DIED);
}
yerror("Ran out of memory (string)");
pexit(DIED);
}
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)subr.c 1.2 %G%";
+static char sccsid[] = "@(#)subr.c 1.3 %G%";
#include "whoami.h"
#include "0.h"
#include "whoami.h"
#include "0.h"
register int p1, *p2, nbyte;
nbyte = (num*size+( ( sizeof ( int ) ) - 1 ) ) & ~( ( sizeof ( int ) ) - 1 );
register int p1, *p2, nbyte;
nbyte = (num*size+( ( sizeof ( int ) ) - 1 ) ) & ~( ( sizeof ( int ) ) - 1 );
- if ((p1 = malloc(nbyte)) == -1 || p1==0)
- return (-1);
+ if ((p1 = malloc(nbyte)) == 0)
+ return (0);
p2 = p1;
nbyte /= sizeof ( int );
do {
p2 = p1;
nbyte /= sizeof ( int );
do {
/* Copyright (c) 1979 Regents of the University of California */
/* Copyright (c) 1979 Regents of the University of California */
-static char sccsid[] = "@(#)tree.c 1.1 %G%";
+static char sccsid[] = "@(#)tree.c 1.2 %G%";
#include "whoami.h"
#include "0.h"
#include "whoami.h"
#include "0.h"
if (spacep + howmuch >= tract->tr_high) {
i = TRINC;
cp = malloc(i * sizeof ( int ));
if (spacep + howmuch >= tract->tr_high) {
i = TRINC;
cp = malloc(i * sizeof ( int ));
yerror("Ran out of memory (tralloc)");
pexit(DIED);
}
yerror("Ran out of memory (tralloc)");
pexit(DIED);
}