From afc65f59eb91aa009b5899768bc229de2047407f Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 20 Oct 2002 21:32:23 +0000 Subject: Fix build on -current (move FILE * initializers from declaration to main()) --- converters/i18ntools/files/patch-aa | 26 ++++++++++++++++++++++++++ converters/i18ntools/files/patch-ab | 23 +++++++++++++++++++++++ converters/i18ntools/files/patch-ac | 23 +++++++++++++++++++++++ converters/i18ntools/files/patch-ad | 26 ++++++++++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 converters/i18ntools/files/patch-aa create mode 100644 converters/i18ntools/files/patch-ab create mode 100644 converters/i18ntools/files/patch-ac create mode 100644 converters/i18ntools/files/patch-ad (limited to 'converters/i18ntools') diff --git a/converters/i18ntools/files/patch-aa b/converters/i18ntools/files/patch-aa new file mode 100644 index 000000000000..889605a9110c --- /dev/null +++ b/converters/i18ntools/files/patch-aa @@ -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] != '-') diff --git a/converters/i18ntools/files/patch-ab b/converters/i18ntools/files/patch-ab new file mode 100644 index 000000000000..411236fbd650 --- /dev/null +++ b/converters/i18ntools/files/patch-ab @@ -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] != '-') diff --git a/converters/i18ntools/files/patch-ac b/converters/i18ntools/files/patch-ac new file mode 100644 index 000000000000..0478d6d79413 --- /dev/null +++ b/converters/i18ntools/files/patch-ac @@ -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] != '-') diff --git a/converters/i18ntools/files/patch-ad b/converters/i18ntools/files/patch-ad new file mode 100644 index 000000000000..697bdeb3bbcc --- /dev/null +++ b/converters/i18ntools/files/patch-ad @@ -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] != '-') -- cgit