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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
|
*** jtex1.7/ptex/ptex/Makefile.orig Sat Sep 9 17:53:07 1995
--- jtex1.7/ptex/ptex/Makefile Sat Sep 9 17:56:03 1995
***************
*** 6,15 ****
# Installation directories
BINDIR=/usr/local/bin
! TEXPOOLDIR=/usr/lib/tex
! MFPOOLDIR=/usr/lib/mf
CDIR=ctex
! CONV=convert
# Libraries needed for X10 support
XLIBS=-lX
--- 6,15 ----
# Installation directories
BINDIR=/usr/local/bin
! TEXPOOLDIR=/usr/local/share/tex/apool
! MFPOOLDIR=/usr/local/share/mf
CDIR=ctex
! CONV=./convert
# Libraries needed for X10 support
XLIBS=-lX
***************
*** 41,54 ****
cp ${CDIR}/initex ${BINDIR}/initex
cp ${CDIR}/tex.pool ${TEXPOOLDIR}/tex.pool
! web2c:
(cd web2cdir; make)
triptex: web2c jtangle ${CDIR}/tex0.c ${CDIR}/triptex
${CDIR}/triptex:
(cd ${CDIR}; make triptex)
! initex: web2c jtangle ${CDIR}/initex
${CDIR}/initex: ${CDIR}/tex0.c
(cd ${CDIR}; make initex)
--- 41,54 ----
cp ${CDIR}/initex ${BINDIR}/initex
cp ${CDIR}/tex.pool ${TEXPOOLDIR}/tex.pool
! web2c:
(cd web2cdir; make)
triptex: web2c jtangle ${CDIR}/tex0.c ${CDIR}/triptex
${CDIR}/triptex:
(cd ${CDIR}; make triptex)
! initex: web2c jtangle/jtangle ${CDIR}/initex
${CDIR}/initex: ${CDIR}/tex0.c
(cd ${CDIR}; make initex)
***************
*** 84,90 ****
${CDIR}/latex: initex virtex
(cd ${CDIR}; make latex)
! jtangle:
(cd jtangle; make jtangle)
--- 84,90 ----
${CDIR}/latex: initex virtex
(cd ${CDIR}; make latex)
! jtangle/jtangle:
(cd jtangle; make jtangle)
*** jtex1.7/ptex/ptex/ctex/Makefile.orig Sat Sep 9 17:52:55 1995
--- jtex1.7/ptex/ptex/ctex/Makefile Sat Sep 9 17:56:07 1995
***************
*** 7,13 ****
SITEDIR=..
#CC=gcc
OPT=-O
! CFLAGS=$(OPT) -I$(SITEDIR)
LDFLAGS=
RM=/bin/rm
--- 7,13 ----
SITEDIR=..
#CC=gcc
OPT=-O
! CFLAGS=$(OPT) -I$(SITEDIR) -D_HAVE_PRAM_H
LDFLAGS=
RM=/bin/rm
*** jtex1.7/ptex/ptex/ctex/extra.c.orig Sat Sep 9 17:52:55 1995
--- jtex1.7/ptex/ptex/ctex/extra.c Sat Sep 9 17:56:09 1995
***************
*** 38,49 ****
static char *texeditvalue = EDITOR;
! #ifdef SYSV /* Sys V compatibility */
! #define index strchr
! #define rindex strrchr
! extern int sprintf();
#else
extern char *sprintf();
#endif
/* C library stuff that we're going to use */
--- 38,50 ----
static char *texeditvalue = EDITOR;
! #ifdef SYSV
! extern sprintf();
! #else
! #if (defined(BSD) && (BSD > 199103))
#else
extern char *sprintf();
+ #endif
#endif
/* C library stuff that we're going to use */
*** jtex1.7/ptex/ptex/ctex/tex.h.orig Sat Sep 9 17:52:55 1995
--- jtex1.7/ptex/ptex/ctex/tex.h Sat Sep 9 17:56:13 1995
***************
*** 9,14 ****
--- 9,21 ----
#include <stdio.h>
#include "site.h"
+ #ifdef _HAVE_PRAM_H
+ #ifdef BSD
+ #undef BSD
+ #endif
+ #include <sys/param.h>
+ #endif
+
/* These are used in the change files and in macros defined in tex.h */
#define inputpathspec 1
#define readpathspec 2
*** jtex1.7/ptex/ptex/jtangle/Makefile.orig Sat Sep 9 17:53:03 1995
--- jtex1.7/ptex/ptex/jtangle/Makefile Sat Sep 9 17:56:15 1995
***************
*** 6,12 ****
BINDIR=/usr/local/bin
! CFLAGS=-O -Dlink=link_array -I..
LDFLAGS=-s
.SUFFIXES:
--- 6,12 ----
BINDIR=/usr/local/bin
! CFLAGS=-O -Dlink=link_array -I.. -D_HAVE_PRAM_H
LDFLAGS=-s
.SUFFIXES:
*** jtex1.7/ptex/ptex/jtangle/tanext.c.orig Sat Sep 9 17:53:04 1995
--- jtex1.7/ptex/ptex/jtangle/tanext.c Sat Sep 9 17:56:17 1995
***************
*** 16,21 ****
--- 16,29 ----
#include <stdio.h>
#include "site.h"
+ #ifdef _HAVE_PRAM_H
+ #ifdef BSD
+ #undef BSD
+ #endif
+ #include <sys/param.h>
+ #endif
+
+
#define BUF_SIZE 100 /* should agree with tangle.web */
extern char buffer[]; /* 0..BUF_SIZE. Input goes here */
***************
*** 28,34 ****
--- 36,45 ----
extern int sprintf();
#else
#ifndef ANSI /*ANSI stdio.h contains sprintf prototype*/
+ #if (defined(BSD) && (BSD > 199103))
+ #else
extern char *sprintf();
+ #endif
#endif /*ANSI*/
#endif
*** jtex1.7/ptex/ptex/site.h.orig Sat Sep 9 17:53:07 1995
--- jtex1.7/ptex/ptex/site.h Sat Sep 9 17:56:18 1995
***************
*** 18,24 ****
* Default editor command string: %d expands to the line number where
* TeX or Metafont found an error and %s expands to the name of the file.
*/
! #define EDITOR "/usr/local/bin/jvi +%d %s"
/*
* If the type "int" is at least 32 bits (including a sign bit), this
--- 18,24 ----
* Default editor command string: %d expands to the line number where
* TeX or Metafont found an error and %s expands to the name of the file.
*/
! #define EDITOR "/usr/bin/vi +%d %s"
/*
* If the type "int" is at least 32 bits (including a sign bit), this
***************
*** 106,126 ****
typedef double real;
/* TeX search paths: This is what we use at U. of Washington. */
! #define TEXINPUTS ".:/usr/lib/tex/macros"
! #define TEXFONTS ".:/usr/lib/tex/fonts"
! #define TEXPOOL ".:/usr/lib/tex"
! #define TEXFORMATS ".:/usr/lib/tex"
/* Metafont search paths */
! #define MFINPUTS ".:/usr/lib/mf/inputs"
! #define MFBASES ".:/usr/lib/mf/bases"
! #define MFPOOL ".:/usr/lib/mf"
/*
* BibTeX search path for .bib files.
* NB: TEXINPUTS is used by BibTeX to search for .bst files.
*/
! #define BIBINPUTS ".:/usr/lib/bibfiles"
/*
* Metafont Window Support: More than one may be defined, as long
--- 106,126 ----
typedef double real;
/* TeX search paths: This is what we use at U. of Washington. */
! #define TEXINPUTS ".:/usr/local/share/tex/ainputs:/usr/local/share/tex/inputs"
! #define TEXFONTS ".:/usr/local/share/tex/fonts:/usr/local/share/tex/jfonts/jfms"
! #define TEXPOOL ".:/usr/local/share/tex/apool"
! #define TEXFORMATS ".:/usr/local/share/tex/aformats"
/* Metafont search paths */
! #define MFINPUTS ".:/usr/local/share/mf/inputs"
! #define MFBASES ".:/usr/local/share/mf/bases"
! #define MFPOOL ".:/usr/local/share/mf"
/*
* BibTeX search path for .bib files.
* NB: TEXINPUTS is used by BibTeX to search for .bst files.
*/
! #define BIBINPUTS ".:/usr/local/lib/bibfiles"
/*
* Metafont Window Support: More than one may be defined, as long
*** jtex1.7/ptex/ptex/web2cdir/Makefile.orig Sat Sep 9 17:53:06 1995
--- jtex1.7/ptex/ptex/web2cdir/Makefile Sat Sep 9 17:56:19 1995
***************
*** 4,10 ****
SITEDIR=..
OPT=-O
! CFLAGS=$(OPT) -I$(SITEDIR)
LDFLAGS=
#LDFLAGS=-s
RM=/bin/rm
--- 4,10 ----
SITEDIR=..
OPT=-O
! CFLAGS=$(OPT) -I$(SITEDIR) -DFLEX -D_HAVE_PRAM_H
LDFLAGS=
#LDFLAGS=-s
RM=/bin/rm
*** jtex1.7/ptex.org/ptex/web2cdir/splitup.c.orig Sat Sep 9 17:53:06 1995
--- jtex1.7/ptex/ptex/web2cdir/splitup.c Sat Sep 9 17:56:20 1995
***************
*** 9,14 ****
--- 9,22 ----
#include <stdio.h>
#include "site.h"
+
+ #ifdef _HAVE_PRAM_H
+ #ifdef BSD
+ #undef BSD
+ #endif
+ #include <sys/param.h>
+ #endif
+
int filenumber = 0, ifdef_nesting = 0, has_ini, lines_in_file = 0;
char *output_name = "tex";
***************
*** 29,36 ****
--- 37,48 ----
#ifdef SYSV
extern sprintf();
#else
+ #if (defined(BSD) && (BSD > 199103))
+ #else
extern char *sprintf();
#endif
+ #endif
+
FILE *out, *in = stdin, *ini, *temp;
*** jtex1.7/ptex.org/ptex/web2cdir/web2c.c.orig Sat Sep 9 17:53:06 1995
--- jtex1.7/ptex/ptex/web2cdir/web2c.c Sat Sep 9 17:56:21 1995
***************
*** 19,28 ****
--- 19,38 ----
#include "site.h"
#include "web2cy.h"
+ #ifdef _HAVE_PRAM_H
+ #ifdef BSD
+ #undef BSD
+ #endif
+ #include <sys/param.h>
+ #endif
+
#ifdef SYSV
extern sprintf();
#else
+ #if (defined(BSD) && (BSD > 199103))
+ #else
extern char *sprintf();
+ #endif
#endif
*** jtex1.7/ptex/ptex/web2cdir/web2c.h.orig Sat Sep 9 17:53:06 1995
--- jtex1.7/ptex/ptex/web2cdir/web2c.h Sat Sep 9 17:56:24 1995
***************
*** 1,6 ****
--- 1,13 ----
#include <stdio.h>
#include "site.h"
+ #ifdef _HAVE_PRAM_H
+ #ifdef BSD
+ #undef BSD
+ #endif
+ #include <sys/param.h>
+ #endif
+
#ifndef BSD
#include <string.h>
#else
***************
*** 10,16 ****
--- 17,26 ----
#ifdef SYSV
extern sprintf();
#else
+ #if (defined(BSD) && (BSD > 199103))
+ #else
extern char *sprintf();
+ #endif
#endif
#define TRUE 1
|