Overview
Comment: | Updated to use string for minirivet parsing |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | pure-c |
Files: | files | file ages | folders |
SHA3-256: |
2d9592486f3bc02b185a75f8732bef97 |
User & Date: | rkeene on 2019-12-02 03:09:33 |
Other Links: | branch diff | manifest | tags |
Context
2019-12-03
| ||
17:59 | Made Tcl and C version of "xvfs-create" more similar by re-ordering output check-in: 36d0805e0e user: rkeene tags: pure-c | |
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 | |
Changes
Modified xvfs-create-c.c from [a3ef943f52] to [6584aa9678].
︙ | |||
324 325 326 327 328 329 330 | 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 | - + - + - - - - - - + | } else { fprintf(outfp, "@INVALID@%s@INVALID@", buffer_p); } return; } |
︙ | |||
410 411 412 413 414 415 416 | 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 | + + + + + + + + + + + + + + + + + + + + - + - - + + + + + + + + - - + + + + + + + + + + + + + + + | tcl_buffer_p++; break; } } #undef parse_xvfs_minirivet_getbyte return(1); } static int xvfs_create(FILE *outfp, const struct options * const options) { const int template_len = 65536; const char * const template_file = "lib/xvfs/xvfs.c.rvt"; FILE *fp; char *template, *template_p; int template_remain; size_t fread_ret; int retval; fp = fopen(template_file, "r"); if (!fp) { return(0); } template = malloc(template_len); template_remain = template_len; if (!template) { |
︙ |