about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTCJK.h
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTCJK.h')
-rw-r--r--WWW/Library/Implementation/HTCJK.h138
1 files changed, 65 insertions, 73 deletions
diff --git a/WWW/Library/Implementation/HTCJK.h b/WWW/Library/Implementation/HTCJK.h
index 760fe199..28b98e76 100644
--- a/WWW/Library/Implementation/HTCJK.h
+++ b/WWW/Library/Implementation/HTCJK.h
@@ -1,12 +1,12 @@
 /*			CJK character converter		HTCJK.h
-**			=======================
-**
-**	Added 11-Jun-96 by FM, based on jiscode.h for
-**	  Yutaka Sato's (ysato@etl.go.jp) SJIS.c, and
-**	  Takuya ASADA's (asada@three-a.co.jp) CJK patches.
-**	  (see SGML.c).
-**
-*/
+ *			=======================
+ *
+ *	Added 11-Jun-96 by FM, based on jiscode.h for
+ *	  Yutaka Sato's (ysato@etl.go.jp) SJIS.c, and
+ *	  Takuya ASADA's (asada@three-a.co.jp) CJK patches.
+ *	  (see SGML.c).
+ *
+ */
 
 #ifndef HTCJK_H
 #define HTCJK_H
@@ -16,12 +16,12 @@
 #endif
 
 /*
-**	STATUS CHANGE CODES
-*/
+ *	STATUS CHANGE CODES
+ */
 #ifdef ESC
 #undef ESC
 #endif /* ESC */
-#define ESC		CH_ESC  /* S/390 -- gil -- 0098 */
+#define ESC		CH_ESC	/* S/390 -- gil -- 0098 */
 #define TO_2BCODE	'$'
 #define TO_1BCODE	'('
 
@@ -52,71 +52,63 @@
 #define IS_BIG5_HI(hi)	((0xA1<=hi)&&(hi<=0xFE))
 #define IS_BIG5(hi,lo) (IS_BIG5_HI(hi) && (IS_BIG5_LOS(lo) || IS_BIG5_LOX(lo)))
 
-typedef enum {NOKANJI, EUC, SJIS, JIS} HTkcode;
-typedef enum {NOCJK, JAPANESE, CHINESE, KOREAN, TAIPEI} HTCJKlang;
+typedef enum {
+    NOKANJI, EUC, SJIS, JIS
+} HTkcode;
+typedef enum {
+    NOCJK, JAPANESE, CHINESE, KOREAN, TAIPEI
+} HTCJKlang;
 
 extern HTCJKlang HTCJK;
 
 /*
-**  Function prototypes.
-*/
-extern void JISx0201TO0208_EUC (
-	register unsigned char		IHI,
-	register unsigned char		ILO,
-	register unsigned char *	OHI,
-	register unsigned char *	OLO);
-
-extern unsigned char * SJIS_TO_JIS1 (
-	register unsigned char		HI,
-	register unsigned char		LO,
-	register unsigned char *	JCODE);
-
-extern unsigned char * JIS_TO_SJIS1 (
-	register unsigned char		HI,
-	register unsigned char		LO,
-	register unsigned char *	SJCODE);
-
-extern unsigned char * EUC_TO_SJIS1 (
-	unsigned char			HI,
-	unsigned char			LO,
-	register unsigned char *	SJCODE);
-
-extern void JISx0201TO0208_SJIS (
-	register unsigned char		I,
-	register unsigned char *	OHI,
-	register unsigned char *	OLO);
-
-extern unsigned char * SJIS_TO_EUC1 (
-	unsigned char		HI,
-	unsigned char		LO,
-	unsigned char *		EUCp);
-
-extern unsigned char * SJIS_TO_EUC (
-	unsigned char *		src,
-	unsigned char *		dst);
-
-extern unsigned char * EUC_TO_SJIS (
-	unsigned char *		src,
-	unsigned char *		dst);
-
-extern unsigned char * EUC_TO_JIS (
-	unsigned char *		src,
-	unsigned char *		dst,
-	const char *		toK,
-	const char *		toA);
-
-extern unsigned char * TO_EUC (
-	const unsigned char *	jis,
-	unsigned char *		euc);
-
-extern void TO_SJIS (
-	const unsigned char *	any,
-	unsigned char *		sjis);
-
-extern void TO_JIS (
-	const unsigned char *	any,
-	unsigned char *		jis);
-
-extern char *str_kcode (HTkcode code);
+ *  Function prototypes.
+ */
+extern void JISx0201TO0208_EUC(register unsigned char IHI,
+			       register unsigned char ILO,
+			       register unsigned char *OHI,
+			       register unsigned char *OLO);
+
+extern unsigned char *SJIS_TO_JIS1(register unsigned char HI,
+				   register unsigned char LO,
+				   register unsigned char *JCODE);
+
+extern unsigned char *JIS_TO_SJIS1(register unsigned char HI,
+				   register unsigned char LO,
+				   register unsigned char *SJCODE);
+
+extern unsigned char *EUC_TO_SJIS1(unsigned char HI,
+				   unsigned char LO,
+				   register unsigned char *SJCODE);
+
+extern void JISx0201TO0208_SJIS(register unsigned char I,
+				register unsigned char *OHI,
+				register unsigned char *OLO);
+
+extern unsigned char *SJIS_TO_EUC1(unsigned char HI,
+				   unsigned char LO,
+				   unsigned char *EUCp);
+
+extern unsigned char *SJIS_TO_EUC(unsigned char *src,
+				  unsigned char *dst);
+
+extern unsigned char *EUC_TO_SJIS(unsigned char *src,
+				  unsigned char *dst);
+
+extern unsigned char *EUC_TO_JIS(unsigned char *src,
+				 unsigned char *dst,
+				 const char *toK,
+				 const char *toA);
+
+extern unsigned char *TO_EUC(const unsigned char *jis,
+			     unsigned char *euc);
+
+extern void TO_SJIS(const unsigned char *any,
+		    unsigned char *sjis);
+
+extern void TO_JIS(const unsigned char *any,
+		   unsigned char *jis);
+
+extern char *str_kcode(HTkcode code);
 
 #endif /* HTCJK_H */