Overview
Comment: | Silence a warning |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | pure-c |
Files: | files | file ages | folders |
SHA3-256: |
9f07de5ec5862778e1b71fdb27931181 |
User & Date: | rkeene on 2019-12-02 02:53:34 |
Other Links: | branch diff | manifest | tags |
Context
2019-12-02
| ||
03:09 | Updated to use string for minirivet parsing check-in: 2d9592486f user: rkeene tags: pure-c | |
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 | |
Changes
Modified xvfs-create-c.c from [f66bbd266a] to [a3ef943f52].
︙ | ︙ | |||
343 344 345 346 347 348 349 350 351 352 353 354 355 356 | xvfs_state.child_count = 0; xvfs_state.child_len = 65536; xvfs_state.children = malloc(sizeof(*xvfs_state.children) * xvfs_state.child_len); #define parse_xvfs_minirivet_getbyte(var) var = fgetc(fp); if (var == EOF) { break; } mode = XVFS_MINIRIVET_MODE_COPY; while (1) { parse_xvfs_minirivet_getbyte(ch); switch (mode) { case XVFS_MINIRIVET_MODE_COPY: if (ch == '<') { parse_xvfs_minirivet_getbyte(ch_buf); | > | 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 | xvfs_state.child_count = 0; xvfs_state.child_len = 65536; xvfs_state.children = malloc(sizeof(*xvfs_state.children) * xvfs_state.child_len); #define parse_xvfs_minirivet_getbyte(var) var = fgetc(fp); if (var == EOF) { break; } mode = XVFS_MINIRIVET_MODE_COPY; tcl_buffer_p = NULL; while (1) { parse_xvfs_minirivet_getbyte(ch); switch (mode) { case XVFS_MINIRIVET_MODE_COPY: if (ch == '<') { parse_xvfs_minirivet_getbyte(ch_buf); |
︙ | ︙ |
Modified xvfs-create-synthetic from [48aa2ff0d9] to [d0aa4cbe5c].
︙ | ︙ | |||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 | fileContents "abc" } dict set ::myOwnVFS "xvfs-create-synthetic" { type file } proc ::xvfs::callback::addOutputFiles {fsName} { dict for {outputName fileContentsDict} $::myOwnVFS { set inputFile $outputName if {[dict exists $fileContentsDict inputFile]} { set inputFile [dict get $fileContentsDict inputFile] } ::xvfs::processFile $fsName $inputFile $outputName $fileContentsDict } | > > > > > > > > | > > | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | fileContents "abc" } dict set ::myOwnVFS "xvfs-create-synthetic" { type file } proc ::xvfs::callback::addOutputFiles {fsName} { for {set i 0} {$i < 100000} {incr i} { set filename [expr rand()] ::xvfs::processFile $fsName "" $filename [dict create type file fileContents [expr rand()]] lappend retval $filename } dict set ::myOwnVFS "" children [list foo xvfs-create-synthetic {*}$retval] dict for {outputName fileContentsDict} $::myOwnVFS { set inputFile $outputName if {[dict exists $fileContentsDict inputFile]} { set inputFile [dict get $fileContentsDict inputFile] } ::xvfs::processFile $fsName $inputFile $outputName $fileContentsDict } lappend retval {*}[dict keys $::myOwnVFS] return $retval } ::xvfs::run --directory [pwd] --name synthetic |
Modified xvfs-test-phf from [97db11b922] to [c605598e4e].
︙ | ︙ | |||
14 15 16 17 18 19 20 | lappend list $i } for {set idx 0} {$idx < [llength $list]} {incr idx} { set subList [lrange $list 0 $idx] puts "$idx ($subList):" puts [time { | | | 14 15 16 17 18 19 20 21 22 23 24 25 | lappend list $i } for {set idx 0} {$idx < [llength $list]} {incr idx} { set subList [lrange $list 0 $idx] puts "$idx ($subList):" puts [time { puts [::xvfs::generatePerfectHashFunctionCall pathName strlen(pathName) -1 $subList useCacheFirst true] } 1] puts "" } |