Debian Codegraph @

texk/ps2pk/ChangeLog

raw
1 2025-04-15 Andreas Scherer <https://ascherer.github.io>
2
3 * fontstruct.h,
4 * spaces.c,
5 * spaces.h,
6 * token.c,
7 * tokst.h: Amend pointer-to-function prototypes for C23.
8
9 2025-04-08 Karl Berry <[email protected]>
10
11 * fontstruct.h: note that the integer types in the new
12 prototype are "incompatible", causing warnings before C23.
13 * spaces.h (XYspace): disable my attempted prototypes,
14 the calls are incompatible even before C23.
15
16 2025-04-08 Karl Berry <[email protected]>
17
18 Partially placate C23's backward incompatible requirements. Sigh.
19
20 * fontfcn.h (Type1CloseFont): arg is FontPtr.
21 * fontstruct.h (_Font) <get_glyphs>: declare args.
22 * regions.c (SortSwath): declare args of function argument.
23 (swathfcn): likewise.
24 * spaces.h (struct fractpoint): move to before struct XYspace.
25 (XYspace): declare arguments to convert(), iconvert(),
26 xconvert(), and yconvert(), though problems remain with them.
27 ixconvert() and iyconvert() also remain to be done.
28 Report from Hilmar, 3 Apr 2025 23:54:54.
29
30 P.S. I was compiling like this on Rocky Linux 9:
31 scl enable gcc-toolset-14 -- make -C $WK/ps2pk CFLAGS=-std=c23
32 (where WK=.../Work/texk/)
33 This is not the final c23, but I doubt that matters.
34
35 P.P.S. If anyone has time and interest to track down the remaining
36 errors, please (please) do.
37
38 2023-08-27 TANAKA Takuji <[email protected]>
39
40 * tests/ps2pk.test, tests/lmmath.test:
41 Make easier to test on Windows.
42
43 2022-11-06 Sam James <[email protected]>
44
45 * basename.c: placate clang16.
46 https://tug.org/pipermail/tlbuild/2022q4/005273.html
47
48 2022-08-30 Karl Berry <[email protected]>
49
50 * pk2bm.1,
51 * ps2pk.1: typo fixes from Hilmar Preu\ss{}e,
52 https://tug.org/pipermail/tex-live/2022-June/048227.html
53
54 2021-02-06 TANAKA Takuji <[email protected]>
55
56 * ps2pk.c, mag.c, pfb2pfa.c, pk2bm.c, pktest.c, configure.ac:
57 Show TeX Live version number and bug report address in usage.
58 * ps2pk.c, pk2bm.c, mag.c:
59 Avoid compiler warnings.
60
61 2018-12-05 Hironobu Yamashita <[email protected]>
62
63 * mag.c, pk2bm.c: check for missing arguments.
64
65 2018-12-01 Hironobu Yamashita <[email protected]>
66
67 * ps2pk.c: check for missing arguments.
68 tex-k mail 1 Dec 2018 08:04:39.
69
70 2018-09-09 Karl Berry <[email protected]>
71
72 * tests/ps2pk.test: LC_ALL=LANGUAGE=C.
73
74 2018-01-18 Karl Berry <[email protected]>
75
76 * objects.h (IfTrace0): printf %s instead of direct string
77 (from Debian).
78
79 2017-03-27 Karl Berry <[email protected]>
80
81 * Makefile.am (AM_TESTS_ENVIRONMENT): use instead of TESTS_ENVIRONMENT.
82
83 2016-04-03 Akira Kakuto <[email protected]>
84
85 * arith.h, pk2bm.c: Avoid compiler warnings.
86
87 2016-02-01 Karl Berry <[email protected]>
88
89 * configure.ac
90 Version 1.8 (February 2016).
91
92 * ps2pk.c: use PACKAGE_VERSION (from c-auto.h) instead
93 of hardwiring the number.
94
95 * mag.c,
96 * pfb2pfa.c,
97 * pk2bm.c,
98 * pktest.c: report version number in usage as with ps2pk.
99 Also say "invalid" instead of "illegal".
100
101 * *.1: uniformly use date in .TH line.
102
103 * Remove version numbers from individual files.
104
105 * Remove Piet's email address so he does not get unwanted mail,
106 since this package is maintained in TeX Live now. Ask for reports
107 to go to tex-k.
108
109 2016-01-31 Luigi Scarso <[email protected]>
110
111 * pk2bm.c, pkin.c, pkin.h: Support charext.
112
113 2015-07-07 Peter Breitenlohner <[email protected]>
114
115 * Makefile.am: Better dependencies for 'make check'.
116
117 2014-12-16 Peter Breitenlohner <[email protected]>
118
119 * Makefile.am (noinst_PROGRAMS): Build pktest.
120 * pktest.c: ANSI/ISO C.
121 * tests/ps2pk.test: Test PK (pk2bm) BM (pktest) PK (pk2bm) BM.
122
123 * basics.[ch], configure.ac, encoding.c, filenames.[ch],
124 pkout.[ch], pktest.c, ps2pk.c, psearch.c, types.h:
125 Version 1.7 (December 2014).
126
127 2014-12-15 Peter Breitenlohner <[email protected]>
128
129 Applied some changes from Version 1.6beta1 (ctan.org/pkg/ps2pk).
130 Renamed ./ps2pkm => ./ps2pk.
131
132 * filenames.c: Drop charptr() and use strchr(). Whitespace.
133 * filenames.[ch]: Constify ps_resource() argument.
134
135 * pkin.c: New function pksbyte(). Replace error() => fatal().
136 Correctly handle flag bytes 5 and 6.
137 * Makefile.am (pk2bm_SOURCES): Add basics.[ch].
138 Use AM_CPPFLAGS, AM_CFLAGS, and LDADD also for pk2bm.
139
140 2014-11-06 Peter Breitenlohner <[email protected]>
141
142 * regions.c [WIN64]: Use __int64 (not long) as intptr_t.
143
144 2014-10-14 Peter Breitenlohner <[email protected]>
145
146 * paths.c: Fixed a bug introduced by the previous "Bug fix".
147
148 * tests/lmmath.test: Shell script ...
149 * tests/lmmi12.600pk: ... and data for a new test.
150 * Makefile.am, configure.ac: Add the new test.
151
152 2014-10-13 Peter Breitenlohner <[email protected]>
153
154 * paths.c: Bug fix: Avoid use of uninitialized variable.
155
156 * basics.h, filenames.c, fontfcn.c, pk2bm.c, pkin.c, t1io.c,
157 t1snap.c, types.h: Always include "c-auto.h" first in all C
158 files (directly or indirectly via "basics.h" or "types.h").
159
160 * configure.ac: Add AC_TYPE_(U)INT32_T and AC_TYPE_INTPTR_T.
161
162 * pkout.[ch], ps2pk.c: Replace (U)INT32 => (u)int32_t.
163
164 * arith.[ch], curves.c, ffilest.h, fsmasks.h, hints.c, lines.c,
165 objects.[ch], paths.c, regions.c, spaces.[ch], t1funcs.c,
166 t1info.c, t1stdio.h, token.c, types.h, util.[ch]: Replace
167 (U)LONG => (u)int32_t, to avoid LONG defined as long for MinGW
168 (and MSVC?).
169
170 * fontstruct.h, ps2pk.c, util.h: Change MakeAtom() return type
171 long => intptr_t (large enough for 'void *' even for WIN64).
172
173 2014-10-12 Peter Breitenlohner <[email protected]>
174
175 More general cleanup:
176 * *.[ch]: ANSI/ISO C function prototypes and definitions.
177 Extern declarations in only in headers.
178 Drop unused functions and variables.
179 Declare functions used in only one file as static.
180 * Makefile.am: t1imager.h. t1stub.c, and trig.h are not used.
181 Enable compiler warnings.
182
183 2014-10-09 Peter Breitenlohner <[email protected]>
184
185 * basics.h: Declare fatal() as noreturn (gcc and MSVC).
186 * pkout.c (magnification): Fatal error if no value found.
187
188 2014-10-08 Peter Breitenlohner <[email protected]>
189
190 * ps2pk.c: Add return type for main and GetClientResolutions.
191 * regions.c: Add return type for OptimizeRegion.
192 * t1funcs.c: Add return type for Type1RegisterFontFileFunctions.
193 * t1stub.c: Add return type for xiStub.
194
195 * encoding.c (my_string, remove_string, addcc, getcc, decimal,
196 nextsymbol, nextpsname), filenames.c (equal), objects.[ch]
197 (Pragmatics), pkout.c (optimal_size, PSPKINT, magnification),
198 regions.[ch] (BoxClip), t1stub.c (xiStub): Declare as static.
199
200 * curves.c, hints.c, objects.c, paths.c, regions.c, scanfont.c,
201 spaces.c, t1funcs.c, t1info.c, t1io.c, token.c, tokst.h,
202 type1.c: ANSI/ISO C for all static functions.
203
204 * paths.c, regions.c, scanfont.c, spaces.c, t1info.c: Add braces
205 around substructures in initializers.
206
207 * basics.[ch], encoding.c, ffilest.h, filenames.[ch],
208 fontfcn.c, mag.c, objects.c, pfb2pfa.c, pkout.c, pktest.c,
209 ps2pk.c, scanfonts.c, spaces.c, t1funcs.c, t1info.c, util.[ch]:
210 Declare various local and global variables, function parameters
211 and return values, and struct members as const.
212
213 * scanfonts.c: Add parentheses around assignment as truth value.
214
215 * regions.c: Add braces to avoid 'ambiguos else'.
216
217 2014-10-07 Akira Kakuto <[email protected]>
218
219 * pk2bm.c, paths.c, pkout.c, ps2pk.c, regions.c, t1func.c:
220 Minor cleanup to avoid compiler warnings.
221
222 2014-10-07 Peter Breitenlohner <[email protected]>
223
224 * t1funcs.c: Bugfix (undefined operation due to a typo).
225 * token.c: Fix ambigous behavior (sequence point).
226
227 * encoding.c, objects.c: Avoid undefined behaviour when char is
228 signed.
229
230 * arith.c: Fix formats: %dl => %d for int.
231 * paths.c, regions.c, spaces.c: Fix (debug) format specifiers:
232 %f for double* => double
233 %ld => %d for int
234 %p => %d for int
235 %x => %d for int (except for flags)
236 %x => %p for ANY*
237 %z => %p for ANY*
238
239 2014-06-16 Peter Breitenlohner <[email protected]>
240
241 * Makefile.am: Drop the obsolete ACLOCAL_AMFLAGS.
242
243 2013-06-28 Peter Breitenlohner <[email protected]>
244
245 * encoding.c, filenames.c, fontfcn.c, mag.c, pfb2pfa.c, pkout.c,
246 ps2pk.c, scanfont.c: Include Autoconf generated headers first.
247
248 2012-11-20 Peter Breitenlohner <[email protected]>
249
250 * Makefile.am: Avoid use of deprecated INCLUDES.
251
252 2012-10-15 Peter Breitenlohner <[email protected]>
253
254 Remove TL vs W32TeX diffs (from Akira).
255 * pkout.c: Add casts to avoid MSVC warnings.
256
257 2012-10-15 Peter Breitenlohner <[email protected]>
258
259 Reduce TL vs W32TeX diffs (from Akira).
260 * mag.c [WIN32]: Add '#include <fcntl.h>' for setmode().
261 * t1funcs.c: Add casts to avoid MSVC warnings.
262
263 2012-08-23 Peter Breitenlohner <[email protected]>
264
265 * pfb2pfa.c (main): Drop unnecessary nested fatal() prototype.
266
267 2012-07-25 Peter Breitenlohner <[email protected]>
268
269 * pkout.c (pk_runlengths): Pretend that the first pixel of an
270 empty glyph is white; avoid using uninitialized data.
271 Found by Martin Schroeder <[email protected]>.
272
273 2012-07-15 Peter Breitenlohner <[email protected]>
274
275 * ps2pk.c: Invoke kpse_set_program_name() with original argv[0]
276 and program name string.
277 * mag.c, ps2pk.c: ANSI C function declarations and definitions.
278 No nested function declarations. Declare functions as static.
279 * tests/ps2pk.test: Set environment for kpatsea file search.
280
281 2012-07-12 Akira Kakuto <[email protected]>
282
283 * pk2bm.c: Cast arg2 of readchar() to avoid MSVC warning.
284
285 2012-07-11 Peter Breitenlohner <[email protected]>
286
287 * tests/ps2pk.test (new): Shell script for a test case.
288 * tests/Symbol.afm, tests/Symbol.pfb (new): Test input.
289 * tests/Symbol.pfa, tests/Symbol.alpha.{hex,pix},
290 tests/Symbol10.300pk (new): Expected output.
291 * Makefile.am: Adapted.
292
293 2012-07-10 Peter Breitenlohner <[email protected]>
294
295 * mag.c, pk2bm.c: Use binary mode for output files (from W32TeX).
296
297 * pfb2pfa.c: Drop unused ambiguous code.
298
299 * Makefile.am: Pk2bm does not use KPATHSEA.
300 * pk2bm.c, pkin.[ch]: ANSI C function prototypes and definitions.
301
302 2011-07-19 Peter Breitenlohner <[email protected]>
303
304 * type1.c [FABS, CEIL, FLOOR]: Use routines from libm, the
305 evaluation order of tmpx in the original macros is undefined
306 by the C-standard!
307 (ComputeStem): Fix `ambiguous else' bug (also present in t1lib
308 5.1.2, compare libXfont 1.3.x from XOrg-7.4).
309
310 2011-07-18 Peter Breitenlohner <[email protected]>
311
312 * type1.c (PSFakePop): Non-void function should return a value.
313 Reported by Jack Howarth <[email protected]>
314 Patch from Akira, [tex-live] Sun, 17 Jul 2011 22:39:30.
315
316 * Makefile.am (AM_CFLAGS): Prepare for compiler warnings.
317
318 2011-05-27 Peter Breitenlohner <[email protected]>
319
320 * README: Fixed a typo.
321
322 2011-05-26 Karl Berry <[email protected]>
323
324 * README: clarify license per authors.
325
326 2011-04-18 Peter Breitenlohner <[email protected]>
327
328 * t1funcs.c (Type1OpenScalable): Cast ev[i] to 'unsigned char *'
329 to avoid 'differ in signedness' warning.
330
331 2011-03-07 Peter Breitenlohner <[email protected]>
332
333 * ps2pk.c (main): `program_invocation_name' has been renamed
334 into `kpse_invocation_name'.
335
336 2010-03-09 Peter Breitenlohner <[email protected]>
337
338 * ps2pk.c: Use kpse_set_program_name() instead of
339 kpse_set_progname().
340
341 2010-02-27 Peter Breitenlohner <[email protected]>
342
343 * Makefile.am: List all used header files.
344
345 2010-02-23 Peter Breitenlohner <[email protected]>
346
347 * basics.c: #include "basics.h" and drop all others.
348
349 2010-02-23 Peter Breitenlohner <[email protected]>
350
351 * t1info.c (ComputeStdProps): Declare rc as int, not LONG,
352 because they differ for WIN32.
353 * t1stub.c: Use ANSI C protos (not only for WIN32).
354 Declare struct segment (#include "paths.h" doesn't work).
355
356 2010-02-20 Peter Breitenlohner <[email protected]>
357
358 * basics.c: Don't #include <win32lib.h> for MinGW32.
359 ps2pk.c (CheckFSFormat), t1funcs.c (fill): Rename function
360 param byte => Byte to avoid conflicts.
361
362 2009-07-17 Peter Breitenlohner <[email protected]>
363
364 * regions.c (NewEdge): align to sizeof(long), as in t1lib.
365 * util.c (vm_alloc): align to 64-bit boundary, as in t1lib.
366
367 2009-06-23 Peter Breitenlohner <[email protected]>
368
369 * fontfcn.c, regions.c, regions.h, scanfont.c, t1funcs.c:
370 drop #ifdef HAVE_PROTOTYPES, unconditionally use prototypes.
371
372 2009-06-22 Peter Breitenlohner <[email protected]>
373
374 * objects.c, objects.h: use ANSI C variadic function syntax.
375 * paths.c: use ANSI C prototypes instead of P[1-9]H.
376 * type1.c: use ANSI C prototypes instead of P[1-9]H or AA.
377
378 2009-06-02 Peter Breitenlohner <[email protected]>
379
380 * regions.c, regions.h, t1imager.h:
381 rename INFINITY -> T1_INFINITY, to avoid name conflict with
382 INFINITY from cygwin <math.h>.
383
384 2009-05-07 Peter Breitenlohner <[email protected]>
385
386 Adapt to TL2009 build system.
387
388 2008-02-29 Peter Breitenlohner <[email protected]>
389
390 * acconfig.h: removed.
391
392 2008-01-31 Peter Breitenlohner <[email protected]>
393
394 Convert from autoconf-2.13 to autoconf-2.59+:
395 * Makefile.in: Add @configure_input@ line.
396 * aclocal.m4 (new): Generated (aclocal -I ../m4).
397 * configure: Regenerated (autoconf).
398
399 Fri Mar 13 13:41:39 1998 Sebastian Rahtz <[email protected]>
400
401 * bstring.c: more fixes from Thomas Esser in this and configure
402 setup
403
404 Mon Mar 9 10:33:30 1998 Sebastian Rahtz <[email protected]>
405
406 * fixes as suggested by Melissa O'Neill <[email protected]> (from
407 Thomas Esser), for memset in bstring.c (addition to configure)
408
409 Tue Feb 24 11:55:33 1998 Sebastian Rahtz <[email protected]>
410
411 * objects.[ch]: extra #ifdef KPATHSEA inside WIN32
412
413 Mon Feb 16 12:36:45 1998 Sebastian Rahtz <[email protected]>
414
415 * more fixes to regions.c (Thomas Esser)
416
417 Tue Feb 3 13:40:36 1998 Sebastian Rahtz <[email protected]>
418
419 * regions.c: rationalized non STDC declarations
420
421 Wed Jan 28 09:44:45 1998 Sebastian Rahtz <[email protected]>
422
423 * better undef of BITS in curves.c; change in objects.h (ifdef
424 KPATHSEA instead of just WIN32) from Fabrice Popineau
425
426 Tue Jan 27 14:32:25 1998 Sebastian Rahtz <[email protected]>
427
428 * configure etc: new configure.in, c-auto.in, Makefile.in from
429 Olaf Weber
430
431 Tue Jan 27 13:48:14 1998 Sebastian Rahtz <[email protected]>
432
433 * patch to regions.h from Peter B
434
435 Tue Jan 20 10:14:10 1998 Sebastian Rahtz <[email protected]>
436
437 * added check of function prototypes to c-auto.in
438
439 Mon Jan 19 20:46:08 1998 Sebastian Rahtz <[email protected]>
440
441 * pkin.c: "remainder" clashed with some builtin, so
442 renamed to remainderPK throughout
443
444 Thu Jan 1 11:08:37 1998 Sebastian Rahtz <[email protected]>
445
446 Fixes by Peter Breitenlohner <[email protected]>
447 * curves.c: BITS redefined
448 * regions.h: incompatible pointer types
449 * types.h: AA redefined
450 * t1stub.c: struct declared inside parameter list
451
452
453