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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
Avoid compiler warnings:
ANSI C function definitions.
Declare various (param and other) strings as const.
diff -ur t1utils-1.34.orig/t1ascii.c t1utils-1.34/t1ascii.c
--- t1utils-1.34.orig/t1ascii.c 2009-08-19 15:02:19.000000000 +0200
+++ t1utils-1.34/t1ascii.c 2009-08-23 14:48:59.000000000 +0200
@@ -172,7 +172,7 @@
}
static void
-pfa_output_end()
+pfa_output_end(void)
{
}
diff -ur t1utils-1.34.orig/t1asm.c t1utils-1.34/t1asm.c
--- t1utils-1.34.orig/t1asm.c 2009-08-19 15:02:19.000000000 +0200
+++ t1utils-1.34/t1asm.c 2009-08-23 14:49:03.000000000 +0200
@@ -266,7 +266,7 @@
charstring. We use the heuristic that it should start with `/' (a name) or
`dup' (a subroutine). Previous heuristic caused killa bad output. */
-static int check_line_charstring()
+static int check_line_charstring(void)
{
char *p = line;
while (isspace(*p))
@@ -280,7 +280,7 @@
the newline is put into line[]. When terminated by '{', the '{' is not put
into line[], and the flag start_charstring is set to 1. */
-static void texlive_getline()
+static void texlive_getline(void)
{
int c;
char *p = line;
@@ -367,7 +367,7 @@
/* This function initializes charstring encryption. Note that this is called
at the beginning of every charstring. */
-static void charstring_start()
+static void charstring_start(void)
{
int i;
@@ -390,7 +390,7 @@
/* This function outputs buffered, encrypted charstring data through possible
eexec encryption. */
-static void charstring_end()
+static void charstring_end(void)
{
byte *bp;
@@ -433,7 +433,7 @@
/* This function returns one charstring token. It ignores comments. */
-static void get_charstring_token()
+static void get_charstring_token(void)
{
int c = getc(ifp);
while (isspace(c))
@@ -466,7 +466,7 @@
/* This function parses an entire charstring into integers and commands,
outputting bytes through the charstring buffer. */
-static void parse_charstring()
+static void parse_charstring(void)
{
struct command *cp;
diff -ur t1utils-1.34.orig/t1binary.c t1utils-1.34/t1binary.c
--- t1utils-1.34.orig/t1binary.c 2009-08-19 15:02:19.000000000 +0200
+++ t1utils-1.34/t1binary.c 2009-08-23 14:49:01.000000000 +0200
@@ -85,7 +85,7 @@
}
static void
-pfb_output_end()
+pfb_output_end(void)
{
pfb_writer_end(&w);
}
diff -ur t1utils-1.34.orig/t1disasm.c t1utils-1.34/t1disasm.c
--- t1utils-1.34.orig/t1disasm.c 2009-08-19 15:02:19.000000000 +0200
+++ t1utils-1.34/t1disasm.c 2009-08-23 15:04:37.000000000 +0200
@@ -332,11 +332,11 @@
/* 23.Feb.2004 - use 'memstr', not strstr, because the strings input to
eexec_line aren't null terminated! Reported by Werner Lemberg. */
-static const unsigned char *
-oog_memstr(const unsigned char *line, int line_len, const char *pattern, int pattern_len)
+static unsigned char *
+oog_memstr(unsigned char *line, int line_len, const char *pattern, int pattern_len)
{
- const unsigned char *try;
- const unsigned char *last = line + line_len - pattern_len + 1;
+ unsigned char *try;
+ unsigned char *last = line + line_len - pattern_len + 1;
while (line < last
&& (try = memchr(line, (unsigned char)*pattern, last - line))) {
if (memcmp(try, pattern, pattern_len) == 0)
@@ -432,7 +432,7 @@
badly: a charstring definition follows "/Charstrings ... begin", ON THE
SAME LINE. */
{
- const char *CharStrings = (const char *)
+ char *CharStrings = (char *)
oog_memstr(line, line_len, "/CharStrings ", 13);
int crap, n;
char should_be_slash = 0;
@@ -595,7 +595,7 @@
}
static void
-disasm_output_end()
+disasm_output_end(void)
{
/* take care of leftover saved data */
static char crap[1] = "";
|