1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
$NetBSD: patch-ai,v 1.1.1.1 2003/12/24 12:57:30 jmmv Exp $
--- texk/ps2pkm/objects.c.orig Tue Feb 24 22:54:33 1998
+++ texk/ps2pkm/objects.c Thu Sep 30 13:34:16 1999
@@ -300,14 +300,14 @@
size = (size + sizeof(LONG) - 1) & -sizeof(LONG);
extra = (extra + sizeof(LONG) - 1) & -sizeof(LONG);
if (size + extra <= 0)
- abort("Non-positive allocate?");
+ t1_abort("Non-positive allocate?");
r = (struct xobject *) Xalloc(size + extra);
while (r == NULL) {
if (!GimeSpace()) {
IfTrace1(TRUE, "malloc attempted %d bytes.\n",
size + extra);
- abort("We have REALLY run out of memory");
+ t1_abort("We have REALLY run out of memory");
}
r = (struct xobject *) Xalloc(size + extra);
}
@@ -358,7 +358,7 @@
register struct xobject *obj; /* structure to free */
{
if (obj->type == INVALIDTYPE)
- abort("Free of already freed object?");
+ t1_abort("Free of already freed object?");
obj->type = INVALIDTYPE;
if (MemoryDebug > 1) {
@@ -777,7 +777,7 @@
char name[NAMESIZE]; /* buffer to store my copy of 'username' */
if (strlen(username) >= NAMESIZE)
- abort("Pragmatics name too large");
+ t1_abort("Pragmatics name too large");
strcpy(name, username);
for (p = name; *p != '\0'; p++)
*p = toupper(*p);
@@ -941,7 +941,7 @@
return;
default:
- abort("Consume: too many objects");
+ t1_abort("Consume: too many objects");
}
}
#endif /* WIN32 */
@@ -967,7 +967,7 @@
ObjectPostMortem(obj);
if (MustCrash)
- abort("Terminating because of CrashOnUserError...");
+ t1_abort("Terminating because of CrashOnUserError...");
else
ErrorMessage = typemsg;
@@ -1062,14 +1062,14 @@
if (obj != NULL)
ObjectPostMortem(obj);
if (MustCrash)
- abort("Terminating because of CrashOnUserError...");
+ t1_abort("Terminating because of CrashOnUserError...");
else
ErrorMessage = str;
return(ret);
}
/*
-:h3.abort() - Crash Due to Error
+:h3.t1_abort() - Crash Due to Error
We divide by zero, and if that doesn't work, call exit(), the results of
which is system dependent (and thus is part of the Hourglass required
@@ -1078,7 +1078,7 @@
static int test = 0;
/*ARGSUSED*/
-void abort(str)
+void t1_abort(str)
char *str;
{
LineIOTrace = TRUE;
@@ -1120,7 +1120,7 @@
/* All other calls to malloc are defined to Xalloc. */
if (sizeof(SHORT) != 2 || sizeof(LONG) != 4)
- abort("Fundamental TYPE1IMAGER assumptions invalid in this port");
+ t1_abort("Fundamental TYPE1IMAGER assumptions invalid in this port");
InitSpaces();
InitFonts();
InitFiles();
|