diff options
author | Karl Berry <karl@freefriends.org> | 2024-11-26 21:57:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-11-26 21:57:04 +0000 |
commit | 3787fc242cf7af5bb141ff46913c14e30f0e1c9c (patch) | |
tree | 6397da9bb20201b54c02c1f751eddee0fe0faaab | |
parent | 96dfeb7683c3303473411f992a4e311f2447c4a1 (diff) |
avoid () decls for C23; from Sam James
git-svn-id: svn://tug.org/texlive/trunk@72980 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/xdvik/ChangeLog | 11 | ||||
-rw-r--r-- | Build/source/texk/xdvik/dvi-draw.c | 3 | ||||
-rw-r--r-- | Build/source/texk/xdvik/gui/menu.c | 4 | ||||
-rw-r--r-- | Build/source/texk/xdvik/gui/menu.h | 2 | ||||
-rw-r--r-- | Build/source/texk/xdvik/gui/sfDraw.c | 1 | ||||
-rw-r--r-- | Build/source/texk/xdvik/gui/sfDraw.h | 2 | ||||
-rw-r--r-- | Build/source/texk/xdvik/gui/sfSelFile.c | 2 | ||||
-rw-r--r-- | Build/source/texk/xdvik/squeeze/squeeze.c | 1 |
8 files changed, 16 insertions, 10 deletions
diff --git a/Build/source/texk/xdvik/ChangeLog b/Build/source/texk/xdvik/ChangeLog index 178ee39a084..df40eea406b 100644 --- a/Build/source/texk/xdvik/ChangeLog +++ b/Build/source/texk/xdvik/ChangeLog @@ -1,3 +1,14 @@ +2024-11-26 Sam James <sam@gentoo.org> + + * dvi-draw.c (lseek,pow): remove () declarations, incompatible + with C23. + * gui/menu.c, + * gui/sfDraw.c, + * gui/sfDraw.h, + * gui/sfSelFile.c: avoid () decls. + https://tug.org/pipermail/tex-live/2024-November/050931.html + https://tug.org/pipermail/tex-live/2024-November/050930.html + 2023-02-02 Florian Weimer <fweimer@redhat.com> * m4/xdvi-func-setsid-in-fork.m4.c99-4: avoid implicit diff --git a/Build/source/texk/xdvik/dvi-draw.c b/Build/source/texk/xdvik/dvi-draw.c index c938508d00f..afa481726cb 100644 --- a/Build/source/texk/xdvik/dvi-draw.c +++ b/Build/source/texk/xdvik/dvi-draw.c @@ -198,7 +198,6 @@ bmUnitT bit_masks[] = { #ifdef VMS #define off_t int #endif -extern off_t lseek(); #ifndef SEEK_SET /* if <unistd.h> is not provided (or for <X11R5) */ #define SEEK_SET 0 @@ -4693,8 +4692,6 @@ anchor_search(const char *str) #if GREY -extern double pow(); - static void mask_shifts(Pixel mask, int *pshift1, int *pshift2) { diff --git a/Build/source/texk/xdvik/gui/menu.c b/Build/source/texk/xdvik/gui/menu.c index 6e305f2e8b4..bcc0b337861 100644 --- a/Build/source/texk/xdvik/gui/menu.c +++ b/Build/source/texk/xdvik/gui/menu.c @@ -62,7 +62,7 @@ static struct button_info *m_button_info = NULL; /* toplevel node of pulldown me static void -set_menu_info(void *val, XtActionProc proc, Boolean (*cmp)(), struct button_info *item) +set_menu_info(void *val, XtActionProc proc, Boolean (*cmp)(void *, const char *), struct button_info *item) { size_t i; ASSERT(item != NULL, "item in set_menu_info musn't be NULL!"); @@ -96,7 +96,7 @@ set_menu_info(void *val, XtActionProc proc, Boolean (*cmp)(), struct button_info /* set a menu according to val and the compare function cmp */ void -set_menu(void *val, XtActionProc proc, Boolean (*cmp)()) +set_menu(void *val, XtActionProc proc, Boolean (*cmp)(void *, const char *)) { /* removed following since cast from function pointer to void pointer is not supported by ANSI C */ /* TRACE_GUI((stderr, "set_menu_info: %d, %p, %p", *(int *)val, (void *)proc, (void *)cmp)); */ diff --git a/Build/source/texk/xdvik/gui/menu.h b/Build/source/texk/xdvik/gui/menu.h index 97c38cccb0d..9860ac7feea 100644 --- a/Build/source/texk/xdvik/gui/menu.h +++ b/Build/source/texk/xdvik/gui/menu.h @@ -67,6 +67,6 @@ extern void create_menu_buttons(Widget parent, #endif ); -extern void set_menu(void *val, XtActionProc proc, Boolean (*cmp)()); +extern void set_menu(void *val, XtActionProc proc, Boolean (*cmp)(void *, const char *)); #endif /* MENU_H_ */ diff --git a/Build/source/texk/xdvik/gui/sfDraw.c b/Build/source/texk/xdvik/gui/sfDraw.c index d980c2bda13..4bd06dbfe6b 100644 --- a/Build/source/texk/xdvik/gui/sfDraw.c +++ b/Build/source/texk/xdvik/gui/sfDraw.c @@ -238,7 +238,6 @@ SFstatAndCheck(SFDir *dir, SFEntry *entry) struct stat statBuf; char save; int last; - extern int SFchdir(); /* * must be restored before returning diff --git a/Build/source/texk/xdvik/gui/sfDraw.h b/Build/source/texk/xdvik/gui/sfDraw.h index a7bc1a8cfbe..64f82ec856e 100644 --- a/Build/source/texk/xdvik/gui/sfDraw.h +++ b/Build/source/texk/xdvik/gui/sfDraw.h @@ -56,7 +56,7 @@ void SFhAreaSelectedCallback(Widget w, int n, int pnew); void SFpathSliderMovedCallback(Widget w, XtPointer client_data, float *new); void SFpathAreaSelectedCallback(Widget w, XtPointer client_data, int pnew); Boolean SFworkProc(void); -extern int (*SFfunc)(); +extern int (*SFfunc)(char *entryReal, char **entryShown, struct stat *statBuf); extern Widget selFileField, selFileForm, selFileHScroll, selFileHScrolls[], selFileLists[], selFileVScrolls[]; extern Display *SFdisplay; diff --git a/Build/source/texk/xdvik/gui/sfSelFile.c b/Build/source/texk/xdvik/gui/sfSelFile.c index 7afcc1acedf..68cdfef2456 100644 --- a/Build/source/texk/xdvik/gui/sfSelFile.c +++ b/Build/source/texk/xdvik/gui/sfSelFile.c @@ -125,7 +125,7 @@ XtAppContext SFapp; int SFpathScrollWidth, SFvScrollHeight, SFhScrollWidth; char SFtextBuffer[MAXPATHLEN]; XtIntervalId SFdirModTimerId; -int (*SFfunc) (); +int (*SFfunc) (char *entryReal, char **entryShown, struct stat *statBuf); static int SFstatus = SEL_FILE_NULL; diff --git a/Build/source/texk/xdvik/squeeze/squeeze.c b/Build/source/texk/xdvik/squeeze/squeeze.c index 58ede78a120..7cd7b109fd8 100644 --- a/Build/source/texk/xdvik/squeeze/squeeze.c +++ b/Build/source/texk/xdvik/squeeze/squeeze.c @@ -118,7 +118,6 @@ main(int argc, char *argv[]) int c; char *b; char seeking; - extern void exit(); if (argc > 3 || (in = (argc < 2 ? stdin : fopen(argv[1], "r"))) == NULL || (out = (argc < 3 ? stdout : fopen(argv[2], "w"))) == NULL) { |