
Originally Posted by
Skymmer
Impressive! Thanks Jan
moisesmcardona, also thanks to you for static compile!
But sad news is that I probably found an issue. For some reasons PAQ8pxPre refuse to process one test file with lenght of
4 244 176 896 bytes. Some other smaller files are accepted but not this one.
Can anybody confirm it ?
I think there is some file size limit in all paq versions (2^31 = 2 GB).
See code below.
Code:
// Same as expand() except fname is an ordinary file
int putsize(String& archive, String& s, const char* fname, int base) {
int result=0;
FILE *f=fopen(fname, "rb");
if (f) {
fseek(f, 0, SEEK_END);
long len=ftell(f);
if (len>=0) {
static char blk[24];
sprintf(blk, "%ld\t", len);
archive+=blk;
archive+=(fname+base);
archive+="\r\n";
s+=fname;
s+="\n";
++result;
}
fclose(f);
}
return result;
}