Line 270... |
Line 270... |
270 |
unsigned short linelen;
|
270 |
unsigned short linelen;
|
271 |
FILE *fd;
|
271 |
FILE *fd;
|
272 |
char fname[] = "xx.txt";
|
272 |
char fname[] = "xx.txt";
|
273 |
static char linebuf[8192];
|
273 |
static char linebuf[8192];
|
274 |
const char *ptr;
|
274 |
const char *ptr;
|
275 |
unsigned short id, maxid=0, maxid_line, linecount;
|
275 |
unsigned short id, maxid=0, maxid_line=0, linecount;
|
276 |
int i;
|
276 |
int i;
|
277 |
|
277 |
|
278 |
fname[strlen(fname) - 6] = (char)tolower( l->id[0] );
|
278 |
fname[strlen(fname) - 6] = (char)tolower( l->id[0] );
|
279 |
fname[strlen(fname) - 5] = (char)tolower( l->id[1] );
|
279 |
fname[strlen(fname) - 5] = (char)tolower( l->id[1] );
|
280 |
|
280 |
|
Line 527... |
Line 527... |
527 |
if (compflag) {
|
527 |
if (compflag) {
|
528 |
static char compstrings[65000];
|
528 |
static char compstrings[65000];
|
529 |
unsigned short comp_bytes;
|
529 |
unsigned short comp_bytes;
|
530 |
size_t stringslen = strings_bytes;
|
530 |
size_t stringslen = strings_bytes;
|
531 |
unsigned short mvcompbytesahead;
|
531 |
unsigned short mvcompbytesahead;
|
532 |
comp_bytes = mvcomp(compstrings, sizeof(compstrings), l->strings, &stringslen, &mvcompbytesahead);
|
532 |
comp_bytes = mvcomp(compstrings, sizeof(compstrings), (const unsigned char *)(l->strings), &stringslen, &mvcompbytesahead);
|
533 |
if (mvcompbytesahead + stringslen > *buffrequired) {
|
533 |
if (mvcompbytesahead + stringslen > *buffrequired) {
|
534 |
*buffrequired = mvcompbytesahead + stringslen;
|
534 |
*buffrequired = mvcompbytesahead + stringslen;
|
535 |
}
|
535 |
}
|
536 |
if (comp_bytes < strings_bytes) {
|
536 |
if (comp_bytes < strings_bytes) {
|
537 |
printf("lang %c%c mvcomp-ressed (%u bytes -> %u bytes) mvcomp stream at most %u bytes ahead of raw data (%u bytes needed for in-place decomp)\n", l->id[0], l->id[1], strings_bytes, comp_bytes, mvcompbytesahead, strings_bytes + mvcompbytesahead);
|
537 |
printf("lang %c%c mvcomp-ressed (%u bytes -> %u bytes) mvcomp stream at most %u bytes ahead of raw data (%u bytes needed for in-place decomp)\n", l->id[0], l->id[1], strings_bytes, comp_bytes, mvcompbytesahead, strings_bytes + mvcompbytesahead);
|