remove libkcc
authorPaul Mangan <paul@claws-mail.org>
Mon, 8 Jul 2002 07:29:17 +0000 (07:29 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 8 Jul 2002 07:29:17 +0000 (07:29 +0000)
28 files changed:
libkcc/.cvsignore [deleted file]
libkcc/Makefile.am [deleted file]
libkcc/Makefile.std [deleted file]
libkcc/README [deleted file]
libkcc/ROUTINE [deleted file]
libkcc/buffer.c [deleted file]
libkcc/check.c [deleted file]
libkcc/compare.c [deleted file]
libkcc/dec.c [deleted file]
libkcc/euc.c [deleted file]
libkcc/filter.c [deleted file]
libkcc/getstr.c [deleted file]
libkcc/guess.c [deleted file]
libkcc/jis.c [deleted file]
libkcc/kcc.h [deleted file]
libkcc/libkcc.h [deleted file]
libkcc/out.c [deleted file]
libkcc/outchar.c [deleted file]
libkcc/outsjis.c [deleted file]
libkcc/setfunc.c [deleted file]
libkcc/showcode.c [deleted file]
libkcc/sjis.c [deleted file]
libkcc/test.c [deleted file]
libkcc/test_check.c [deleted file]
libkcc/test_file [deleted file]
libkcc/test_file.sjis [deleted file]
libkcc/test_filter.c [deleted file]
libkcc/testfile [deleted file]

diff --git a/libkcc/.cvsignore b/libkcc/.cvsignore
deleted file mode 100644 (file)
index 9945168..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Makefile
-.deps
-Makefile.in
diff --git a/libkcc/Makefile.am b/libkcc/Makefile.am
deleted file mode 100644 (file)
index a60b56e..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-noinst_LIBRARIES = libkcc.a
-
-libkcc_a_SOURCES = \
-       compare.c       \
-       getstr.c        \
-       guess.c         \
-       showcode.c      \
-       check.c         \
-       filter.c        \
-       buffer.c        \
-       dec.c           \
-       euc.c           \
-       jis.c           \
-       out.c           \
-       outchar.c       \
-       setfunc.c       \
-       sjis.c          \
-       kcc.h           \
-       libkcc.h
-
-EXTRA_DIST = \
-       Makefile.std \
-       ROUTINE \
-       outsjis.c \
-       test.c \
-       test_check.c \
-       test_file \
-       test_file.sjis \
-       test_filter.c \
-       testfile
-
-#lib_LTLIBRARIES = libkcc.la
-
-#libkcc_la_SOURCES = \
-#      compare.c       \
-#      getstr.c        \
-#      guess.c         \
-#      showcode.c      \
-#      check.c         \
-#      filter.c        \
-#      buffer.c        \
-#      dec.c           \
-#      euc.c           \
-#      jis.c           \
-#      out.c           \
-#      outchar.c       \
-#      setfunc.c       \
-#      sjis.c          \
-#      kcc.h           \
-#      libkcc.h
-
-#libkcc_la_LDFLAGS = \
-#      -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-#      -release $(LT_RELEASE)
diff --git a/libkcc/Makefile.std b/libkcc/Makefile.std
deleted file mode 100644 (file)
index 2eb9cdf..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-PRG = libkcc.a
-SHLIB = libkcc.so.0.2.0
-CC = gcc
-CFLAGS = -g -O2 -Wall
-
-PREFIX = /usr/local
-
-LIBDIR = $(PREFIX)/lib
-INCDIR = $(PREFIX)/include
-
-SRC_C = compare.c getstr.c guess.c showcode.c
-SRC_1 = check.c
-SRC_2 = filter.c   buffer.c dec.c euc.c jis.c out.c outchar.c setfunc.c sjis.c
-
-SRCS = $(SRC_C) $(SRC_1) $(SRC_2)
-
-HDRS = filter.h   kcc.h      setfunc.h
-
-OBJS = $(SRCS:.c=.o)
-OBJ_C = $(SRC_C:.c=.o)
-OBJ_1 = $(SRC_1:.c=.o)
-OBJ_2 = $(SRC_2:.c=.o)
-
-.c.o:
-       $(CC) $(CFLAGS) -c $<
-
-all: $(PRG)
-
-$(PRG): $(OBJS)
-       ar crv $(PRG) $(OBJS)
-
-shared:
-       $(CC) -shared $(OBJS) -Wl,-soname,libkcc.so.0 -o $(SHLIB) \
-       -Wl,--rpath,$(LIBDIR)
-
-install:
-       cp kcc.h $(INCDIR)/
-       cp $(PRG) $(LIBDIR)/
-       cp $(SHLIB) $(LIBDIR)/
-       cd $(LIBDIR)
-       ln -s $(SHLIB) libkcc.so
-       ldconfig
-
-clean:
-       rm -f *.o $(PRG) test test_check test_filter *~
-
-test_check: test_check.o $(OBJ_C) $(OBJ_1)
-       $(CC) $(CFLAGS) -o test_check test_check.o $(OBJ_C) $(OBJ_1)
-
-test_filter: test_filter.o $(OBJ_C) $(OBJ_2)
-       $(CC) $(CFLAGS) -o test_filter test_filter.o $(OBJ_C) $(OBJ_2)
-
-test:  test.o $(PRG)
-       $(CC) $(CFLAGS) -o test test.o $(PRG)
diff --git a/libkcc/README b/libkcc/README
deleted file mode 100644 (file)
index 04429e8..0000000
+++ /dev/null
@@ -1,461 +0,0 @@
-************************************************
-libkcc README
-************************************************
-1999-04-20
-
-¤³¤ì¤Ï¡¢kcc-2.3 ¤ò¡¢lib ²½¤·¤¿¤â¤Î¤Ç¤¹¡£
-¥é¥¤¥»¥ó¥¹¤Ï¡¢¸µ¤Î kcc-2.3 ¤¬ GPL2 ¤Ç¤¹¤Î¤Ç¡¢¤½¤ì¤Ë½¾¤¤¤Þ¤¹¡£
-
-¤Þ¤À kcc ¤ÎÁ´¤Æ¤Î°ú¿ô¤Ï»ÈÍѤǤ­¤Þ¤»¤ó¤¬¡¢¤Þ¡¢¤È¤ê¤¢¤¨¤º¥Ð¡¼¥¸¥ç¥ó¤È¤¤¤¦¤³¤È¤Ç¡£
-
---------------------------
-1. »È¤¤¤«¤¿(´Ø¿ô¤ÎÀâÌÀ)
---------------------------
-´Á»ú¥³¡¼¥ÉȽÄê¤ò¹Ô¤¦´Ø¿ô¤È¡¢´Á»úÊÑ´¹¤ò¹Ô¤¦´Ø¿ô¤ÎÆó¤Ä¤òÍÑ°Õ¤·¤Þ¤·¤¿¡£
-
-¥³¡¼¥ÉȽÄꡧ
- unsigned KCC_check(char *s, int extend);
-
-ÊÑ´¹: KCC_filter()
- int KCC_filter(char *ddd, char *outcode_name, char *sss, char *incode_name, int extend, int zenkaku, int gaiji);
-
---------------------------
-1-1. ¥³¡¼¥ÉȽÄê´Ø¿ô
---------------------------
-unsigned KCC_check(char *s, int extend);
-
-¥³¡¼¥É¤òÄ´¤Ù¤¿¤¤ Ê¸»úÎó(char * ·¿)¤ò Âè1°ú¿ô¤ËÍ¿¤¨¤ë¤È¡¢¥³¡¼¥É¤¬ÊÖ¤ê¤Þ¤¹
-
-  code = KCC_check(s,0);
-
-ÂèÆó°ú¿ô¤Î `int extend' ¤Ï¡¢ 0 ¤« 1 ¤Ç¤¹¡£ÉáÄÌ¡¢0 ¤òÍ¿¤¨¤Æ¤ª¤±¤Ð¤è¤¤¤Ç¤¹
-  1 ¡§ ¥ª¥ê¥¸¥Ê¥ë¤Î kcc -x ¤ÈƱÍͤÎÆ°¤­¤ò¤¹¤ë¤Ï¤º
-  0 ¡§ Ä̾ï¤Ï¤³¤Á¤é¤ò»ØÄꤷ¤Æ¤ª¤±¤Ð¤è¤¤¤Ç¤·¤ç¤¦
-
-ÊÖ¤µ¤ì¤ëÃͤϡ¢¼¡¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹
---------------------------
-1-2. ¥³¡¼¥É¤ÎÈÖ¹æ
---------------------------
-#define BINARY          0x100
-#define ASCII           0x00
-
-#define NONASCII        0x01    /* non-ASCII character */
-#define JIS             0x02    /* JIS */
-#define ESCI            0x04    /* "ESC(I" */
-#define ASSUME          0x08    /* assumed EUC (or DEC) */
-#define EUC             0x10
-#define DEC             0x20
-#define SJIS            0x40
-#define JIS8            0x80    /* 8-bit JIS */
-#define BIT8            (EUC | DEC | SJIS | JIS8)
-
---------------------------
-1-3. ´Á»úÊÑ´¹´Ø¿ô
---------------------------
- int KCC_filter(char *ddd, char *outcode_name, char *sss, char *incode_name
-                                         , int extend, int zenkaku, int gaiji);
-
-ÊÑ´¹¤·¤¿¤¤Ê¸»úÎó (char *) ·¿ ¤ò sss
-ÊÑ´¹¸å¤Îʸ»úÎó (char *) ·¿ ¤ò ddd
-¤È¤·¤Þ¤¹¡£
-
-ÊÖ¤êÃͤϴÁ»ú¥³¡¼¥É(1-2) ¤¬ÊÖ¤ê¤Þ¤¹¤¬¡¢
-¼ºÇÔ¤¹¤ë¤È -1 ¤¬ÊÖ¤ê¤Þ¤¹¡£
-0 ¤¬ÊÖ¤ë¾ì¹ç¤Ï ASCII ¤À¤È¤¤¤¦»ö¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
-
-Î㡧
-i = KCC_filter(d, "EUC", s, "AUTO", 0,0,0);
-
-
-¡ªÃí°Õ¡§
-  ddd ¤ÏÊÑ´¹Ê¸»ú¤òǼ¤á¤ë¤Ë½¼Ê¬¤ÊÎΰ褬¤¢¤é¤«¤¸¤á¤È¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
-  ¤³¤Î´Ø¿ô¤Ï¡¢strcpy ¤ß¤¿¤¤¤Ê¤â¤Î¤Ç¡¢sss ¤òÊÑ´¹¤·¤¿¤â¤Î¤ò¡¢ddd ¤Î¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤ò
-  ¥Á¥§¥Ã¥¯¤¹¤ë»ö̵¤¯¡¢ ddd ¤Ë½ç¼¡¥³¥Ô¡¼¤·¤Æ¤¤¤¯¤Î¤Ç¤¹¡ª
-
-
-outcode_name, incode_name ¤Ï¡¢´Á»ú¤Î¥³¡¼¥É¤Î»ØÄê¤Ç¤¹¡£
-  outcode_name¡§ ½ÐÎÏ¥³¡¼¥É¤ò»ØÄê
-  incode_name¡§ ÆþÎÏ¥³¡¼¥É¤ò»ØÄê
-
-¥³¡¼¥É¤Ï¡¢°Ê²¼¤Î "ʸ»ú" ¤Ç¡¢»ØÄꤷ¤Þ¤¹¡£
-  ´Á»ú¥³¡¼¥É¡§ Ê¸»ú¡§  ÀâÌÀ
-  -----------------------------------------------------------------
-  EUC          "EUC"   euc
-  SJIS         "SJIS"  sjis
-  JIS 8bit     "JIS8"  8 bit JIS
-  JIS          "JIS"   jis
-  JIS ESCI     "JISI"  jis ¤Ç¡¢ESC(I ¤ò»ÈÍѤ·¤Æ¤¤¤ë¤â¤Î
-
-  ¼«Æ°È½ÊÌ     "AUTO"  incode_name ¤Ë¤Î¤ßÍ­¸ú¡£¥³¡¼¥É¤ò¼«Æ°È½Ê̤¹¤ë
-
-  JIS, JISI, JIS8 ¤À¤±¤Ï¡¢¼¡¤ÎÆÃÊ̤ʻØÄê¤ò¹Ô¤¦»ö¤¬¤Ç¤­¤Þ¤¹¡£
-  ¤³¤ì¤Ï¡¢outcode_name ¤Ë¤Î¤ßÍ­¸ú¤Ê¥ª¥×¥·¥ç¥ó¤Ç¡¢
-  ¥ª¥ê¥¸¥Ê¥ë¤Î kcc ¤Î kcc -j[B@+][BJH] »ØÄê¤ÈƱ¤¸¤Ë¤Ê¤ê¤Þ¤¹
-
-  JIS[B@+][BJH]
-  JISI[B@+][BJH]
-  JIS8[B@+][BJH]
-
-   Âè°ì
-    B: Âè1¼¡´Á»úɽ¼¨
-    @: Âè2¼¡´Á»úɽ¼¨
-    +: Âè3¼¡´Á»úɽ¼¨
-   ÂèÆó
-    B: ±Ñ¿ô¤Ï ASCII »ØÄê
-    J: ±Ñ¿ô¤Ï JIS ¥í¡¼¥Þ»ú»ØÄê
-    H: ±Ñ¿ô¤Ï ¥¹¥¦¥§¡¼¥Ç¥ó
-  -----------------------------------------------------------------
-    
-
-Âè5°ú¿ô¤Î `int extend' ¤Ï¡¢ 0 ¤« 1 ¤Ç¤¹¡£ÉáÄÌ¡¢0 ¤òÍ¿¤¨¤Æ¤ª¤±¤Ð¤è¤¤¤Ç¤¹
-  1 ¡§ ¥ª¥ê¥¸¥Ê¥ë¤Î kcc -x ¤ÈƱÍͤÎÆ°¤­¤ò¤¹¤ë¤Ï¤º
-  0 ¡§ Ä̾ï¤Ï¤³¤Á¤é¤ò»ØÄꤷ¤Æ¤ª¤±¤Ð¤è¤¤¤Ç¤·¤ç¤¦
-
-Âè6°ú¿ô¤Î `int zenkaku' ¤Ï¡¢ 0 ¤« 1 ¤Ç¤¹¡£ÉáÄÌ¡¢0 ¤òÍ¿¤¨¤Æ¤ª¤±¤Ð¤è¤¤¤Ç¤¹
-  1 ¡§ ¥ª¥ê¥¸¥Ê¥ë¤Î kcc -z ¤ÈƱÍͤÎÆ°¤­¤ò¤¹¤ë¤Ï¤º
-  0 ¡§ Ä̾ï¤Ï¤³¤Á¤é¤ò»ØÄꤷ¤Æ¤ª¤±¤Ð¤è¤¤¤Ç¤·¤ç¤¦
-
-Âè7°ú¿ô¤Î `int gaiji' ¤Ï¡¢ 0 ¤« 1 ¤Ç¤¹¡£ÉáÄÌ¡¢0 ¤òÍ¿¤¨¤Æ¤ª¤±¤Ð¤è¤¤¤Ç¤¹
-  1 ¡§ ¥ª¥ê¥¸¥Ê¥ë¤Î kcc -n ¤ÈƱÍͤÎÆ°¤­¤ò¤¹¤ë¤Ï¤º
-  0 ¡§ Ä̾ï¤Ï¤³¤Á¤é¤ò»ØÄꤷ¤Æ¤ª¤±¤Ð¤è¤¤¤Ç¤·¤ç¤¦
-
---------------------------
-2. Make
---------------------------
-edit Makefile
-shell> make
-shell> ls libkcc.a
-
---------------------------
-3. ¥¤¥ó¥¹¥È¡¼¥ë
---------------------------
-shell> make install
-
-¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤ë¤Î¤Ï¡¢libkcc.a ¤È kcc.h ¤À¤±¤Ç¤¹
-
---------------------------
-4. TODO
---------------------------
-1. gcc -Wall ¤Ç¤¤¤Ã¤Ñ¤¤¥¦¥©¡¼¥Ë¥ó¥°
-2. ¥ª¥ê¥¸¥Ê¥ë¤Î kcc.c ¤òÊ£¿ô¤Î¥Õ¥¡¥¤¥ë¤Ë¤ï¤±¤¿¤Î¤Ï¡¢»ä¤Î¼ñÌ£¤Ç¤¹¤¬¡¢
-   ¤ª¤«¤²¤Ç¡¢´Ø¿ô¤Î°ú¿ô¤¬Â¿¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£
-   ÃÙ¤¯¤Ê¤ë¡©
-3. ÅϤµ¤ì¤¿Ê¸»úÎó¤Î½èÍý¤¬¤Á¤ç¤Ã¤È¤ä¤Ü¤Ã¤¿¤¤¤Ç¤¹¡£
-   ´í¸±¤ÊÉôʬ¤¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£(euc.c,jis.c,sjis.c,dec.c)
-4. È¾³Ñʸ»ú¤òÁ´³Ñ¤Ë¤·¤¿¤¤¤±¤É...
-5. ¤¿¤Ö¤ó¤¢¤ë¤À¤í¤¦ bug fix
-
-°Ê¾å¡¢¤É¤Ê¤¿¤«Ã£¼Ô¤ÊÊý¡¢¤è¤í¤·¤¯¡£
-
---------------------------
-5. Îã
---------------------------
-test.c, test_check.c, test_filter.c ¤¬¤¢¤ê¤Þ¤¹
-
-make test
-make test_filer
-make test_check
-
---------------------------
---------------------------
-
-takeshi@SoftAgency.co.jp
-http://www.softagency.co.jp/mysql/
-
-************************************************
-¥ª¥ê¥¸¥Ê¥ë¤Î README
-************************************************
-
-kcc¤Ï¡¤¼«Æ°È½Ê̵¡Ç½¤Ä¤­´Á»ú¥³¡¼¥É¥Õ¥£¥ë¥¿¡¼¤Ç¤¹¡£
-
-¡ÚÀâÌÀ¡Û
-
-    ÆüËܸìEUC¡¤7¥Ó¥Ã¥ÈJIS¡¤8¥Ó¥Ã¥ÈJIS¡¤¥·¥Õ¥ÈJIS¤¬°·¤¨¤Þ¤¹¡£
-
-    ¡ÖȾ³Ñ¤«¤Ê¡×¤Ë¤âÂбþ¤·¤Æ¤¤¤Þ¤¹¡£
-
-    ¾Ü¤·¤¯¤ÏÆüËܸ쥪¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤Ç¸«¤Æ²¼¤µ¤¤¡£
-
-¡Ú¥¤¥ó¥¹¥È¡¼¥ë¡Û
-
-       $ make install
-
-    ¤Ç¡¤make¤È¥¤¥ó¥¹¥È¡¼¥ë¤¬¹Ô¤ï¤ì¤Þ¤¹¡£
-
-       $ make install.man
-
-    ¤Ç¡¤ÆüËܸì¥Þ¥Ë¥å¥¢¥ë¤Î¥¤¥ó¥¹¥È¡¼¥ë¤¬¹Ô¤ï¤ì¤Þ¤¹¡£
-    ÆüËܸì¥Þ¥Ë¥å¥¢¥ë¤Î¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¡¼¤¬¡Æjapanese¡Ç¤Ç¤Ê¤¤¤È¤­¤Ë¤Ï¡¤
-
-       $ make JMANDIR=ja.JP_EUC install.man
-
-    ¤Ê¤É¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
-
-
-************************************************
-¥ª¥ê¥¸¥Ê¥ë¤Î kcc.jman ¤ò catman ¤Ë¤·¤¿¤â¤Î
-************************************************
-
-
-
-KCC(L)                                                     KCC(L)
-
-
-̾\b\b̾Á°\b\bÁ°
-       kcc - ¼«Æ°È½Ê̵¡Ç½¤Ä¤­´Á»ú¥³¡¼¥ÉÊÑ´¹
-
-·Á\b\b·Á¼°\b\b¼°
-       k\bkc\bcc\bc [ -\b-_\bI_\bOc\bch\bhn\bnv\bvx\bxz\bz ] [ -\b-b\bb _\bb_\bu_\bf_\bs_\bi_\bz_\be ] [ _\bf_\bi_\bl_\be ] ...
-
-µ¡\b\bµ¡Ç½\b\bǽÀâ\b\bÀâÌÀ\b\bÌÀ
-       k\bkc\bcc\bc ¤Ï¡¤»ØÄꤷ¤¿ _\bf_\bi_\bl_\be ¤ò½çÈÖ¤ËÆɤ߹þ¤ß¡¤´Á»ú¥³¡¼¥É¤òÊÑ´¹¤·
-       ¤Æɸ½à½ÐÎϤ˽ÐÎϤ¹¤ë¥Õ¥£¥ë¥¿¡¼¤Ç¤¹¡£¥Õ¥¡¥¤¥ë¤Î»ØÄ꤬¤Ê¤¤¤È
-       ¤­¡¤ ¤¢¤ë¤¤¤Ï¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ -\b- ¤¬»ØÄꤵ¤ì¤¿¤È¤­¤Ë¤Ïɸ½àÆþ
-       ÎϤ«¤éÆɤ߹þ¤ß¤Þ¤¹¡£Æþ½ÐÎϤδÁ»ú¥³¡¼¥É¤Ï¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤷ
-       ¤Þ¤¹¤¬¡¤ÆþÎÏ¥³¡¼¥É¤ò»ØÄꤷ¤Ê¤¤¤È¥Õ¥¡¥¤¥ë¤´¤È¤Î¼«Æ°È½Ê̤ˤÊ
-       ¤ê¤Þ¤¹¡£
-
-       »È¤¨¤ë´Á»ú¥³¡¼¥É¤Ï JIS¡Ê7 ¥Ó¥Ã¥È¤ª¤è¤Ó 8 ¥Ó¥Ã¥È¡Ë¡¤¥·¥Õ ¥È
-       JIS¡¤EUC¡¤DEC  ¤Ç¤¹¡£ÆþÎÏ¥³¡¼¥É¤Ï¡¤EUC¡¤DEC ¤¢¤ë¤¤¤Ï¥·¥Õ¥È
-       JIS ¤Î¤¤¤º¤ì¤«¤È 7 ¥Ó¥Ã¥È JIS ¤È¤ÎÁȤ߹礻¤Ë¸Â¤ê¡¤º®ºß¤¬²Ä
-       Ç½¤Ç¤¹¡£JIS ¤ÎȾ³Ñ²¾Ì¾¤Ï S\bSI\bI/S\bSO\bO¡¤E\bES\bSC\bC(\b(I\bI ¤È¤â¤Ëǧ¼±¤µ¤ì¤Þ¤¹¡£
-
-¥ª\b\b¥ª¥×\b\b¥×¥·\b\b¥·¥ç\b\b¥ç¥ó\b\b¥ó
-       -\b-_\bO
-       -\b-_\bI_\bO    _\bI ¤ÇÆþÎÏ´Á»ú¥³¡¼¥É¤ò¡¤_\bO ¤Ç½ÐÎÏ´Á»ú¥³¡¼¥É¤ò»ØÄꤷ ¤Þ
-              ¤¹¡£ Æþ ÎÏ ¥³¡¼¥É¤Î»ØÄ꤬¤Ê¤¤¤È¤­¤Ë¤Ï¼«Æ°È½Ê̤ˡ¤¤Þ
-              ¤¿¡¤¤É¤Á¤é¤â»ØÄꤷ¤Ê¤¤¤È¤­½ÐÎÏ¥³¡¼¥É¤Ï 7 ¥Ó¥Ã¥È JIS
-              ¤Ë¤Ê¤ê¤Þ¤¹¡£
-
-              ÆþÎÏ¥³¡¼¥É¤ò»ØÄꤹ¤ë _\bI ¤Ï°Ê²¼¤Î¤¦¤Á¤Î 1 ¤Ä¤Ç¤¹¡£
-
-                 e\be      EUC¡Ê7 ¥Ó¥Ã¥È JIS º®ºß²Ä¡Ë
-                 d\bd      DEC¡Ê7 ¥Ó¥Ã¥È JIS º®ºß²Ä¡Ë
-                 s\bs      ¥·¥Õ¥È JIS¡Ê7 ¥Ó¥Ã¥È JIS º®ºß²Ä¡Ë
-                 j\bj¡¤7\b7 ¤Þ¤¿¤Ï k\bk
-                        7 ¥Ó¥Ã¥È JIS
-                 8\b8      8 ¥Ó¥Ã¥È JIS
-
-              ½ÐÎÏ¥³¡¼¥É¤ò»ØÄꤹ¤ë _\bO ¤Ï°Ê²¼¤Î¤¦¤Á¤Î 1 ¤Ä¤Ç¤¹¡£
-
-                 e\be      EUC
-                 d\bd      DEC
-                 s\bs      ¥·¥Õ¥È JIS
-                 j\bj_\bX_\bY ¤Þ¤¿¤Ï 7\b7_\bX_\bY
-                        7 ¥Ó¥Ã¥È JIS¡ÊS\bSI\bI/S\bSO\bO ¤Ë¤è¤ë JIS ²¾Ì¾»Ø¼¨¡Ë
-                 k\bk_\bX_\bY    7 ¥Ó¥Ã¥È JIS¡ÊE\bES\bSC\bC(\b(I\bI ¤Ë¤è¤ë JIS ²¾Ì¾»Ø¼¨¡Ë
-                 8\b8_\bX_\bY    8 ¥Ó¥Ã¥È JIS
-
-              _\bO  Ãæ¤Î _\bX_\bY ¤Ç¡¤JIS ¥³¡¼¥É½ÐÎϤǤΥ¨¥¹¥±¡¼¥×¥·¡¼¥¯¥§
-              ¥ó¥¹¤¬»ØÄê¤Ç¤­¤Þ¤¹¡£¾Êά¤¹¤ë¤È B\bBJ\bJ ¤È¤ß¤Ê¤µ¤ì¤Þ ¤¹¡£
-              ¤Ê¤ª¡¤Êä½õ´Á»ú»ØÄê¤Ï E\bES\bSC\bC$\b$(\b(D\bD ¤Ç¸ÇÄê¤Ç¤¹¡£
-
-                 _\bX      ´Á»ú»ØÄê
-                      B\bB      E\bES\bSC\bC$\b$B\bB¡ÊÂè 2 ¼¡µ¬³Ê´Á»ú»Ø¼¨¡Ë
-                      @\b@      E\bES\bSC\bC$\b$@\b@¡ÊÂè 1 ¼¡µ¬³Ê´Á»ú»Ø¼¨¡Ë
-                      +\b+      E\bES\bSC\bC&\b&@\b@E\bES\bSC\bC$\b$B\bB¡ÊÂè 3 ¼¡µ¬³Ê´Á»ú»Ø¼¨¡Ë
-                 _\bY      ±Ñ¿ô»ú»ØÄê
-
-
-
-Y. Tonooka                1992ǯ11·î19Æü                        1
-
-
-
-
-
-KCC(L)                                                     KCC(L)
-
-
-                      B\bB      E\bES\bSC\bC(\b(B\bB¡ÊASCII »Ø¼¨¡Ë
-                      J\bJ      E\bES\bSC\bC(\b(J\bJ¡ÊJIS ¥í¡¼¥Þ»ú»Ø¼¨¡Ë
-                      H\bH      E\bES\bSC\bC(\b(H\bH¡Ê¥¹¥¦¥§¡¼¥Ç¥ó̾Á°ÍÑʸ»ú»Ø¼¨¡Ë
-
-       -\b-v\bv     ÆþÎÏ¥³¡¼¥É¤ÎȽÊÌ·ë²Ì¤òɸ½à¥¨¥é¡¼½ÐÎϤ˽ÐÎϤ·¤Þ¤¹¡£
-
-       -\b-x\bx     ³È Ä¥¥â¡¼¥É¡£ÆþÎÏ¥³¡¼¥É¤Î¼«Æ°È½Ê̤ǡ¤³°»ú¤ä³Èĥʸ»ú
-              Îΰè¡ÊEUC ¤Î³°»ú¡¦Ì¤ÄêµÁ¤ÎȾ³Ñ²¾Ì¾¡¦À©¸æʸ»ú C1  ¤Î
-              ³ÆÎΰ衤¤ª¤è¤Ó¥·¥Õ¥È JIS ¤Î³Èĥʸ»úÎΰè¡Ë¤òǧ¼±¤·¤Þ
-              ¤¹¡£DEC ¤È EUC ¤È¤ÎȽÊ̤Ϥ³¤Î¥â¡¼¥É¤Ç¤Î¤ß¡¤¤Ê¤µ¤ì¤Þ
-              ¤¹¡£
-
-       -\b-z\bz     ½Ì ¾®¥â¡¼¥É¡£ÆþÎÏ¥³¡¼¥É¤Î¼«Æ°È½Ê̤ÇȾ³Ñ²¾Ì¾¤òǧ¼±¤·
-              ¤Þ¤»¤ó¡Ê7 ¥Ó¥Ã¥È JIS ¤ò½ü¤¯¡Ë¡£È¾³Ñ²¾Ì¾¤ò´Þ¤Þ ¤Ê ¤¤
-              ¥Õ¥¡ ¥¤¥ë¤Î¾ì¹ç¡¤¤³¤ì¤ò»ØÄꤹ¤ë¤ÈȽÊ̤γÎÅÙ¤¬¹â¤Þ¤ê
-              ¤Þ¤¹¡£
-
-       -\b-h\bh     È¾³Ñ²¾Ì¾¤ò DEC ¤ËÊÑ´¹¤¹¤ë¤ÈÁ´³Ñ¤Î¥«¥¿¥«¥Ê¤ËÊÑ´¹¤µ¤ì
-              ¤Þ ¤¹¤¬¡¤¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¤Ò¤é¤¬¤Ê¤Ë¤Ê¤ê¤Þ
-              ¤¹¡£
-
-       -\b-n\bn     ³°»ú¡¦³Èĥʸ»ú¡¦Êä½õ´Á»úÎΰè¤ò¡È¢¢¡É¤Ë¡¤È¾³Ñ²¾Ì¾ ¤Î
-              Ì¤ÄêµÁÎΰè¤òȾ³Ñ¤Î¡È¡¦¡É¤ËÊÑ´¹¤·¤Þ¤¹¡£
-
-       -\b-b\bb _\bb_\bu_\bf_\bs_\bi_\bz_\be
-              Æþ ÎϤÎȽÊ̤¬¤Ä¤«¤Ê¤¤¤¢¤¤¤ÀÆþÎϤò¤¿¤á¤Æ¤ª¤¯¥Ð¥Ã¥Õ¥¡
-              ¡¼¤ÎÂ礭¤µ¤ò»ØÄꤷ¤Þ¤¹¡£¾Êά»þ¤Ï 8k ¥Ð¥¤¥È¤Ç¤¹¡£
-
-       -\b-c\bc     ÊÑ´¹¤ò¹Ô¤ï¤º¡¤ÆþÎÏ¥³¡¼¥É¤Î¼ïÎà¤À¤±¤òÄ´¤Ù¡¤·ë²Ì¤ò É¸
-              ½à ½Ð ÎÏ ¤Ë½ÐÎϤ·¤Þ¤¹¡£Ä̾ï¤Î¼«Æ°È½Ê̤ξì¹ç¤È¤Ï°Û¤Ê
-              ¤ê¡¤¥Õ¥¡¥¤¥ë¤ÏºÇ¸å¤Þ¤ÇÄ´¤Ù¤é¤ì¤Þ¤¹¡£¤¿¤À¤·¡¤ÅÓÃæ ¤Ç
-              ¥³ ¡¼¥ÉÂηϤËÌ·½â¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¤Ë¤ÏÆɤ߹þ¤ß¤òÃæÃÇ
-              ¤·¡Èdata¡É¤Èɽ¼¨¤·¤Þ¤¹¡£-\b-x\bx¡¤-\b-z\bz °Ê³°¤Î¥ª¥×¥·¥ç¥ó¤Ï̵
-              ¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
-
-»È\b\b»ÈÍÑ\b\bÍÑÎã\b\bÎã
-       %\b% k\bkc\bcc\bc -\b-e\be _\bf_\bi_\bl_\be
-              ÆþÎÏ¥³¡¼¥É¼«Æ°È½Ê̤ǽÐÎÏ¥³¡¼¥É¤Ï EUC
-
-       %\b% k\bkc\bcc\bc -\b-s\bsj\bj _\bf_\bi_\bl_\be_\b1 _\bf_\bi_\bl_\be_\b2
-              ¥·¥Õ¥È JIS ¤Î¥Õ¥¡¥¤¥ë 2 ¤Ä¤ò JIS ¤ØÊÑ´¹¤·Ï¢·ë
-
-       %\b% _\bc_\bo_\bm_\bm_\ba_\bn_\bd |\b| k\bkc\bcc\bc -\b-k\bk+\b+J\bJ
-              _\bc_\bo_\bm_\bm_\ba_\bn_\bd ½ÐÎϤò JIS¡ÊJIS Âè 3 ¼¡µ¬³Ê´Á»ú»Ø¼¨¡¤JIS ¥í
-              ¡¼¥Þ»ú»Ø¼¨¡¤E\bES\bSC\bC(\b(I\bI ¤Ë¤è¤ë JIS ²¾Ì¾»Ø¼¨¡Ë¤Ø
-
-       %\b% k\bkc\bcc\bc -\b-c\bc _\bf_\bi_\bl_\be
-              _\bf_\bi_\bl_\be ¤Î¥³¡¼¥É¤òȽÊ̤¹¤ë¡ÊÊÑ´¹¤Ï¹Ô¤ï¤Ê¤¤¡Ë
-
-Êä\b\bÊä­\b\b­Àâ\b\bÀâÌÀ\b\bÌÀ
-       ÆþÎÏ¥³¡¼¥É¤Î¼«Æ°È½Ê̤ÏÄ̾ï¤Îʸ½ñ¤Ë¤ª¤¤¤Æ¤Ï¤Û¤Ü³Î¼Â¤Ë¹Ô¤¨¤Þ
-       ¤¹¤¬¡¤°Ê²¼¤Î¤è¤¦¤ÊÌäÂê¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£
-
-       7  ¥Ó¥Ã¥È JIS ¤Ï¥¨¥¹¥±¡¼¥×¥·¡¼¥¯¥§¥ó¥¹¤Ë¤è¤ë¥â¡¼¥ÉÀÚ¤êÂؤ¨
-
-
-
-Y. Tonooka                1992ǯ11·î19Æü                        2
-
-
-
-
-
-KCC(L)                                                     KCC(L)
-
-
-       ¤Ë¤è¤Ã¤Æ¤¤¤Æ³Î¼Â¤ËȽÊ̤µ¤ì¤Þ¤¹¡£EUC ¤È DEC ¤Ïº¬ËÜŪ¤Ë¤Ï Æ±
-       ¤¸¤â¤Î¤Ç¤¹¡Ê°Ê²¼ EUC ·Ï¤È¸Æ¤Ö¡Ë¡£°ìÊý¡¤8 ¥Ó¥Ã¥È JIS ¤ÎȾ³Ñ
-       ²¾Ì¾¤Ï¥·¥Õ¥È JIS ¤ÎȾ³Ñ²¾Ì¾¤ÈƱ¤¸¤Ç¤¹¡ÊƱ¥·¥Õ¥È JIS ·Ï¡Ë¡£
-       ¤È ¤³¤í¤¬¡¤¶¦¤Ë 8 ¥Ó¥Ã¥È¥³¡¼¥É¤Ç¤¢¤ë EUC ·Ï¤È¥·¥Õ¥È JIS ·Ï
-       ¤Ï¡¤Îΰ褬¹­¤¯½Å¤Ê¤Ã¤Æ¤¤¤ÆÇØÈ¿¤·¤Æ¤¤¤Þ¤¹¡£¤Ä¤Þ¤ê¡¤¥³¡¼¥É¤Î
-       ¼«Æ°È½Äê¤ÎÌäÂêÅÀ¤Ï¤³¤Î 2 ¤Ä¤ÎȽÊ̤ˤ¢¤ê¤Þ¤¹¡£
-
-       EUC  ·Ï/¥·¥Õ¥È JIS ·Ï¤ÎȽÊ̤ϹÔñ°Ì¤Ç¹Ô¤¤¡¤¡Ö¥·¥Õ¥È JIS ·Ï
-       ¤Ç¤Ê¤¤¡×¤¢¤ë¤¤¤Ï¡ÖEUC ·Ï¤Ç¤Ê¤¤¡×¤Èʬ¤«¤Ã¤¿»þÅÀ¤Ç³ÎÄê¤È¤·¤Þ
-       ¤¹¡£¤É¤Á¤é¤Ë¤âÌ·½â¤¹¤ë¹Ô¤¬ºÇ½é¤Ë¸½¤ì¤¿¤È¤­¤Ë¤Ï¡Èdata¡É°·¤¤
-       ¤Ë¤Ê¤ê¡¤½ÐÎÏÆâÍƤÏÊݾڤµ¤ì¤Þ¤»¤ó¡£
-
-       ºÇ½é¤Ë 8 ¥Ó¥Ã¥È¤Î´Á»ú¥³¡¼¥É¤¬¸½¤ì¤Æ¤«¤é EUC ·Ï/¥·¥Õ¥È  JIS
-       ·Ï¤ÎȽÊ̤¬¤Ä¤¯¤Þ¤Ç¤Ï¡¤ÊÑ´¹¤òÊÝα¤·¡¤ÆþÎϤò¥Ð¥Ã¥Õ¥¡¡¼¤Ë¤¿¤á
-       ¤Æ¤ª¤­¤Þ¤¹¤¬¡¤¤³¤ì¤¬¤¤¤Ã¤Ñ¤¤¤Ë¤Ê¤ë¤È EUC ·Ï¤Ç¤¢¤ë¤È·è¤á ¤Ä
-       ¤±¤ÆÊÑ´¹¤ò¶¯¹Ô¤·¤Þ¤¹¡£º¬µò¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£Ä̾ï¤Î´Á»úÆþ
-       ¤ê¤Îʸ½ñ¤Ï JIS Èó´Á»ú¤« JIS Âè 1 ¿å½à¤Î´Á»ú¤ò¤Þ¤º´Þ¤ó¤Ç ¤¤
-       ¤ë ¤È¹Í¤¨¤é¤ì¤Þ¤¹¤¬¡¤¥·¥Õ¥È JIS ¤Î¾ì¹ç¡¤¤³¤ì¤é¤Îʸ»ú¤Ï°ìÉô
-       ¤ò½ü¤¤¤Æ EUC ·Ï¤ÎÎΰè¤È¤Ï½Å¤Ê¤Ã¤Æ¤¤¤Ê¤¤¤¿¤á¡¤³Î¼Â¤ËȽÊÌ ¤µ
-       ¤ì ¤Þ¤¹¡£¤Ä¤Þ¤ê¡¤È½Ê̤Ǥ­¤Ê¤¤¤È¤­¤Ë¤Ï EUC ¤Ç¤¢¤ë²ÄǽÀ­¤¬¹â
-       ¤¤¤ï¤±¤Ç¤¹¡£
-
-       8 ¥Ó¥Ã¥È JIS ¤Ç¡¤È¾³Ñ²¾Ì¾¤¬É¬¤º¶ö¿ô¸ÄϢ³¤·¤Æ¸½¤ì¤Æ¤¤¤ë ¤È
-       ¤­ ¤Ï¡¤EUC  ¤Î´Á»ú¤Ç¤¢¤ë¤È¸íǧ¤µ¤ì¤Æ¤·¤Þ¤¦¤Î¤ÇÃí°Õ¤¬É¬ÍפÇ
-       ¤¹¡£
-
-       ÆþÎϤ¬È¾³Ñ²¾Ì¾¤ò´Þ¤Þ¤Ê¤¤¤È¤­¤Ë¤Ï -\b-z\bz ¥ª¥×¥·¥ç¥ó¤Î½Ì¾®¥â¡¼¥É
-       ¤òÍøÍѤ¹¤ë¤ÈȽÊ̤γÎÅÙ¤¬¹â¤Þ¤ê¤Þ¤¹¡£¤³¤ì¤Ï½Å¤Ê¤ëÎΰ褬 JIS
-       Âè 2 ¿å½à´Á»úÆâ¤Ë¸ÂÄꤵ¤ì¤ë¤«¤é¤Ç¤¹¡£
-
-       ¥·¥Õ¥È JIS ¤Î³ÈÄ¥Îΰ衦EUC ¤Î³°»úÎΰ衦EUC ¤ÎÀ©¸æʸ »ú  C1
-       ¤ÎÎΰ衦EUC ¤ÎȾ³Ñ²¾Ì¾¤Î̤ÄêµÁÎΰè¤Ï¡¤¼«Æ°È½Ê̤Îǧ¼±ÂоݤË
-       ¤ÏÆþ¤é¤Ê¤¤¤Î¤Ç¡¤¤³¤ì¤é¤ò´Þ¤àÆþÎϤǤϸí¤Ã¤¿È½Ê̤¬¤Ê¤µ¤ì¤Æ¤·
-       ¤Þ ¤¤ ¤Þ¤¹¡£¤³¤Î¤È¤­¤Ï -\b-x\bx ¥ª¥×¥·¥ç¥ó¤Ç³ÈÄ¥¥â¡¼¥É¤ò»ØÄꤹ¤ë
-       ¤«¡¤ÆþÎÏ¥³¡¼¥É¤òÌÀ¼¨Åª¤Ë»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
-
-´Ø\b\b´ØÏ¢\b\bÏ¢¹à\b\b¹àÌÜ\b\bÌÜ
-       c\bca\bat\bt(1)
-
-¤½\b\b¤½¤Î\b\b¤Î¾\b\b¾
-       Ä̾³°»ú¡¦³Èĥʸ»ú¡¦Êä½õ´Á»úÎΰè¤Ï¤½¤ì¤¾¤ì¤ÎÂбþ¤¹¤ëÎΰè
-       ¤Ë Åê±Æ¤µ¤ì¤Þ¤¹¡£¤¿¤À¤·¡¤¥·¥Õ¥È JIS ¤Ø¤ÎÊÑ´¹¤Ç³Èĥʸ»úÎΰè
-       ¤«¤é¤Ï¤ß½Ð¤¹Ê¸»ú¤Ï¡¤16 ¿Ê¤Ç FCFC ¤Ë¤Ê¤ê¤Þ¤¹¡£ EUC  ¤È  DEC
-       ¤Î À© ¸æ Ê¸»úÎΰè C1 ¤Ï¡¤ JIS ¤ØÊÑ´¹¤¹¤ë¾ì¹ç¤Ï¤½¤Î¤Þ¤Þ¤Ç¤¹
-       ¤¬¡¤¥·¥Õ¥È JIS ¤Ø¤Î¾ì¹ç¤Ë¤Ïºï½ü¤µ¤ì¤Þ¤¹¡£¤Þ¤¿¡¤È¾³Ñ²¾Ì¾ ¤Î
-       Ì¤ ÄêµÁÎΰè¤Ï¡¤¥·¥Õ¥È JIS ¤ËÊÑ´¹¤¹¤ë¤È¡¤È¾³Ñ¤Î¡È¡¦¡É¤ËÃÖ¤­
-       ´¹¤¨¤é¤ì¤Þ¤¹¡£È¾³Ñ²¾Ì¾¤ò DEC ¤ËÊÑ´¹¤¹¤ë¤ÈÁ´³Ñ¤Î²¾Ì¾¤ËÊÑ ´¹
-       ¤µ¤ì¤Þ¤¹¡£
-
-       JIS ¥³¡¼¥É½ÐÎϤξì¹ç¡¤²þ¹Ô¡¦¥¿¥Ö¡¦Ëõ¾Ã¤Ê¤É¤ÎÀ©¸æʸ»ú¤ä¶õÇò
-       ¡ÊȾ³Ñ¡Ë¤Ï¡¤±Ñ¿ô»ú¥â¡¼¥É¤Ç½ÐÎϤµ¤ì¤Þ¤¹¡£
-
-       ÆþÎÏ¥³¡¼¥É¤Î¼«Æ°È½Ê̤ò¸í¤Ã¤¿¾ì¹ç¡¤¤Þ¤¿¡¤¤½¤ì¤¾¤ì¤Îʸ»ú¥»¥Ã
-       ¥È¤Ë̤ÄêµÁ¤Îʸ»ú¤¬ÆþÎϤµ¤ì¤¿¾ì¹ç¡¤½ÐÎϤ¬¤É¤¦¤Ê¤ë¤«¤ÏÉÔÄê¤Ç
-
-
-
-Y. Tonooka                1992ǯ11·î19Æü                        3
-
-
-
-
-
-KCC(L)                                                     KCC(L)
-
-
-       ¤¹¡£
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Y. Tonooka                1992ǯ11·î19Æü                        4
-
-
diff --git a/libkcc/ROUTINE b/libkcc/ROUTINE
deleted file mode 100644 (file)
index 7e6cc08..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-
-* ´Á»ú¥³¡¼¥ÉȽÄê KCC_check
-  check.c -> getstr.c
-             guess.c -> compare.c
-             showcode.c
-
-* ´Á»ú¥³¡¼¥ÉÊÑ´¹ KCC_filter
-  filter.c -> setfunc.c
-              buffer.c
-              getstr.c
-              guess.c -> compare.c
-              showcode.c
-              out.c -> euc.c, sjis.c, jis.c, dec.c, outchar.c
-
-¥µ¥Ö¥ë¡¼¥Á¥ó¤Î̾¾Î¤Ï¡¢
-Kcc_ ¤« KCC_
-¤Ç»Ï¤Þ¤ë¤è¤¦¤ËÊѤ¨¤Þ¤·¤¿¡£
-
-KCC_
-¤ÈÁ´¤ÆÂçʸ»ú¤Î¾ì¹ç¤Ï¡¢¥é¥¤¥Ö¥é¥ê¤È¤·¤Æ¸Æ½Ð¤µ¤ì¤Æ»ÈÍѤµ¤ì¤ë»ö¤ò
-Á°Äó¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
-
-takeshi@SoftAgency.co.jp
-http://www.softagency.co.jp/mysql/
diff --git a/libkcc/buffer.c b/libkcc/buffer.c
deleted file mode 100644 (file)
index cb846ed..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-
-#include "kcc.h"
-#include "libkcc.h"
-
-/**********************************************************************
- *                                                                    *
- *  Hold Buffer Operations                                            *
- *                                                                    *
- **********************************************************************/
-char *holdbuf, *bufend;
-char *bufp;
-
-/*---------------------------------------------------------------------
-    NAME
-       buffalloc
- ---------------------------------------------------------------------*/
-char *Kcc_buffalloc(len)
-    unsigned len;
-{
-    if ((bufp = holdbuf = (char *) malloc(len)) == NULL)
-      return NULL;
-    bufend = holdbuf + len;
-    return bufend;
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       append
- ---------------------------------------------------------------------*/
-bool Kcc_append(s, len)
-    register char *s;
-    register int len;
-{
-    if (bufp + len > bufend)
-       return (0);
-    for (; len; --len)
-       *bufp++ = *(u_char *) s++;
-    return (1);
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       flush
- ---------------------------------------------------------------------*/
-void Kcc_flush(code, ddd, outcode, inmode, insi, inso, innj, ingj)
-    unsigned code;
-    char **ddd;
-    enum mode *inmode;
-    unsigned long *insi, *inso, *innj, *ingj;
-    unsigned outcode;
-{
-    unsigned out();
-
-    Kcc_out(ddd, holdbuf, bufp - holdbuf, code, outcode, inmode, insi, inso, innj, ingj);
-    bufp = holdbuf;
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       bufffree
- ---------------------------------------------------------------------*/
-void Kcc_bufffree(void)
-{
-    if (holdbuf) {
-       free(holdbuf);
-       holdbuf = NULL;
-    }
-}
diff --git a/libkcc/check.c b/libkcc/check.c
deleted file mode 100644 (file)
index 529dc86..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "kcc.h"
-#include "libkcc.h"
-
-unsigned KCC_check(s, extend)
-    char *s;
-    int extend;
-{
-    register unsigned code, c;
-    register int len;
-    char str[LENLINE], *dummy;
-    unsigned KCC_guess();
-enum mode gsmode;               /* guess:  M_ASCII M_KANJI M_SO */
-unsigned long insi;             /* JIS shift-in sequence flag */
-unsigned long inso;             /* JIS shift-out sequence flag
-                                 * including "ESC(I" */
-unsigned long innj;             /* JIS 1990 sequence flag */
-unsigned long ingj;             /* JIS 1990 aux flag */
-
-    dummy = s;
-    code = extend ? BIT8 : BIT8 & ~DEC;
-    gsmode = M_ASCII;
-    insi = inso = innj = ingj = 0;
-    while ((len = Kcc_getstr(str, sizeof str, &dummy)) != 0) {
-       c = Kcc_guess(str, len, extend, 0, &gsmode, &insi, &inso, &innj, &ingj);
-       code |= c & (JIS | NONASCII), code &= c | ~BIT8;
-       if (code & NONASCII && !(code & BIT8))
-           break;
-    }
-
-    return Kcc_showcode(code);
-}
diff --git a/libkcc/compare.c b/libkcc/compare.c
deleted file mode 100644 (file)
index 788805f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#include "libkcc.h"
-
-/*---------------------------------------------------------------------
-    NAME
-       compare
- ---------------------------------------------------------------------*/
-bool Kcc_compare(s, str)
-    register char *s, *str;
-{
-    while (*s)
-       if (*s++ != *str++)
-           return (0);
-    return (1);
-}
diff --git a/libkcc/dec.c b/libkcc/dec.c
deleted file mode 100644 (file)
index 84f04c5..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-#include "libkcc.h"
-
-/*---------------------------------------------------------------------
-    TYPE
-       table
-    NAME
-       katakana, hiragana, dakuon - JIS X0201 kana to JIS kanji in DEC
- ---------------------------------------------------------------------*/
-unsigned short katakana[] = {
-    0,      0xa1a3, 0xa1d6, 0xa1d7, 0xa1a2, 0xa1a6, 0xa5f2, 0xa5a1,
-    0xa5a3, 0xa5a5, 0xa5a7, 0xa5a9, 0xa5e3, 0xa5e5, 0xa5e7, 0xa5c3,
-    0xa1bc, 0xa5a2, 0xa5a4, 0xa5a6, 0xa5a8, 0xa5aa, 0xa5ab, 0xa5ad,
-    0xa5af, 0xa5b1, 0xa5b3, 0xa5b5, 0xa5b7, 0xa5b9, 0xa5bb, 0xa5bd,
-    0xa5bf, 0xa5c1, 0xa5c4, 0xa5c6, 0xa5c8, 0xa5ca, 0xa5cb, 0xa5cc,
-    0xa5cd, 0xa5ce, 0xa5cf, 0xa5d2, 0xa5d5, 0xa5d8, 0xa5db, 0xa5de,
-    0xa5df, 0xa5e0, 0xa5e1, 0xa5e2, 0xa5e4, 0xa5e6, 0xa5e8, 0xa5e9,
-    0xa5ea, 0xa5eb, 0xa5ec, 0xa5ed, 0xa5ef, 0xa5f3, 0xa1ab, 0xa1ac,
-};
-
-unsigned short hiragana[] = {
-    0,      0xa1a3, 0xa1d6, 0xa1d7, 0xa1a2, 0xa1a6, 0xa4f2, 0xa4a1,
-    0xa4a3, 0xa4a5, 0xa4a7, 0xa4a9, 0xa4e3, 0xa4e5, 0xa4e7, 0xa4c3,
-    0xa1bc, 0xa4a2, 0xa4a4, 0xa4a6, 0xa4a8, 0xa4aa, 0xa4ab, 0xa4ad,
-    0xa4af, 0xa4b1, 0xa4b3, 0xa4b5, 0xa4b7, 0xa4b9, 0xa4bb, 0xa4bd,
-    0xa4bf, 0xa4c1, 0xa4c4, 0xa4c6, 0xa4c8, 0xa4ca, 0xa4cb, 0xa4cc,
-    0xa4cd, 0xa4ce, 0xa4cf, 0xa4d2, 0xa4d5, 0xa4d8, 0xa4db, 0xa4de,
-    0xa4df, 0xa4e0, 0xa4e1, 0xa4e2, 0xa4e4, 0xa4e6, 0xa4e8, 0xa4e9,
-    0xa4ea, 0xa4eb, 0xa4ec, 0xa4ed, 0xa4ef, 0xa4f3, 0xa1ab, 0xa1ac,
-};
-
-unsigned char dakuon[] = {
-    0,      0,      0,      0,      0,      0,      0,      0,
-    0,      0,      0,      0,      0,      0,      0,      0,
-    0,      0,      0,      0,      0,      0,      1,      1,
-    1,      1,      1,      1,      1,      1,      1,      1,
-    1,      1,      1,      1,      1,      0,      0,      0,
-    0,      0,      3,      3,      3,      3,      3,      0,
-    0,      0,      0,      0,      0,      0,      0,      0,
-    0,      0,      0,      0,      0,      0,      0,      0,
-};
-
-/*********************************************************/
-unsigned short *kanatbl = katakana;
-int lastkana=0;
-extern bool nogaiji;
-
-/*---------------------------------------------------------------------
-    NAME
-       decascii
- ---------------------------------------------------------------------*/
-void Kcc_decascii(ddd, c)
-    register int c;
-    char **ddd;
-{
-    if (lastkana) {
-       **ddd = kanatbl[lastkana] >> 8; (*ddd)++;
-       **ddd = kanatbl[lastkana] & 0xff; (*ddd)++;
-       lastkana = 0;
-    }
-    **ddd = c; (*ddd)++;
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       decgaiji
- ---------------------------------------------------------------------*/
-void Kcc_decgaiji(ddd, c1, c2)
-    register int c1, c2;
-    char **ddd;
-{
-    if (lastkana) {
-        **ddd = kanatbl[lastkana] >> 8; (*ddd)++;
-        **ddd = kanatbl[lastkana] & 0xff; (*ddd)++;
-       lastkana = 0;
-    }
-    if (nogaiji) {
-       **ddd = ZENPAD >> 8 | 0x80; (*ddd)++;
-       **ddd = (ZENPAD & 0xff) | 0x80; (*ddd)++;
-    } else {
-       **ddd = c1 | 0x80; (*ddd)++;
-       **ddd = c2; (*ddd)++;
-    }
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       deckana
- ---------------------------------------------------------------------*/
-void Kcc_deckana(ddd, c)
-    register int c;
-    char **ddd;
-{
-    register int cc;
-    int i;
-    extern unsigned char dakuon[];
-
-    if (lastkana) {
-       cc = kanatbl[lastkana];
-       if ((c == 0x5e || c == 0x5f) &&
-               (i = dakuon[lastkana] & (c == 0x5e ? 1 : 2))) {
-           cc += i;
-           c = -1;
-       }
-       **ddd = cc >> 8; (*ddd)++;
-       **ddd = cc & 0xff; (*ddd)++;
-    }
-    if (c < 0x21 || 0x5f < c) {
-       if (c > 0) {
-           **ddd = ZENPAD >> 8; (*ddd)++;
-           **ddd = ZENPAD & 0xff; (*ddd)++;
-       }
-       lastkana = 0;
-    } else
-       lastkana = c - 0x20;
-}
-/*---------------------------------------------------------------------
-    NAME
-       deckanji
- ---------------------------------------------------------------------*/
-void Kcc_deckanji(ddd, c1, c2)
-    register int c1, c2;
-    char **ddd;
-{
-    if (lastkana) {
-       **ddd = kanatbl[lastkana] >> 8; (*ddd)++;
-       **ddd = kanatbl[lastkana] & 0xff; (*ddd)++;
-       lastkana = 0;
-    }
-    **ddd = c1 | 0x80; (*ddd)++;
-    **ddd = c2 | 0x80; (*ddd)++;
-}
-
diff --git a/libkcc/euc.c b/libkcc/euc.c
deleted file mode 100644 (file)
index f8f74ff..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#include "libkcc.h"
-
-extern bool nogaiji;
-
-/*---------------------------------------------------------------------
-    NAME
-       eucgaiji
- ---------------------------------------------------------------------*/
-void Kcc_eucgaiji(ddd, c1, c2)
-    register int c1, c2;
-    char **ddd;
-{
-    if (nogaiji) {
-       **ddd = ZENPAD >> 8 | 0x80; (*ddd)++;
-       **ddd = (ZENPAD & 0xff) | 0x80; (*ddd)++;
-    } else {
-       **ddd = SS3; (*ddd)++;
-       **ddd = c1 | 0x80; (*ddd)++;
-       **ddd = c2 | 0x80; (*ddd)++;
-    }
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       euckana
- ---------------------------------------------------------------------*/
-void Kcc_euckana(ddd, c)
-    register int c;
-    char **ddd;
-{
-    **ddd = SS2; (*ddd)++;
-    **ddd = (!nogaiji || (0x20 < c && c < 0x60) ? c : HANPAD) | 0x80;
-    (*ddd)++;
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       euckanji
- ---------------------------------------------------------------------*/
-void Kcc_euckanji(ddd, c1, c2)
-    register int c1, c2;
-    char **ddd;
-{
-    **ddd = c1 | 0x80; (*ddd)++;
-    **ddd = c2 | 0x80; (*ddd)++;
-}
-
diff --git a/libkcc/filter.c b/libkcc/filter.c
deleted file mode 100644 (file)
index 6992cd7..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "kcc.h"
-#include "libkcc.h"
-
-unsigned incode, outcode;
-char shiftin[7] = "\033$B";
-char shiftout[4] = "\033(J";
-
-/**********************************************************************
- *                                                                    *
- *  Filter                                                            *
- *                                                                    *
- **********************************************************************/
-enum mode gsmode;              /* guess:  M_ASCII M_KANJI M_SO */
-enum mode inmode;              /* input:  M_ASCII M_KANJI M_GAIJI
-                                * M_SO M_ESCI */
-enum mode outmode;             /* output: M_ASCII M_KANJI M_GAIJI
-                                * M_SO M_ESCI */
-
-unsigned long insi;            /* JIS shift-in sequence flag */
-unsigned long inso;            /* JIS shift-out sequence flag
-                                * including "ESC(I" */
-unsigned long innj;            /* JIS 1990 sequence flag */
-unsigned long ingj;            /* JIS 1990 aux flag */
-
-bool nogaiji = 0;
-/*---------------------------------------------------------------------
-    NAME
-       filter - filtering routine
- ---------------------------------------------------------------------*/
-int KCC_filter(ddd, outcode_name, sss, incode_name, extend, zenkaku, gaiji)
-    char *sss, *ddd;
-    int extend, zenkaku;
-    char *incode_name, *outcode_name;
-    int gaiji;
-{
-    register bool hold;
-    register unsigned code, c = ASCII;
-    register int len;
-    char str[LENLINE];
-    char *dummy, *dst;
-    unsigned incode, outcode;
-    unsigned size = HOLDBUFSIZ;
-    char s[3];
-    s[0]='\0'; s[1]='\0'; s[2]='\0';
-
-    nogaiji = gaiji;
-    if (extend<0) {extend=0;} ;     if (extend>1) {extend=1;}
-    if (zenkaku<0) {zenkaku=0;};    if (zenkaku>1) {zenkaku=1;}
-    if (nogaiji<0) {nogaiji=0;};    if (nogaiji>1) {nogaiji=1;}
-
-    /* allocate hold buf */
-    if (Kcc_buffalloc(size) == NULL)  return (-1);
-
-    incode =0; outcode = EUC;
-    if (!strcasecmp(incode_name,"AUTO")) { incode=0; }
-    if (!strcasecmp(incode_name,"SJIS")) { incode=SJIS; }
-    if (!strcasecmp(incode_name,"DEC"))  { incode=DEC; }
-    if (!strcasecmp(incode_name,"JIS"))  { incode=JIS; }
-    if (!strcasecmp(incode_name,"JIS8")) { incode=JIS8; }
-    if (!strcasecmp(incode_name,"JISI")) { incode=ESCI; }
-
-    if (!strcasecmp(outcode_name,"EUC"))  { outcode=EUC; }
-    if (!strcasecmp(outcode_name,"SJIS")) { outcode=SJIS; }
-    if (!strcasecmp(outcode_name,"DEC"))  { outcode=DEC; }
-    if (!strncasecmp(outcode_name,"JIS", 3))
-      { outcode=JIS;
-        if (outcode_name[3]!='\0' && outcode_name[3]!='8' && outcode_name[3]!='I' )
-         { s[0]=outcode_name[3] ; s[1]=outcode_name[4]; }
-      }
-    if (!strncasecmp(outcode_name,"JIS8",4))
-      { outcode=JIS8;
-        if (outcode_name[4]!='\0')
-         { s[0]=outcode_name[4] ; s[1]=outcode_name[5]; }
-      }
-    if (!strncasecmp(outcode_name,"JISI",4))
-      { outcode=ESCI;
-        if (outcode_name[4]!='\0')
-         { s[0]=outcode_name[4] ; s[1]=outcode_name[5]; }
-      }
-    if ((s[0] == 'B' || s[0] == '@' || s[0] == '+') &&
-       (s[1] == 'B' || s[1] == 'J' || s[1] == 'H'))
-      {
-       if (s[0] == '+')
-         sprintf(shiftin, "\033&@\033$B");
-       else
-         sprintf(shiftin, "\033$%c", s[0]);
-       sprintf(shiftout, "\033(%c", s[1]);
-      }
-
-    Kcc_setfunc(outcode);
-
-    dummy = sss;
-    dst = ddd;
-
-    code = incode ? incode : extend ? BIT8 : BIT8 & ~DEC;
-    gsmode = inmode = outmode = M_ASCII;
-    insi = inso = innj = ingj = 0;
-    hold = 0;
-    while ((len = Kcc_getstr(str, sizeof str, &dummy)) != 0) {
-       if ((!(code & NONASCII) && code & BIT8) ||
-               (code & (EUC | DEC) && code & SJIS && !(code & ASSUME))) {
-           /*
-            * So far, no kanji has been seen, or ambiguous.
-            */
-           c = Kcc_guess(str, len, extend, zenkaku, &gsmode, &insi, &inso, &innj, &ingj);
-           code |= c & (JIS | NONASCII), code &= c | ~BIT8;
-           if (code & NONASCII && code & (EUC | DEC) && code & SJIS) {
-               /*
-                * If ambiguous, store the line in hold buffer.
-                */
-               if (Kcc_append(str, len)) {
-                   hold = 1;
-                   continue;
-               }
-               /*
-                * When buffer is full, assume EUC/DEC.
-                */
-               code |= ASSUME;
-           }
-       }
-       if (hold) {
-           /*
-            * Flush hold buffer.
-            */
-           Kcc_flush(code,  &dst, outcode, &inmode, &insi, &inso, &innj, &ingj);
-           hold = 0;
-       }
-       c = Kcc_out(&dst,   str, len, code,   outcode, &inmode, &insi, &inso, &innj, &ingj);
-       code |= c & JIS, code &= c | ~BIT8;
-    }
-    if (hold)
-       /*
-        * Assume EUC.
-        */
-       Kcc_flush(code |= ASSUME,   &dst, outcode, &inmode, &insi, &inso, &innj, &ingj);
-
-    *dst = '\0';
-    Kcc_bufffree();
-    return (Kcc_showcode(c));
-}
diff --git a/libkcc/getstr.c b/libkcc/getstr.c
deleted file mode 100644 (file)
index ac10fc6..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <stdio.h>
-
-/*---------------------------------------------------------------------
-    NAME
-       getstr
- ---------------------------------------------------------------------*/
-int Kcc_getstr(str, n, sp)
-    char *str;
-    register int n;
-    char **sp;
-{
-    register int c;
-    register char *s;
-
-/*    for (s = str; --n > 0 && (c = **sp) != EOF ; ) {*/
-    for (s = str; --n > 0 && (c = **sp) != EOF && c != '\0'; ) {
-      (*sp)++;
-       if ((*s++ = c) == '\n')
-           break;
-    }
-    return (s - str);
-}
diff --git a/libkcc/guess.c b/libkcc/guess.c
deleted file mode 100644 (file)
index d6de886..0000000
+++ /dev/null
@@ -1,194 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "kcc.h"
-#include "libkcc.h"
-
-/**********************************************************************
- *                                                                    *
- *  Guessing                                                          *
- *                                                                    *
- **********************************************************************/
-/*---------------------------------------------------------------------
-    NAME
-       guess - distinguish code system
- ---------------------------------------------------------------------*/
-unsigned Kcc_guess(str, len, extend, zenkaku, gsmode, insi, inso, innj, ingj)
-    char *str;
-    int len, extend;
-    enum mode *gsmode;
-   unsigned long *insi, *inso, *innj, *ingj;
-   bool zenkaku;
-{
-    register char *s;
-    register int euc, sjis, dec;
-    bool jis8;
-    register unsigned code;
-    register int i;
-    enum mode old;
-
-    euc = sjis = 1;
-    dec = extend ? 1 : 0;
-    jis8 = 1;
-    code = 0;
-    for (s = str; s < str + len; s += i) {
-       i = 1;
-       switch (*(u_char *) s) {
-       case ESC:
-           if (*gsmode == M_SO)
-               continue;
-           old = *gsmode;
-           if (Kcc_compare("$B", s + 1) || Kcc_compare("$@", s + 1)) {
-               *gsmode = M_KANJI;      /* kanji */
-               *insi |= bitflag(((u_char *) s)[2]);
-               i = 3;
-           } else if (Kcc_compare("&@\033$B", s + 1)) {
-               *gsmode = M_KANJI;      /* kanji 1990 */
-               *innj |= bitflag('B');
-               i = 6;
-           } else if (Kcc_compare("(B", s + 1) ||
-                   Kcc_compare("(J", s + 1) || Kcc_compare("(H", s + 1)) {
-               *gsmode = M_ASCII;      /* kanji end */
-               *inso |= bitflag(((u_char *) s)[2]);
-               i = 3;
-           } else if (Kcc_compare("(I", s + 1)) {
-               *gsmode = M_KANJI;      /* "ESC(I" */
-               *inso |= bitflag('I');
-               i = 3;
-           } else if (Kcc_compare("$(D", s + 1)) {
-               *gsmode = M_KANJI;      /* gaiji */
-               *ingj |= bitflag('D');
-               i = 4;
-           } else
-               break;
-           code |= JIS;
-           if (old != M_ASCII)
-               continue;
-           break;
-       case SO:
-           if (*gsmode == M_ASCII) {
-               code |= JIS;
-               *gsmode = M_SO;
-               break;
-           }
-           continue;
-       case SI:
-           if (*gsmode == M_SO) {
-               *gsmode = M_ASCII;
-               continue;
-           }
-           /* fall thru */
-       default:
-           if (*gsmode != M_ASCII)
-               continue;
-           break;
-       }
-       if (*(u_char *) s & 0x80)
-           code |= NONASCII;
-       switch (euc) {
-       case 1:
-           /*
-            * EUC first byte.
-            */
-           if (*(u_char *) s & 0x80) {
-               if ((0xa0 < *(u_char *) s && *(u_char *) s < 0xff) ||
-                       (!zenkaku && *(u_char *) s == SS2)) {
-                   euc = 2;
-                   break;
-               }
-               if (extend) {
-                   if (*(u_char *) s == SS3) {
-                       euc = 2;
-                       break;
-                   } else if (*(u_char *) s < 0xa0)
-                       break;
-               }
-               euc = 0;        /* not EUC */
-           }
-           break;
-       case 2:
-           /*
-            * EUC second byte or third byte of CS3.
-            */
-           if (((u_char *) s)[-1] == SS2) {
-               if (0xa0 < *(u_char *) s &&
-                       *(u_char *) s < (extend ? 0xff : 0xe0)) {
-                   euc = 1;    /* hankaku kana */
-                   break;
-               }
-           } else
-               if (0xa0 < *(u_char *) s && *(u_char *) s < 0xff) {
-                   if (((u_char *) s)[-1] != SS3)
-                       euc = 1;/* zenkaku */
-                   break;
-               }
-           euc = 0;            /* not EUC */
-           break;
-       }
-       if (extend)
-           switch (dec) {
-           case 1:
-               /*
-                * DEC first byte.
-                */
-               if (*(u_char *) s & 0x80) {
-                   if (0xa0 < *(u_char *) s && *(u_char *) s < 0xff) {
-                       dec = 2;
-                       break;
-                   } else if (*(u_char *) s < 0xa0)
-                       break;
-                   dec = 0;    /* not DEC */
-               }
-               break;
-           case 2:
-               /*
-                * DEC second byte.
-                */
-               if (0x20 < (*(u_char *) s & 0x7f) &&
-                       (*(u_char *) s & 0x7f) < 0x7f) {
-                   dec = 1;
-               } else
-                   dec = 0;    /* not DEC */
-               break;
-           }
-       switch (sjis) {
-       case 1:
-           /*
-            * shift-JIS first byte.
-            */
-           if (*(u_char *) s & 0x80) {
-               if (0xa0 < *(u_char *) s && *(u_char *) s < 0xe0) {
-                   if (!zenkaku)
-                       break;  /* hankaku */
-               } else if (*(u_char *) s != 0x80 &&
-                       *(u_char *) s != 0xa0 &&
-                       *(u_char *) s <= (extend ? 0xfc : 0xef)) {
-                   sjis = 2;   /* zenkaku */
-                   jis8 = 0;
-                   break;
-               }
-               sjis = 0;       /* not SJIS */
-           }
-           break;
-       case 2:
-           /*
-            * shift-JIS second byte.
-            */
-           if (0x40 <= *(u_char *) s && *(u_char *) s != 0x7f &&
-                   *(u_char *) s <= 0xfc)
-               sjis = 1;
-           else
-               sjis = 0;       /* not SJIS */
-           break;
-       }
-    }
-    if (euc == 1)
-       code |= EUC;
-    if (dec == 1)
-       code |= DEC;
-    if (sjis == 1)
-       code |= zenkaku || !jis8 ? SJIS : SJIS | JIS8;
-    return (code);
-}
diff --git a/libkcc/jis.c b/libkcc/jis.c
deleted file mode 100644 (file)
index 7863fff..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-#include "libkcc.h"
-
-#include <string.h>
-
-extern enum mode outmode;
-extern char shiftout[], shiftin[];
-extern bool nogaiji;
-/*---------------------------------------------------------------------
-    NAME
-       jisascii
- ---------------------------------------------------------------------*/
-void Kcc_jisascii(ddd, c)
-    register int c;
-    char **ddd;
-{
-  int i;
-
-    switch (outmode) {
-    case M_ASCII:
-       break;
-    case M_SO:
-       **ddd = SI; (*ddd)++;
-       outmode = M_ASCII;
-       break;
-    default:
-        for (i=0; i< strlen(shiftout); i++) { **ddd = shiftout[i]; (*ddd)++; }
-       outmode = M_ASCII;
-       break;
-    }
-    **ddd = c; (*ddd)++;
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       jisgaiji
- ---------------------------------------------------------------------*/
-void Kcc_jisgaiji(ddd, c1, c2)
-    register int c1, c2;
-    char **ddd;
-{
-
-    if (nogaiji)
-       Kcc_jiskanji(ddd, ZENPAD >> 8, ZENPAD & 0xff);
-    else {
-       if (outmode != M_GAIJI) {
-         if (outmode == M_SO)  { **ddd = SI; (*ddd)++; }
-         **ddd = '\033'; (*ddd)++;
-         **ddd = '$'; (*ddd)++;
-         **ddd = '('; (*ddd)++;
-         **ddd = 'D'; (*ddd)++;
-         outmode = M_GAIJI;
-       }
-       **ddd = c1;
-       **ddd = c2;
-    }
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       jiskana
- ---------------------------------------------------------------------*/
-void Kcc_jiskana(ddd, c)
-    register int c;
-    char **ddd;
-{
-  int i;
-
-    if (outmode != M_SO) {
-      if (outmode != M_ASCII) {
-       for (i=0; i< strlen(shiftout); i++) {**ddd = shiftout[i]; (*ddd)++; }
-      }
-      **ddd = SO; (*ddd)++;
-      outmode = M_SO;
-    }
-    **ddd = !nogaiji || (0x20 < c && c < 0x60) ? c : HANPAD; (*ddd)++;
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       jiskana8
- ---------------------------------------------------------------------*/
-void Kcc_jiskana8(ddd, c)
-    register int c;
-    char **ddd;
-{
-  int i;
-
-    if (outmode != M_ASCII) {
-       for (i=0; i< strlen(shiftout); i++) {**ddd = shiftout[i]; (*ddd)++; }
-       outmode = M_ASCII;
-    }
-    **ddd = (!nogaiji || (0x20 < c && c < 0x60) ? c : HANPAD) | 0x80; (*ddd)++;
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       jiskanak
- ---------------------------------------------------------------------*/
-void Kcc_jiskanak(ddd, c)
-    register int c;
-    char **ddd;
-{
-
-    if (outmode != M_ESCI) {
-       **ddd = '\033'; (*ddd)++;
-       **ddd = '('; (*ddd)++;
-       **ddd = 'I'; (*ddd)++;
-       outmode = M_ESCI;
-    }
-    **ddd = !nogaiji || (0x20 < c && c < 0x60) ? c : HANPAD; (*ddd)++;
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       jiskanji
- ---------------------------------------------------------------------*/
-void Kcc_jiskanji(ddd, c1, c2)
-    register int c1, c2;
-    char **ddd;
-{
-  int i;
-
-    if (outmode != M_KANJI) {
-        if (outmode == M_SO)
-         { **ddd = SI; (*ddd)++; }
-       for (i=0; i< strlen(shiftin); i++) {**ddd = shiftin[i]; (*ddd)++; }
-       outmode = M_KANJI;
-    }
-    **ddd = c1; (*ddd)++;
-    **ddd = c2; (*ddd)++;
-}
-
diff --git a/libkcc/kcc.h b/libkcc/kcc.h
deleted file mode 100644 (file)
index 84edfc9..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#if 0
-#if !defined lint
-static char sccsid[] = "@(#)kcc.c 2.3 (Y.Tonooka) 7/1/94";
-static char copyright[] = "@(#)Copyright (c) 1992 Yasuhiro Tonooka";
-#endif
-#endif
-
-#define BINARY          0x100
-#define ASCII           0x00
-
-#define NONASCII        0x01    /* non-ASCII character */
-#define JIS             0x02    /* JIS */
-#define ESCI            0x04    /* "ESC(I" */
-#define ASSUME          0x08    /* assumed EUC (or DEC) */
-#define EUC             0x10
-#define DEC             0x20
-#define SJIS            0x40
-#define JIS8            0x80    /* 8-bit JIS */
-#define BIT8            (EUC | DEC | SJIS | JIS8)
-
-extern int KCC_filter(char *ddd, char *outcode_name, char *sss, char *incode_name, int extend, int zenkaku, int gaiji);
-extern unsigned KCC_check(char *s, int extend);
diff --git a/libkcc/libkcc.h b/libkcc/libkcc.h
deleted file mode 100644 (file)
index 829f7cd..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-#define LENLINE                (BUFSIZ * 4)
-#define HOLDBUFSIZ     8192    /* default size of hold buffer */
-
-#define ESC            0x1b
-#define SO             0x0e
-#define SI             0x0f
-#define SS2            0x8e    /* EUC single shift 2 */
-#define SS3            0x8f    /* EUC single shift 3 */
-
-#define ZENPAD         0x2222  /* padding char for zenkaku */
-#define HANPAD         0x25    /* padding char for hankaku */
-
-typedef int bool;
-
-#define bitflag(c)     (1L << ((c) - '@'))
-
-enum mode {
-    M_ASCII,
-    M_KANJI,
-    M_GAIJI,
-    M_SO,                      /* hankaku kana with SO */
-    M_ESCI,                    /* hankaku kana with "ESC(I" */
-};
-
-/* buffer.c */
-char *Kcc_buffalloc(unsigned len);
-bool Kcc_append(register char *s, register int len);
-void Kcc_flush(unsigned code, char **ddd, unsigned outcode,
-              enum mode *inmode, unsigned long *insi,
-              unsigned long *inso, unsigned long *innj,
-              unsigned long *ingj);
-void Kcc_bufffree(void);
-
-/* check.c */
-unsigned KCC_check(char *s, int extend);
-
-/* compare.c */
-bool Kcc_compare(register char *s, register char *str);
-
-/* dec.c */
-void Kcc_decascii(char **ddd, register int c);
-void Kcc_decgaiji(char **ddd, register int c1, register int c2);
-void Kcc_deckana(char **ddd, register int c);
-void Kcc_deckanji(char **ddd, register int c1, register int c2);
-
-/* euc.c */
-void Kcc_eucgaiji(char **ddd, register int c1, register int c2);
-void Kcc_euckana(char **ddd, register int c);
-void Kcc_euckanji(char **ddd, register int c1, register int c2);
-
-/* filter.c */
-int KCC_filter(char *ddd, char *outcode_name, char *sss, char *incode_name,
-              int extend, int zenkaku, int gaiji);
-
-/* getstr.c */
-int Kcc_getstr(char *str, register int n, char **sp);
-
-/* guess.c */
-unsigned Kcc_guess(char *str, int len, int extend, bool zenkaku,
-                  enum mode *gsmode, unsigned long *insi,
-                  unsigned long *inso, unsigned long *innj,
-                  unsigned long *ingj);
-
-/* jis.c */
-void Kcc_jisascii(char **ddd, register int c);
-void Kcc_jisgaiji(char **ddd, register int c1, register int c2);
-void Kcc_jiskana(char **ddd, register int c);
-void Kcc_jiskana8(char **ddd, register int c);
-void Kcc_jiskanak(char **ddd, register int c);
-void Kcc_jiskanji(char **ddd, register int c1, register int c2);
-
-/* out.c */
-void Kcc_outsjis(char **ddd, register int c1, register int c2);
-unsigned Kcc_out(char **ddd, char *str, int len, register unsigned code,
-                unsigned outcode, enum mode *inmode,
-                unsigned long *insi, unsigned long *inso,
-                unsigned long *innj, unsigned long *ingj);
-
-/* outchar.c */
-void Kcc_outchar(char **ddd, register int c);
-
-/* outsjis.c */
-void outsjis(register int c1, register int c2);
-
-/* setfunc.c */
-void Kcc_setfunc(unsigned outcode);
-
-/* showcode.c */
-int Kcc_showcode(register unsigned code);
-
-/* sjis.c */
-void Kcc_sjisgaiji(char **ddd, register int c1, register int c2);
-void Kcc_sjiskana(char **ddd, register int c);
-void Kcc_sjiskanji(char **ddd, register int c1, register int c2);
diff --git a/libkcc/out.c b/libkcc/out.c
deleted file mode 100644 (file)
index 86e3dcb..0000000
+++ /dev/null
@@ -1,188 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "kcc.h"
-#include "libkcc.h"
-
-/**********************************************************************
- *                                                                    *
- *  Output Routines                                                   *
- *                                                                    *
- **********************************************************************/
-extern void (*outascii)(), (*outkanji)(), (*outgaiji)(), (*outkana)();
-
-/*---------------------------------------------------------------------
-    NAME
-       outsjis
- ---------------------------------------------------------------------*/
-void Kcc_outsjis(ddd, c1, c2)
-    register int c1, c2;
-    char **ddd;
-{
-    register int c;
-
-    c = c1 * 2 - (c1 <= 0x9f ? 0x00e1 : (c1 < 0xf0 ? 0x0161 : 0x01bf));
-    if (c2 < 0x9f)
-       c2 = c2 - (c2 > 0x7f ? 0x20 : 0x1f);
-    else {
-       c2 = c2 - 0x7e;
-       c++;
-    }
-    (*(c1 <= 0xef ? outkanji : outgaiji))(ddd, c, c2);
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       out
- ---------------------------------------------------------------------*/
-unsigned Kcc_out(ddd,   str, len, code,   outcode, inmode, insi, inso, innj, ingj)
-    char *str, **ddd;
-    int len;
-    register unsigned code;
-    enum mode *inmode;
-    unsigned long *insi, *inso, *innj, *ingj;
-    unsigned outcode;
-{
-    register char *s;
-    register int i;
-
-    for (s = str; s < str + len; s += i) {
-       i = 1;
-       switch (*(u_char *) s) {
-       case ESC:
-           if (*inmode == M_SO)
-               break;
-           if (Kcc_compare("$B", s + 1) || Kcc_compare("$@", s + 1)) {
-               *inmode = M_KANJI;      /* kanji */
-               *insi |= bitflag(((u_char *) s)[2]);
-               i = 3;
-           } else if (Kcc_compare("&@\033$B", s + 1)) {
-               *inmode = M_KANJI;      /* kanji 1990 */
-               *innj |= bitflag('B');
-               i = 6;
-           } else if (Kcc_compare("(B", s + 1) || Kcc_compare("(J", s + 1) ||
-                   Kcc_compare("(H", s + 1)) {
-               *inmode = M_ASCII;      /* kanji end */
-               *inso |= bitflag(((u_char *) s)[2]);
-               i = 3;
-           } else if (Kcc_compare("(I", s + 1)) {
-               *inmode = M_ESCI;       /* "ESC(I" */
-               *inso |= bitflag('I');
-               i = 3;
-           } else if (Kcc_compare("$(D", s + 1)) {
-               *inmode = M_GAIJI;      /* gaiji */
-               *ingj |= bitflag('D');
-               i = 4;
-           } else
-               break;
-           code |= JIS;
-           continue;
-       case SO:
-           if (*inmode == M_ASCII) {
-               code |= JIS;
-               *inmode = M_SO;
-               continue;
-           }
-           break;
-       case SI:
-           if (*inmode == M_SO) {
-               *inmode = M_ASCII;
-               continue;
-           }
-           break;
-       }
-       if (*inmode != M_ASCII) {
-           if (0x20 < ((u_char *) s)[0] && ((u_char *) s)[0] < 0x7f)
-               switch (*inmode) {
-               case M_KANJI:
-                   (*outkanji)(ddd, ((u_char *) s)[0], ((u_char *) s)[1] & 0x7f);
-                   i = 2;
-                   continue;
-               case M_GAIJI:
-                   (*outgaiji)(ddd, ((u_char *) s)[0], ((u_char *) s)[1] & 0x7f);
-                   i = 2;
-                   continue;
-               case M_SO:
-               case M_ESCI:
-                   (*outkana)(ddd, ((u_char *) s)[0]);
-                   continue;
-               default:
-                   continue;
-               }
-       } else if (((u_char *) s)[0] & 0x80) {
-           if (code & (EUC | DEC)) {
-               /*
-                * EUC or DEC:
-                */
-               if (0xa0 < ((u_char *) s)[0] &&
-                       ((u_char *) s)[0] < 0xff) {
-                   if (!(((u_char *) s)[1] & 0x80) && code & DEC) {
-                       /*
-                        * DEC gaiji:
-                        */
-                       code &= ~EUC;   /* definitely DEC  */
-                       (*outgaiji)(ddd, ((u_char *) s)[0] & 0x7f, ((u_char *) s)[1]);
-                   } else
-                       /*
-                        * EUC code set 1 (kanji), DEC kanji:
-                        */
-                       (*outkanji)(ddd, ((u_char *) s)[0] & 0x7f, ((u_char *) s)[1] & 0x7f);
-               } else if (((u_char *) s)[0] == SS2 && code & EUC &&
-                       0xa0 < ((u_char *) s)[1] &&
-                       ((u_char *) s)[1] < 0xff) {
-                   /*
-                    * EUC code set 2 (hankaku kana):
-                    */
-                   code &= ~DEC;       /* probably EUC */
-                   (*outkana)(ddd, ((u_char *) s)[1] & 0x7f);
-               } else if (((u_char *) s)[0] == SS3 && code & EUC &&
-                       0xa0 < ((u_char *) s)[1] &&
-                       ((u_char *) s)[1] < 0xff &&
-                       0xa0 < ((u_char *) s)[2] &&
-                       ((u_char *) s)[2] < 0xff) {
-                   /*
-                    * EUC code set 3 (gaiji):
-                    */
-                   code &= ~DEC;       /* probably EUC */
-                   (*outgaiji)(ddd, ((u_char *) s)[1] & 0x7f, ((u_char *) s)[2] & 0x7f);
-                   i = 3;
-                   continue;
-               } else {
-                   /*
-                    * Control character (C1):
-                    */
-                   if (outcode != SJIS && (outcode != EUC || 
-                           (((u_char *) s)[0] != SS2 &&
-                           ((u_char *) s)[0] != SS3)))
-                       **ddd = ((u_char *) s)[0]; (*ddd)++;
-                   continue;
-               }
-               i = 2;
-               continue;
-           } else if (code & (SJIS | JIS8)) {
-               /*
-                * Shift-JIS or JIS8:
-                */
-               if (!(code & SJIS) || (0xa0 < ((u_char *) s)[0] &&
-                       ((u_char *) s)[0] < 0xe0))
-                   /*
-                    * Hankaku kana:
-                    */
-                   (*outkana)(ddd, ((u_char *) s)[0] & 0x7f);
-               else {
-                   /*
-                    * Shift-JIS kanji:
-                    */
-                   code &= ~JIS8;      /* definitely shift-JIS */
-                   Kcc_outsjis(ddd, ((u_char *) s)[0], ((u_char *) s)[1]);
-                   i = 2;
-               }
-               continue;
-           }
-       }
-       (*outascii)(ddd, ((u_char *) s)[0]);
-    }
-    return (code);
-}
diff --git a/libkcc/outchar.c b/libkcc/outchar.c
deleted file mode 100644 (file)
index 2d6a9c9..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*---------------------------------------------------------------------
-    NAME
-       outchar
- ---------------------------------------------------------------------*/
-void Kcc_outchar(ddd, c)
-    register int c;
-    char **ddd;
-{
-    **ddd = c; (*ddd)++;
-}
diff --git a/libkcc/outsjis.c b/libkcc/outsjis.c
deleted file mode 100644 (file)
index 38b318d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-void (*outascii)(), (*outkanji)(), (*outgaiji)(), (*outkana)();
-/*---------------------------------------------------------------------
-    NAME
-       outsjis
- ---------------------------------------------------------------------*/
-void outsjis(c1, c2)
-    register int c1, c2;
-{
-    register int c;
-
-    c = c1 * 2 - (c1 <= 0x9f ? 0x00e1 : (c1 < 0xf0 ? 0x0161 : 0x01bf));
-    if (c2 < 0x9f)
-       c2 = c2 - (c2 > 0x7f ? 0x20 : 0x1f);
-    else {
-       c2 = c2 - 0x7e;
-       c++;
-    }
-    (*(c1 <= 0xef ? outkanji : outgaiji))(c, c2);
-}
diff --git a/libkcc/setfunc.c b/libkcc/setfunc.c
deleted file mode 100644 (file)
index 45b9be5..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#include "kcc.h"
-
-void (*outascii)(), (*outkanji)(), (*outgaiji)(), (*outkana)();
-
-/**********************************************************************
- *                                                                    *
- *  Conversion Routines                                               *
- *                                                                    *
- **********************************************************************/
-void Kcc_outchar();
-void Kcc_jisascii(), Kcc_jiskanji(), Kcc_jisgaiji();
-void Kcc_jiskana(), Kcc_jiskanak(), Kcc_jiskana8();
-void Kcc_euckanji(), Kcc_eucgaiji(), Kcc_euckana();
-void Kcc_sjiskanji(), Kcc_sjisgaiji(), Kcc_sjiskana();
-void Kcc_decascii(), Kcc_deckanji(), Kcc_decgaiji(), Kcc_deckana();
-
-/*---------------------------------------------------------------------
-    NAME
-       setfunc
- ---------------------------------------------------------------------*/
-void Kcc_setfunc(outcode)
-     unsigned outcode;
-{
-    switch (outcode) {
-    case EUC:
-       outascii = Kcc_outchar;
-       outkanji = Kcc_euckanji;
-       outgaiji = Kcc_eucgaiji;
-       outkana = Kcc_euckana;
-       break;
-    case DEC:
-       outascii = Kcc_decascii;
-       outkanji = Kcc_deckanji;
-       outgaiji = Kcc_decgaiji;
-       outkana = Kcc_deckana;
-       break;
-    case SJIS:
-       outascii = Kcc_outchar;
-       outkanji = Kcc_sjiskanji;
-       outgaiji = Kcc_sjisgaiji;
-       outkana = Kcc_sjiskana;
-       break;
-    default:
-       outascii = Kcc_jisascii;
-       outkanji = Kcc_jiskanji;
-       outgaiji = Kcc_jisgaiji;
-       switch (outcode) {
-       case JIS:               /* mode:  M_ASCII M_KANJI M_GAIJI
-                                * M_SO */
-           outkana = Kcc_jiskana;
-           break;
-       case JIS | ESCI:        /* mode:  M_ASCII M_KANJI M_GAIJI
-                                * M_ESCI */
-           outkana = Kcc_jiskanak;
-           break;
-       case JIS | JIS8:        /* mode:  M_ASCII M_KANJI M_GAIJI */
-           outkana = Kcc_jiskana8;
-           break;
-       }
-       break;
-    }
-}
-
diff --git a/libkcc/showcode.c b/libkcc/showcode.c
deleted file mode 100644 (file)
index bb09f90..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include "kcc.h"
-
-/*---------------------------------------------------------------------
-    NAME
-       showcode
- ---------------------------------------------------------------------*/
-int Kcc_showcode(code)
-    register unsigned code;
-{
-    /* char *s; */
-    /*    void showjis();*/
-    int k, m;
-    /* int k, m,n; */
-
-    if (!(code & NONASCII)) {
-       /*
-        * 7-bit JIS / ASCII.
-        */
-       if (code & JIS) {
-            return JIS;
-       } else { return ASCII; }
-    } else if (code & (EUC | DEC)) {
-      k = code & EUC ? code & DEC ? EUC : EUC : DEC;
-       if (code & SJIS) {
-           /*
-            * Ambiguous.
-            */
-           if (code & JIS8) {
-               m = code & JIS ? JIS : SJIS;
-               if (code & ASSUME) {
-                 return code & JIS ? m : k;
-               }
-               return k;
-           }
-           if (code & ASSUME) { return k; }
-           return SJIS;
-       } else {
-           /*
-            * EUC/DEC.
-            */
-         return k;
-        }
-    } else if (code & JIS8) {
-       /*
-        * 8-bit JIS / shift-JIS or 8-bit JIS.
-        */
-       if (!(code & JIS))
-           return SJIS;
-       return JIS8;
-    } else if (code & SJIS)
-       /*
-        * Shift-JIS.
-        */
-      return SJIS;
-    else {
-       /*
-        * Non-ASCII deteced but neither EUC/DEC nor SJIS.
-        */
-       return BINARY;
-    }
-    if (code & JIS) {
-      return JIS;
-    }
-
-    return BINARY;
-}
diff --git a/libkcc/sjis.c b/libkcc/sjis.c
deleted file mode 100644 (file)
index 026a3cd..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#include "libkcc.h"
-
-void Kcc_sjiskanji(char **ddd, register int c1, register int c2);
-
-extern bool nogaiji;
-
-/*---------------------------------------------------------------------
-    NAME
-       sjisgaiji
-    DESCRIPTION
-       Characters are mapped as follows:
-           0x2121 to 0x3a7e --> 0xf040 to 0xfcfc
-           0x3b21 to 0x7e7e --> 0xfcfc
- ---------------------------------------------------------------------*/
-void Kcc_sjisgaiji(ddd, c1, c2)
-    register int c1, c2;
-    char **ddd;
-{
-    if (nogaiji)
-       Kcc_sjiskanji(ddd, ZENPAD >> 8, ZENPAD & 0xff);
-    else {
-      **ddd = c1 < 0x3b ? ((c1 - 1) >> 1) + 0xe0 : 0xfc; (*ddd)++;
-      **ddd = c1 < 0x3b ? c2 +
-               (c1 & 1 ? (c2 < 0x60 ? 0x1f : 0x20) : 0x7e) : 0xfc; (*ddd)++;
-    }
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       sjiskana
- ---------------------------------------------------------------------*/
-void Kcc_sjiskana(ddd, c)
-    register int c;
-    char **ddd;
-{
-    **ddd = 0x20 < c && c < 0x60 ? c | 0x80 : HANPAD | 0x80; (*ddd)++;
-}
-
-/*---------------------------------------------------------------------
-    NAME
-       sjiskanji
- ---------------------------------------------------------------------*/
-void Kcc_sjiskanji(ddd, c1, c2)
-    register int c1, c2;
-    char **ddd;
-{
-    **ddd = ((c1 - 1) >> 1) + (c1 <= 0x5e ? 0x71 : 0xb1); (*ddd)++;
-    **ddd = c2 + (c1 & 1 ? (c2 < 0x60 ? 0x1f : 0x20) : 0x7e); (*ddd)++;
-}
-
diff --git a/libkcc/test.c b/libkcc/test.c
deleted file mode 100644 (file)
index 4fbb81a..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <stdio.h>
-#include "kcc.h"
-
-main(argc, argv)
-    register int argc;
-    register char *argv[];
-{
-  FILE *fp;
-  char s[2048], d[4096];
-  int i=0, c;
-
-  fp=fopen("test_file","r");
-  if (fp == NULL) {printf("not found\n"); exit;}
-
-  while ((c = fgetc(fp)) != EOF && i<2045)
-  {
-    s[i] = c; i++;
-  }
-  s[i]='\0';
-
-  printf ("\n==== Check ===\n");
-  printf ("%d bytes ; %x\n",i,KCC_check(s,0));
-
-  printf ("\n==== filter ===\n");
-
-
-  if (argc>1) {
-    if (!strcasecmp(argv[1],"euc")) {
-      i = KCC_filter(d, "EUC", s, "AUTO", 0,0,0);
-    }
-    if (!strcasecmp(argv[1],"jis")) {
-      i = KCC_filter(d, "JIS", s, "AUTO", 0,0,0);
-    }
-    if (!strcasecmp(argv[1],"sjis")) {
-      i = KCC_filter(d, "sjis", s, "AUTO", 0,0,0);
-    }
-  }
-  else {
-    i = KCC_filter(d, "JIS", s, "AUTO", 0,0,0);
-  }
-
-  printf("code = %x\n%s\n",i,d);
-
-}
diff --git a/libkcc/test_check.c b/libkcc/test_check.c
deleted file mode 100644 (file)
index fe7cc11..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <stdio.h>
-main ()
-{
-  FILE *fp;
-  char s[500];
-  int i=0, c;
-
-  fp=fopen("test_file","r");
-  if (fp == NULL) {printf("not found\n"); exit;}
-
-  while ((c = fgetc(fp)) != EOF && i<490)
-  {
-    s[i] = c; i++;
-  }
-  s[i]='\0';
-
-  printf ("%d bytes ; %x\n",i,KCC_check(s,0));
-}
diff --git a/libkcc/test_file b/libkcc/test_file
deleted file mode 100644 (file)
index 9e27f8f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-²ñ¼Ò¾ðÊó
-<A HREF="">¤¢</A>¤¢¤¢¤¢¤¢¤¢<BR>
-
-<?php
-$a=0;
-while($a<10) {
- $a++;
-?>¤¤<?php } ?>
diff --git a/libkcc/test_file.sjis b/libkcc/test_file.sjis
deleted file mode 100644 (file)
index e628428..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-\89ï\8eÐ\8fî\95ñ
-<A HREF="">\82 </A>\82 \82 \82 \82 \82 <BR>
-
-<?php
-$a=0;
-while($a<10) {
- $a++;
-?>\82¢<?php } ?>
diff --git a/libkcc/test_filter.c b/libkcc/test_filter.c
deleted file mode 100644 (file)
index 3485ae5..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <stdio.h>
-#include "kcc.h"
-
-main ()
-{
-  FILE *fp;
-  char s[500], d[2000];
-  int i=0, c;
-
-  fp=fopen("test_file","r");
-  if (fp == NULL) {printf("not found\n"); exit;}
-
-  while ((c = fgetc(fp)) != EOF && i<490)
-  {
-    s[i] = c; i++;
-  }
-  s[i]='\0';
-
-  i = KCC_filter(d, "EUC", s, "AUTO", 0,0,0);
-  printf("code = %x\n%s\n",i,d);
-  i = KCC_filter(d, "SJIS", s, "AUTO", 0,0,0);
-  printf("code = %x\n%s\n",i,d);
-  i = KCC_filter(d, "JIS", s, "AUTO", 0,0,0);
-  printf("code = %x\n%s\n",i,d);
-}
diff --git a/libkcc/testfile b/libkcc/testfile
deleted file mode 100644 (file)
index 13e261c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-\e$B$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"\e(B
-