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
|
2014-10-14 Peter Breitenlohner <peb@mppmu.mpg.de>
* paths.c: Fixed a bug introduced by the previous "Bug fix".
* tests/lmmath.test: Shell script ...
* tests/lmmi12.600pk: ... and data for a new test.
* Makefile.am, configure.ac: Add the new test.
2014-10-13 Peter Breitenlohner <peb@mppmu.mpg.de>
* paths.c: Bug fix: Avoid use of uninitialized variable.
* basics.h, filenames.c, fontfcn.c, pk2bm.c, pkin.c, t1io.c,
t1snap.c, types.h: Always include "c-auto.h" first in all C
files (directly or indirectly via "basics.h" or "types.h").
* configure.ac: Add AC_TYPE_(U)INT32_T and AC_TYPE_INTPTR_T.
* pkout.[ch], ps2pk.c: Replace (U)INT32 => (u)int32_t.
* arith.[ch], curves.c, ffilest.h, fsmasks.h, hints.c, lines.c,
objects.[ch], paths.c, regions.c, spaces.[ch], t1funcs.c,
t1info.c, t1stdio.h, token.c, types.h, util.[ch]: Replace
(U)LONG => (u)int32_t, to avoid LONG defined as long for MinGW
(and MSVC?).
* fontstruct.h, ps2pk.c, util.h: Change MakeAtom() return type
long => intptr_t (large enough for 'void *' even for WIN64).
2014-10-12 Peter Breitenlohner <peb@mppmu.mpg.de>
More general cleanup:
* *.[ch]: ANSI/ISO C function prototypes and definitions.
Extern declarations in only in headers.
Drop unused functions and variables.
Declare functions used in only one file as static.
* Makefile.am: t1imager.h. t1stub.c, and trig.h are not used.
Enable compiler warnings.
2014-10-09 Peter Breitenlohner <peb@mppmu.mpg.de>
* basics.h: Declare fatal() as noreturn (gcc and MSVC).
* pkout.c (magnification): Fatal error if no value found.
2014-10-08 Peter Breitenlohner <peb@mppmu.mpg.de>
* ps2pk.c: Add return type for main and GetClientResolutions.
* regions.c: Add return type for OptimizeRegion.
* t1funcs.c: Add return type for Type1RegisterFontFileFunctions.
* t1stub.c: Add return type for xiStub.
* encoding.c (my_string, remove_string, addcc, getcc, decimal,
nextsymbol, nextpsname), filenames.c (equal), objects.[ch]
(Pragmatics), pkout.c (optimal_size, PSPKINT, magnification),
regions.[ch] (BoxClip), t1stub.c (xiStub): Declare as static.
* curves.c, hints.c, objects.c, paths.c, regions.c, scanfont.c,
spaces.c, t1funcs.c, t1info.c, t1io.c, token.c, tokst.h,
type1.c: ANSI/ISO C for all static functions.
* paths.c, regions.c, scanfont.c, spaces.c, t1info.c: Add braces
around substructures in initializers.
* basics.[ch], encoding.c, ffilest.h, filenames.[ch],
fontfcn.c, mag.c, objects.c, pfb2pfa.c, pkout.c, pktest.c,
ps2pk.c, scanfonts.c, spaces.c, t1funcs.c, t1info.c, util.[ch]:
Declare various local and global variables, function parameters
and return values, and struct members as const.
* scanfonts.c: Add parentheses around assignment as truth value.
* regions.c: Add braces to avoid 'ambiguos else'.
2014-10-07 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* pk2bm.c, paths.c, pkout.c, ps2pk.c, regions.c, t1func.c:
Minor cleanup to avoid compiler warnings.
2014-10-07 Peter Breitenlohner <peb@mppmu.mpg.de>
* t1funcs.c: Bugfix (undefined operation due to a typo).
* token.c: Fix ambigous behavior (sequence point).
* encoding.c, objects.c: Avoid undefined behaviour when char is
signed.
* arith.c: Fix formats: %dl => %d for int.
* paths.c, regions.c, spaces.c: Fix (debug) format specifiers:
%f for double* => double
%ld => %d for int
%p => %d for int
%x => %d for int (except for flags)
%x => %p for ANY*
%z => %p for ANY*
2014-06-16 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am: Drop the obsolete ACLOCAL_AMFLAGS.
2013-06-28 Peter Breitenlohner <peb@mppmu.mpg.de>
* encoding.c, filenames.c, fontfcn.c, mag.c, pfb2pfa.c, pkout.c,
ps2pk.c, scanfont.c: Include Autoconf generated headers first.
2012-11-20 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am: Avoid use of deprecated INCLUDES.
2012-10-15 Peter Breitenlohner <peb@mppmu.mpg.de>
Remove TL vs W32TeX diffs (from Akira).
* pkout.c: Add casts to avoid MSVC warnings.
2012-10-15 Peter Breitenlohner <peb@mppmu.mpg.de>
Reduce TL vs W32TeX diffs (from Akira).
* mag.c [WIN32]: Add '#include <fcntl.h>' for setmode().
* t1funcs.c: Add casts to avoid MSVC warnings.
2012-08-23 Peter Breitenlohner <peb@mppmu.mpg.de>
* pfb2pfa.c (main): Drop unnecessary nested fatal() prototype.
2012-07-25 Peter Breitenlohner <peb@mppmu.mpg.de>
* pkout.c (pk_runlengths): Pretend that the first pixel of an
empty glyph is white; avoid using uninitialized data.
Found by Martin Schroeder <martin@oneiros.de>.
2012-07-15 Peter Breitenlohner <peb@mppmu.mpg.de>
* ps2pk.c: Invoke kpse_set_program_name() with original argv[0]
and program name string.
* mag.c, ps2pk.c: ANSI C function declarations and definitions.
No nested function declarations. Declare functions as static.
* tests/ps2pk.test: Set environment for kpatsea file search.
2012-07-12 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* pk2bm.c: Cast arg2 of readchar() to avoid MSVC warning.
2012-07-11 Peter Breitenlohner <peb@mppmu.mpg.de>
* tests/ps2pk.test (new): Shell script for a test case.
* tests/Symbol.afm, tests/Symbol.pfb (new): Test input.
* tests/Symbol.pfa, tests/Symbol.alpha.{hex,pix},
tests/Symbol10.300pk (new): Expected output.
* Makefile.am: Adapted.
2012-07-10 Peter Breitenlohner <peb@mppmu.mpg.de>
* mag.c, pk2bm.c: Use binary mode for output files (from W32TeX).
* pfb2pfa.c: Drop unused ambiguous code.
* Makefile.am: Pk2bm does not use KPATHSEA.
* pk2bm.c, pkin.[ch]: ANSI C function prototypes and definitions.
2011-07-19 Peter Breitenlohner <peb@mppmu.mpg.de>
* type1.c [FABS, CEIL, FLOOR]: Use routines from libm, the
evaluation order of tmpx in the original macros is undefined
by the C-standard!
(ComputeStem): Fix `ambiguous else' bug (also present in t1lib
5.1.2, compare libXfont 1.3.x from XOrg-7.4).
2011-07-18 Peter Breitenlohner <peb@mppmu.mpg.de>
* type1.c (PSFakePop): Non-void function should return a value.
Reported by Jack Howarth <howarth@bromo.med.uc.edu>
Patch from Akira, [tex-live] Sun, 17 Jul 2011 22:39:30.
* Makefile.am (AM_CFLAGS): Prepare for compiler warnings.
2011-05-27 Peter Breitenlohner <peb@mppmu.mpg.de>
* README: Fixed a typo.
2011-05-26 Karl Berry <karl@tug.org>
* README: clarify license per authors.
2011-04-18 Peter Breitenlohner <peb@mppmu.mpg.de>
* t1funcs.c (Type1OpenScalable): Cast ev[i] to 'unsigned char *'
to avoid 'differ in signedness' warning.
2011-03-07 Peter Breitenlohner <peb@mppmu.mpg.de>
* ps2pk.c (main): `program_invocation_name' has been renamed
into `kpse_invocation_name'.
2010-03-09 Peter Breitenlohner <peb@mppmu.mpg.de>
* ps2pk.c: Use kpse_set_program_name() instead of
kpse_set_progname().
2010-02-27 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am: List all used header files.
2010-02-23 Peter Breitenlohner <peb@mppmu.mpg.de>
* basics.c: #include "basics.h" and drop all others.
2010-02-23 Peter Breitenlohner <peb@mppmu.mpg.de>
* t1info.c (ComputeStdProps): Declare rc as int, not LONG,
because they differ for WIN32.
* t1stub.c: Use ANSI C protos (not only for WIN32).
Declare struct segment (#include "paths.h" doesn't work).
2010-02-20 Peter Breitenlohner <peb@mppmu.mpg.de>
* basics.c: Don't #include <win32lib.h> for MinGW32.
ps2pk.c (CheckFSFormat), t1funcs.c (fill): Rename function
param byte => Byte to avoid conflicts.
2009-07-17 Peter Breitenlohner <peb@mppmu.mpg.de>
* regions.c (NewEdge): align to sizeof(long), as in t1lib.
* util.c (vm_alloc): align to 64-bit boundary, as in t1lib.
2009-06-23 Peter Breitenlohner <peb@mppmu.mpg.de>
* fontfcn.c, regions.c, regions.h, scanfont.c, t1funcs.c:
drop #ifdef HAVE_PROTOTYPES, unconditionally use prototypes.
2009-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
* objects.c, objects.h: use ANSI C variadic function syntax.
* paths.c: use ANSI C prototypes instead of P[1-9]H.
* type1.c: use ANSI C prototypes instead of P[1-9]H or AA.
2009-06-02 Peter Breitenlohner <peb@mppmu.mpg.de>
* regions.c, regions.h, t1imager.h:
rename INFINITY -> T1_INFINITY, to avoid name conflict with
INFINITY from cygwin <math.h>.
2009-05-07 Peter Breitenlohner <peb@mppmu.mpg.de>
Adapt to TL2009 build system.
2008-02-29 Peter Breitenlohner <peb@mppmu.mpg.de>
* acconfig.h: removed.
2008-01-31 Peter Breitenlohner <peb@mppmu.mpg.de>
Convert from autoconf-2.13 to autoconf-2.59+:
* Makefile.in: Add @configure_input@ line.
* aclocal.m4 (new): Generated (aclocal -I ../m4).
* configure: Regenerated (autoconf).
Fri Mar 13 13:41:39 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* bstring.c: more fixes from Thomas Esser in this and configure
setup
Mon Mar 9 10:33:30 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* fixes as suggested by Melissa O'Neill <oneill@cs.sfu.ca> (from
Thomas Esser), for memset in bstring.c (addition to configure)
Tue Feb 24 11:55:33 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* objects.[ch]: extra #ifdef KPATHSEA inside WIN32
Mon Feb 16 12:36:45 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* more fixes to regions.c (Thomas Esser)
Tue Feb 3 13:40:36 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* regions.c: rationalized non STDC declarations
Wed Jan 28 09:44:45 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* better undef of BITS in curves.c; change in objects.h (ifdef
KPATHSEA instead of just WIN32) from Fabrice Popineau
Tue Jan 27 14:32:25 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* configure etc: new configure.in, c-auto.in, Makefile.in from
Olaf Weber
Tue Jan 27 13:48:14 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* patch to regions.h from Peter B
Tue Jan 20 10:14:10 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* added check of function prototypes to c-auto.in
Mon Jan 19 20:46:08 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
* pkin.c: "remainder" clashed with some builtin, so
renamed to remainderPK throughout
Thu Jan 1 11:08:37 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk>
Fixes by Peter Breitenlohner <peb@mppmu.mpg.de>
* curves.c: BITS redefined
* regions.h: incompatible pointer types
* types.h: AA redefined
* t1stub.c: struct declared inside parameter list
|