[BACK]Return to asirconv.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

Annotation of OpenXM/src/kan96xx/plugin/asirconv.c, Revision 1.1.1.1

1.1       maekawa     1: #include <stdio.h>
                      2: #define NS (char *)NULL
                      3: typedef enum {start,output,setdic,cleardic} prAction;
                      4: char *KakPrint(prAction act,char *lw,char *rw);
                      5: int KasirKanlex0(prAction act);
                      6: void KasirKanParseAstring(char *s);
                      7: void KasirKanFsappendc(int c);
                      8:
                      9: #define BSIZE 100000
                     10: static char KakOut[BSIZE];
                     11:
                     12: char *KasirKanConvert(char *ans) {
                     13:   char *akOut;
                     14:   KasirKanlex0(start);  /* Initialize  lex() */
                     15:   KakPrint(start,NS,NS);     /* Initialize output buffer */
                     16:   KasirKanParseAstring(ans);
                     17:   KasirKanFsappendc(';');
                     18:   KasirKanparse();
                     19:   akOut = KakPrint(output,NS,NS);
                     20:   return(akOut);
                     21: }
                     22:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>