Kcc is a kanji code converter and it's a program used to convert between various encodings used for Japanese character sets. It handles 7bit JIS, 8bit JIS, Shift JIS, EUC, and DEC. Packaged by OBATA Akio.
43 lines
1 KiB
Text
43 lines
1 KiB
Text
$NetBSD: patch-aa,v 1.1.1.1 2006/02/11 16:49:04 rillig Exp $
|
|
|
|
--- kcc.c.orig 1994-03-28 20:00:12.000000000 +0900
|
|
+++ kcc.c
|
|
@@ -134,7 +134,11 @@ extern unsigned short katakana[];
|
|
extern unsigned short hiragana[];
|
|
unsigned short *kanatbl = katakana;
|
|
|
|
+#ifdef __STDC__
|
|
+void error(char *format, ...);
|
|
+#else
|
|
void error();
|
|
+#endif
|
|
|
|
/**********************************************************************
|
|
* *
|
|
@@ -364,14 +368,26 @@ main(c, v)
|
|
NAME
|
|
error - print formatted error message on stderr and die
|
|
---------------------------------------------------------------------*/
|
|
+#ifdef __STDC__
|
|
+#include <stdarg.h>
|
|
+#else
|
|
#include <varargs.h>
|
|
+#endif
|
|
|
|
+#ifdef __STDC__
|
|
+void error(char *format, ...)
|
|
+#else
|
|
void error(va_alist)
|
|
va_dcl
|
|
+#endif
|
|
{
|
|
va_list args;
|
|
|
|
+#ifdef __STDC__
|
|
+ va_start(args, format);
|
|
+#else
|
|
va_start(args);
|
|
+#endif
|
|
fprintf(stderr, "%s: ", progname);
|
|
vfprintf(stderr, va_arg(args, char *), args);
|
|
putc('\n', stderr);
|