1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-10 13:40:26 +08:00

chore: optimize statements

This commit is contained in:
源文雨
2024-04-06 14:38:04 +09:00
parent 5219ed7f26
commit 3704467871
6 changed files with 23 additions and 33 deletions

View File

@@ -82,4 +82,14 @@
return 1; \
}
#define init_input_file() \
for(i = 0; i < BASE16384_ENCBUFSZ; i += sizeof(int)) { \
*(int*)(&encbuf[i]) = rand(); \
} \
fp = fopen(TEST_INPUT_FILENAME, "wb"); \
ok(!fp, "fopen"); \
ok(fwrite(encbuf, BASE16384_ENCBUFSZ, 1, fp) != 1, "fwrite"); \
ok(fclose(fp), "fclose"); \
fputs("input file created.\n", stderr);
#endif