texlive[74952] Build/source/texk/ps2pk: Fix 'token.c' and 'tokst.h'
commits+ascherer at tug.org
commits+ascherer at tug.org
Tue Apr 15 19:54:07 CEST 2025
Revision: 74952
https://tug.org/svn/texlive?view=revision&revision=74952
Author: ascherer
Date: 2025-04-15 19:54:06 +0200 (Tue, 15 Apr 2025)
Log Message:
-----------
Fix 'token.c' and 'tokst.h' for C23.
The whole codebase of PS2PK compiles fine with
$ CC=gcc-14 --std=c23' ./Build --disable-all-pkgs --enable-ps2pk
and also with
$ CC='gcc-14 --std=gnu23' ./Build --disable-all-pkgs --enable-ps2pk
without further ado. That was almost too easy?!
Testing the resulting executable is left to the kind reader. :o)
Modified Paths:
--------------
trunk/Build/source/texk/ps2pk/token.c
trunk/Build/source/texk/ps2pk/tokst.h
Modified: trunk/Build/source/texk/ps2pk/token.c
===================================================================
--- trunk/Build/source/texk/ps2pk/token.c 2025-04-15 17:12:35 UTC (rev 74951)
+++ trunk/Build/source/texk/ps2pk/token.c 2025-04-15 17:54:06 UTC (rev 74952)
@@ -1122,7 +1122,7 @@
int ch;
unsigned char *stateP = s0;
unsigned char entry;
- int (*actionP)();
+ int (*actionP)(int);
/* Define input source */
inputFileP = inputP->data.fileP;
Modified: trunk/Build/source/texk/ps2pk/tokst.h
===================================================================
--- trunk/Build/source/texk/ps2pk/tokst.h 2025-04-15 17:12:35 UTC (rev 74951)
+++ trunk/Build/source/texk/ps2pk/tokst.h 2025-04-15 17:54:06 UTC (rev 74952)
@@ -325,7 +325,7 @@
static int skip_space(int);
static struct cat {
- int (*actionRoutineP)();
+ int (*actionRoutineP)(int);
unsigned char *nextStateP;
} classActionTable[] = {
More information about the tex-live-commits
mailing list.