Rename to Sj4
This commit is contained in:
parent
0184e70f04
commit
0a2839610b
121 changed files with 1471 additions and 1461 deletions
|
|
@ -1,36 +0,0 @@
|
|||
#include <sj_kanakan.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
char out[64 * 1024];
|
||||
int i = 0;
|
||||
char c[64 * 1024];
|
||||
char b;
|
||||
Sj3Context* ctx = alloccontext("dic.bin");
|
||||
|
||||
c[0] = 0;
|
||||
|
||||
while(fread(&b, 1, 1, stdin) == 1) {
|
||||
if(b == '\n') {
|
||||
} else if(b != '\r') {
|
||||
int l = strlen(c);
|
||||
|
||||
c[l] = b;
|
||||
c[l + 1] = 0;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
i = 0;
|
||||
while((strlen(c) - i) > 0 && (i += cl2knj(ctx, (u_char*)c + i, strlen(c) - i, (u_char*)out))) {
|
||||
STDYOUT* s = (STDYOUT*)out;
|
||||
|
||||
printf("> %s\n", out + sizeof(STDYOUT));
|
||||
}
|
||||
|
||||
c[0] = 0;
|
||||
}
|
||||
|
||||
free_context(ctx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue