Overview
| Comment: | More cleanup |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | pure-c |
| Files: | files | file ages | folders |
| SHA3-256: |
1d38520446cc30a56a94aabea90ac23a |
| User & Date: | rkeene on 2019-12-02 02:50:23.307 |
| Other Links: | branch diff | manifest | tags |
Context
|
2019-12-02
| ||
| 02:53 | Silence a warning check-in: 9f07de5ec5 user: rkeene tags: pure-c | |
| 02:50 | More cleanup check-in: 1d38520446 user: rkeene tags: pure-c | |
| 02:47 | Cleanup check-in: c69f6f1b5a user: rkeene tags: pure-c | |
Changes
Modified xvfs-create-c.c
from [68ba595bfe]
to [f66bbd266a].
| ︙ | ︙ | |||
236 237 238 239 240 241 242 |
*/
for (idx1 = 0; idx1 < bucket_count; idx1++) {
fprintf(outfp, "\tstatic const long pathIndex_hashTable_%i[] = {\n", idx1);
fprintf(outfp, "\t\t");
first_entry = 1;
for (idx2 = 0; idx2 < xvfs_state->child_count; idx2++) {
| | | 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
*/
for (idx1 = 0; idx1 < bucket_count; idx1++) {
fprintf(outfp, "\tstatic const long pathIndex_hashTable_%i[] = {\n", idx1);
fprintf(outfp, "\t\t");
first_entry = 1;
for (idx2 = 0; idx2 < xvfs_state->child_count; idx2++) {
check_hash = adler32(0, (unsigned char *) xvfs_state->children[idx2], strlen(xvfs_state->children[idx2])) % bucket_count;
if (check_hash != idx1) {
continue;
}
if (!first_entry) {
fprintf(outfp, ", ");
}
|
| ︙ | ︙ | |||
408 409 410 411 412 413 414 415 416 417 418 419 420 421 |
*tcl_buffer_p = ch;
tcl_buffer_p++;
break;
}
}
#undef parse_xvfs_minirivet_getbyte
return(1);
}
static int xvfs_create(FILE *outfp, const struct options * const options) {
return(parse_xvfs_minirivet(outfp, "lib/xvfs/xvfs.c.rvt", options));
}
| > > | 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
*tcl_buffer_p = ch;
tcl_buffer_p++;
break;
}
}
#undef parse_xvfs_minirivet_getbyte
fclose(fp);
return(1);
}
static int xvfs_create(FILE *outfp, const struct options * const options) {
return(parse_xvfs_minirivet(outfp, "lib/xvfs/xvfs.c.rvt", options));
}
|
| ︙ | ︙ |