Annotation of OpenXM/src/kan96xx/plugin/asirconv.c, Revision 1.2
1.2 ! takayama 1: /* $OpenXM$ */
1.1 maekawa 2: #include <stdio.h>
3: #define NS (char *)NULL
4: typedef enum {start,output,setdic,cleardic} prAction;
5: char *KakPrint(prAction act,char *lw,char *rw);
6: int KasirKanlex0(prAction act);
7: void KasirKanParseAstring(char *s);
8: void KasirKanFsappendc(int c);
9:
10: #define BSIZE 100000
11: static char KakOut[BSIZE];
12:
13: char *KasirKanConvert(char *ans) {
14: char *akOut;
15: KasirKanlex0(start); /* Initialize lex() */
16: KakPrint(start,NS,NS); /* Initialize output buffer */
17: KasirKanParseAstring(ans);
18: KasirKanFsappendc(';');
19: KasirKanparse();
20: akOut = KakPrint(output,NS,NS);
21: return(akOut);
22: }
23:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>