summaryrefslogtreecommitdiff
path: root/print/teTeX-bin/patches/patch-al
blob: ca2a867ca92dd385cd009845a3521b3e38592499 (plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
$NetBSD: patch-al,v 1.1 1999/10/04 23:21:46 simonb Exp $

--- texk/ps2pkm/regions.c.orig	Fri Mar 26 07:11:59 1999
+++ texk/ps2pkm/regions.c	Thu Sep 30 13:34:44 1999
@@ -242,7 +242,7 @@
         register struct edgelist *next;  /* loop variable                    */
  
         if (area->references < 0)
-               abort("KillRegion:  negative reference count");
+               t1_abort("KillRegion:  negative reference count");
         if ( (--(area->references) > 1) ||
            ( (area->references == 1) && !ISPERMANENT(area->flag) ) )
             return;
@@ -308,7 +308,7 @@
        IfTrace2((RegionDebug),"....new edge: ymin=%d, ymax=%d ",
                                               (LONG)ymin, (LONG) ymax);
        if (ymin >= ymax)
-               abort("newedge: height not positive");
+               t1_abort("newedge: height not positive");
 /*
 We are going to copy the xvalues into a newly allocated area.  It
 helps performance if the values are all "long" aligned.  We can test
@@ -567,7 +567,7 @@
                        break;
  
                    default:
-                       abort("Interior: path type error");
+                       t1_abort("Interior: path type error");
                }
 /*
 We're done with this segment.  Advance to the next path segment in
@@ -633,7 +633,7 @@
                } while (area != NULL && area->ymin == y);
  
                if (count != 0)
-                       abort("Unwind:  uneven edges");
+                       t1_abort("Unwind:  uneven edges");
        }
 }
 /*
@@ -691,7 +691,7 @@
                }
  
                if (ymax < ymin)
-                       abort("negative sized edge?");
+                       t1_abort("negative sized edge?");
  
  
 	       /* FIXME: there are not as much parameters as here. */
@@ -942,9 +942,9 @@
                if (y < list->ymin)
                        break;
                if (y >= list->ymax)
-                       abort("splitedge: above top of list");
+                       t1_abort("splitedge: above top of list");
                if (y == list->ymin)
-                       abort("splitedge: would be null");
+                       t1_abort("splitedge: would be null");
  
                r = (struct edgelist *)Allocate(sizeof(struct edgelist), list, 0);
 /*
@@ -984,7 +984,7 @@
 Then, we return the caller a pointer to 'new':
 */
        if (new == NULL)
-               abort("null splitedge");
+               t1_abort("null splitedge");
        lastlist->link = NULL;
        last->link = list;
        IfTrace1((RegionDebug > 1),"yields %x\n", new);
@@ -1006,7 +1006,7 @@
 #endif
 {
        if (BOTTOM(top) > TOP(bottom))
-               abort("vertjoin not disjoint");
+               t1_abort("vertjoin not disjoint");
  
        for (; top->link != NULL; top=top->link) { ; }
  
@@ -1114,7 +1114,7 @@
  
        h0 = h = edge->ymax - edge->ymin;
        if (h <= 0)
-               abort("SwathUnion:  0 height swath?");
+               t1_abort("SwathUnion:  0 height swath?");
  
        before = before0;
        after = before->link;
@@ -1378,7 +1378,7 @@
  
        for (p = beg; p != right; p = p->link) {
                if (p->link == NULL && right != NULL)
-                       abort("discard():  ran off end");
+                       t1_abort("discard():  ran off end");
                IfTrace1((RegionDebug > 0),"discarding %x\n", p);
                p->ymin = p->ymax = 32767;
                end = p;
@@ -1466,7 +1466,7 @@
  
        for (edge=region->anchor; VALIDEDGE(edge); edge=next) {
                if (edge->link == NULL)
-                       abort("UnJumble:  unpaired edge?");
+                       t1_abort("UnJumble:  unpaired edge?");
                next = edge->link->link;
                edge->link->link = NULL;
                anchor = SortSwath(anchor, edge, t1_SwathUnion);
@@ -1504,9 +1504,9 @@
                if (xmin != xmax || (xmin != R->xmin && xmax != R->xmax))
                        R->flag &= ~ISRECTANGULAR(ON);
                if (xmin < e->xmin || xmax > e->xmax)
-                       abort("Tighten: existing edge bound was bad");
+                       t1_abort("Tighten: existing edge bound was bad");
                if (xmin < R->xmin || xmax > R->xmax)
-                       abort("Tighten: existing region bound was bad");
+                       t1_abort("Tighten: existing region bound was bad");
                e->xmin = xmin;
                e->xmax = xmax;
        }
@@ -1755,11 +1755,11 @@
        int oldmin,oldmax;
 {
        if (edge->type != EDGETYPE)
-               abort("EDGE ERROR: non EDGETYPE in list");
+               t1_abort("EDGE ERROR: non EDGETYPE in list");
 /*
 The following check is not valid if the region is jumbled so I took it
 out:
 */
 /*     if (edge->ymin < oldmax && edge->ymin != oldmin)
-               abort("EDGE ERROR: overlapping swaths"); */
+               t1_abort("EDGE ERROR: overlapping swaths"); */
 }