File: fix-upstream-migration_to_C23.patch

package info (click to toggle)
bibtool 2.68%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,668 kB
  • sloc: ansic: 11,808; perl: 8,145; makefile: 550; sh: 307; tcl: 51
file content (52 lines) | stat: -rw-r--r-- 1,753 bytes parent folder | download
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
Description: fix uptream: migration to C23
Origin: debian
Forwarded: https://github.com/ge-ne/bibtool/pull/91
Author: Michael Tautschnig <mt@debian.org>
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2025-04-13

--- a/include/bibtool/pxfile.h
+++ b/include/bibtool/pxfile.h
@@ -42,7 +42,7 @@
 	char  * mode,
 	char  **pattern,
 	char  **path,
-	int   (*show)()
+	int   (*show)(char *)
 #endif
 	);
 
--- a/include/bibtool/tex_read.h
+++ b/include/bibtool/tex_read.h
@@ -38,7 +38,7 @@
 #else
 #define _ARG(A) ()
 #endif
- int TeX_read _ARG((String cp, String *sp));	   /* tex-read.c             */
+ bool TeX_read _ARG((String cp, String *sp));	   /* tex-read.c             */
  void TeX_active _ARG((int c,int arity, String s));/* tex_read.c             */
  void TeX_close _ARG((void));			   /* tex_read.c             */
  void TeX_def _ARG((String s));		   	   /* tex_read.c             */
--- a/main.c
+++ b/main.c
@@ -414,7 +414,7 @@
 						   /* this database.	     */
   int	i;				   	   /*			     */
   bool	need_rsc = true;		   	   /*			     */
-  int	(*fct)();			   	   /* Function pointer	     */
+  int	(*fct)(struct rECORD *, struct rECORD *);			   	   /* Function pointer	     */
   int	c_len;					   /*                        */
   int   *c = NULL;				   /*                        */
  						   /*                        */
--- a/configure.ac
+++ b/configure.ac
@@ -80,6 +80,9 @@
 AC_CHECK_FUNCS(strrchr)
 
 dnl ---------------------------------------------------------------------------
+AX_APPEND_COMPILE_FLAGS(-Wno-old-style-definition)
+
+dnl ---------------------------------------------------------------------------
 AC_ARG_WITH(kpathsea,Use the KPATHSEA library.,,with_kpathsea=yes)
 
 if test $with_kpathsea = no; then