Tweak
This commit is contained in:
parent
e5c7f525f8
commit
5bedb5dc5e
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
Makefile.musl
Normal file → Executable file
0
Makefile.musl
Normal file → Executable file
0
README.txt
Normal file → Executable file
0
README.txt
Normal file → Executable file
0
examples/functions.ss
Normal file → Executable file
0
examples/functions.ss
Normal file → Executable file
0
examples/net-listen.ss
Normal file → Executable file
0
examples/net-listen.ss
Normal file → Executable file
0
examples/net-toss.ss
Normal file → Executable file
0
examples/net-toss.ss
Normal file → Executable file
0
examples/webserver.ss
Normal file → Executable file
0
examples/webserver.ss
Normal file → Executable file
0
misc/sslogo.png
Normal file → Executable file
0
misc/sslogo.png
Normal file → Executable file
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
0
src/compression.c
Normal file → Executable file
0
src/compression.c
Normal file → Executable file
0
src/inc/compression.h
Normal file → Executable file
0
src/inc/compression.h
Normal file → Executable file
0
src/inc/config.h
Normal file → Executable file
0
src/inc/config.h
Normal file → Executable file
0
src/inc/deps.h
Normal file → Executable file
0
src/inc/deps.h
Normal file → Executable file
0
src/inc/enc.h
Normal file → Executable file
0
src/inc/enc.h
Normal file → Executable file
0
src/inc/inset.h
Normal file → Executable file
0
src/inc/inset.h
Normal file → Executable file
0
src/inc/lexer.h
Normal file → Executable file
0
src/inc/lexer.h
Normal file → Executable file
0
src/inc/math.h
Normal file → Executable file
0
src/inc/math.h
Normal file → Executable file
0
src/inc/md5.h
Normal file → Executable file
0
src/inc/md5.h
Normal file → Executable file
0
src/inc/network.h
Normal file → Executable file
0
src/inc/network.h
Normal file → Executable file
0
src/inc/pipe.h
Normal file → Executable file
0
src/inc/pipe.h
Normal file → Executable file
0
src/inc/sbyteswap.h
Normal file → Executable file
0
src/inc/sbyteswap.h
Normal file → Executable file
0
src/inc/search.h
Normal file → Executable file
0
src/inc/search.h
Normal file → Executable file
0
src/inc/tar.h
Normal file → Executable file
0
src/inc/tar.h
Normal file → Executable file
0
src/inc/util.h
Normal file → Executable file
0
src/inc/util.h
Normal file → Executable file
0
src/inc/vars.h
Normal file → Executable file
0
src/inc/vars.h
Normal file → Executable file
0
src/inset.c
Normal file → Executable file
0
src/inset.c
Normal file → Executable file
6
src/lexer.c
Normal file → Executable file
6
src/lexer.c
Normal file → Executable file
@ -530,16 +530,16 @@ char *process_line(char *line)
|
||||
sprintf(comp_size, "%s", origsize);
|
||||
|
||||
fclose(in);
|
||||
for(uint32_t i = 1; i < 11; ++i)
|
||||
for(uint32_t i = 1; i < 7; ++i)
|
||||
{
|
||||
uint32_t comp_return = ss_compress(filename, file_comp, i);
|
||||
uint32_t deco_return = ss_decompress(file_comp, filedecout);
|
||||
sprintf(retbuf, "ss: %s: compressed: %u -> %u", file_comp, deco_return, comp_return);
|
||||
if(atoi(comp_size) < (int)comp_return && comp_return != 0 && deco_return != 0 && i != 1 && (int)deco_return == atoi(origsize))
|
||||
if(atoi(comp_size) < (int)comp_return && comp_return != 0 && deco_return != 0 && i != 1)
|
||||
break;
|
||||
|
||||
sprintf(comp_size, "%u", comp_return);
|
||||
printf("pass %u decompressed/compressed: %u/%u\n", i, deco_return, comp_return);
|
||||
printf("pass %u decompressed/compressed: %u/%u\n", i, deco_return, comp_return);
|
||||
}
|
||||
|
||||
// Remove the decompressed version for sanity check
|
||||
|
0
src/main.c
Normal file → Executable file
0
src/main.c
Normal file → Executable file
0
src/math.c
Normal file → Executable file
0
src/math.c
Normal file → Executable file
0
src/network.c
Normal file → Executable file
0
src/network.c
Normal file → Executable file
0
src/pipe.c
Normal file → Executable file
0
src/pipe.c
Normal file → Executable file
0
src/search.c
Normal file → Executable file
0
src/search.c
Normal file → Executable file
2
src/tar.c
Normal file → Executable file
2
src/tar.c
Normal file → Executable file
@ -67,13 +67,11 @@ int tar_read(const int fd, struct tar_t ** archive, const char verbosity){
|
||||
RC_ERROR("Unable to seek file: %s", strerror(rc));
|
||||
}
|
||||
|
||||
/*
|
||||
if(*tar != (void *)0)
|
||||
{
|
||||
tar_free(*tar);
|
||||
*tar = (void *)0;
|
||||
}
|
||||
*/
|
||||
|
||||
break;
|
||||
}
|
||||
|
0
src/util.c
Normal file → Executable file
0
src/util.c
Normal file → Executable file
0
src/vars.c
Normal file → Executable file
0
src/vars.c
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user