File: 36_fullprototypes.patch

package info (click to toggle)
fig2dev 1%3A3.2.9a-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,708 kB
  • sloc: ansic: 38,164; sh: 7,981; makefile: 162; csh: 12
file content (62 lines) | stat: -rw-r--r-- 1,969 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
53
54
55
56
57
58
59
60
61
62
From: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Date: Thu, 30 Jan 2025 22:36:48 +0100
Origin: upstream, https://sourceforge.net/p/mcj/fig2dev/ci/ab4eee3
Bug-Debian: https://bugs.debian.org/1096628
Bug-Gentoo: https://bugs.gentoo.org/944153
Bug: https://sourceforge.net/p/mcj/tickets/193/
Forwarded: not-needed
Subject: Specify argument types in function prototypes
 Modern C standards require full prototypes. This commit fixes the bug reported
 in https://bugs.gentoo.org/944153.

--- a/transfig/mkfile.c
+++ b/transfig/mkfile.c
@@ -17,10 +17,12 @@
 #include <stdio.h>
 #include "transfig.h"
 
-void puttarget();
-void putfig();
-void putoptions();
-void putclean();
+void puttarget(FILE *mk, char *i, char *suf1, char *suf2);
+void putfig(FILE *mk, enum language to, int altfonts,
+	char *f, char *s, char *m, char *o, char *i, char *suf);
+void putoptions(FILE *mk, int altfonts, char *f, char *s, char *m, char *o,
+	char *i, char *suf);
+void putclean(FILE *mk, char *i, char *suf);
 
 /*
  * create an appropriate makefile
--- a/transfig/transfig.c
+++ b/transfig/transfig.c
@@ -33,8 +33,10 @@ extern void texfile(FILE *tx, char *in);
 extern void makefile(FILE *mk, int altfonts); /* mkfile.c */
 
 
-argument *parse_arg(), *arglist = NULL, *lastarg = NULL;
-char *strip();
+argument *parse_arg(enum language tolang, char *arg_f, char *arg_s,
+	char *arg_m, char *arg_o, char *arg);
+argument *arglist = NULL, *lastarg = NULL;
+char *strip(char *str, char *suf);
 
 char *mkfile = "Makefile";
 char *txfile = "transfig.tex";
--- a/transfig/transfig.h
+++ b/transfig/transfig.h
@@ -60,11 +60,12 @@ typedef struct argument{
 	struct argument *next;
 } argument ;
 
-extern enum language str2lang();
+extern enum language str2lang(char *s);
 extern char *lname[];
 extern char *iname[];
 
-extern char *sysls(), *mksuff();
+extern char *sysls(void);
+extern char *mksuff(char *name, char *suff);
 extern argument *arglist;
 extern char *txfile, *mkfile;