mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
Fix build on -current (move FILE * initializers from declaration to main())
This commit is contained in:
parent
f3784c3d58
commit
e7f348a645
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68440
26
converters/i18ntools/files/patch-aa
Normal file
26
converters/i18ntools/files/patch-aa
Normal file
@ -0,0 +1,26 @@
|
||||
--- utrans.c.orig Sun Oct 20 14:28:59 2002
|
||||
+++ utrans.c Sun Oct 20 14:29:45 2002
|
||||
@@ -45,9 +45,9 @@
|
||||
static int binary = 1;
|
||||
static unsigned int line = 1;
|
||||
static unsigned int character = 1;
|
||||
-static FILE *input = stdin;
|
||||
-static FILE *output = stdout;
|
||||
-static FILE *page = NULL;
|
||||
+static FILE *input;
|
||||
+static FILE *output;
|
||||
+static FILE *page;
|
||||
static char *charmap = NULL;
|
||||
static char buffer[9];
|
||||
|
||||
@@ -149,6 +149,10 @@
|
||||
char *outp = NULL;
|
||||
char *pg = NULL;
|
||||
char *cp;
|
||||
+
|
||||
+ input = stdin;
|
||||
+ output = stdout;
|
||||
+ page = NULL;
|
||||
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (argv[i][0] != '-')
|
23
converters/i18ntools/files/patch-ab
Normal file
23
converters/i18ntools/files/patch-ab
Normal file
@ -0,0 +1,23 @@
|
||||
--- uhtrans.c~ Mon Apr 5 23:00:00 1999
|
||||
+++ uhtrans.c Sun Oct 20 14:31:19 2002
|
||||
@@ -41,8 +41,8 @@
|
||||
|
||||
static unsigned int line = 1;
|
||||
static unsigned int numerrors = 0;
|
||||
-static FILE *input = stdin;
|
||||
-static FILE *output = stdout;
|
||||
+static FILE *input;
|
||||
+static FILE *output;
|
||||
|
||||
int usage() {
|
||||
fprintf(stderr, "Usage: uhtrans [ -i inputfile][ -o outputfile]\n");
|
||||
@@ -63,6 +63,9 @@
|
||||
unsigned int c;
|
||||
char *inp = NULL;
|
||||
char *outp = NULL;
|
||||
+
|
||||
+ input = stdin;
|
||||
+ output = stdout;
|
||||
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (argv[i][0] != '-')
|
23
converters/i18ntools/files/patch-ac
Normal file
23
converters/i18ntools/files/patch-ac
Normal file
@ -0,0 +1,23 @@
|
||||
--- hutrans.c.orig Sun Oct 20 14:31:49 2002
|
||||
+++ hutrans.c Sun Oct 20 14:32:24 2002
|
||||
@@ -42,8 +42,8 @@
|
||||
|
||||
int inbuffer = 0;
|
||||
int nextchar = 0;
|
||||
-static FILE *input = stdin;
|
||||
-static FILE *output = stdout;
|
||||
+static FILE *input;
|
||||
+static FILE *output;
|
||||
static char buffer[BUFFERSIZE];
|
||||
|
||||
/*
|
||||
@@ -137,6 +137,9 @@
|
||||
unsigned int c;
|
||||
char *inp = NULL;
|
||||
char *outp = NULL;
|
||||
+
|
||||
+ input = stdin;
|
||||
+ output = stdout;
|
||||
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (argv[i][0] != '-')
|
26
converters/i18ntools/files/patch-ad
Normal file
26
converters/i18ntools/files/patch-ad
Normal file
@ -0,0 +1,26 @@
|
||||
--- ptrans.c.orig Sun Oct 20 14:32:45 2002
|
||||
+++ ptrans.c Sun Oct 20 14:33:30 2002
|
||||
@@ -45,9 +45,9 @@
|
||||
static int eightbit = 1;
|
||||
static unsigned int line = 1;
|
||||
static unsigned int character = 0;
|
||||
-static FILE *input = stdin;
|
||||
-static FILE *output = stdout;
|
||||
-static FILE *page = NULL;
|
||||
+static FILE *input;
|
||||
+static FILE *output;
|
||||
+static FILE *page;
|
||||
static char *charmap = NULL;
|
||||
static char buffer[9];
|
||||
static int uni[256] = {
|
||||
@@ -748,6 +748,10 @@
|
||||
char *outp = NULL;
|
||||
char *pg = NULL;
|
||||
char *cp;
|
||||
+
|
||||
+ input = stdin;
|
||||
+ output = stdout;
|
||||
+ page = NULL;
|
||||
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (argv[i][0] != '-')
|
Loading…
Reference in New Issue
Block a user