diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-10-20 10:28:50 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-10-20 10:28:50 +0000 |
commit | d14c20c9747073d2752af20cb5f5c55725fe3db1 (patch) | |
tree | d10406cf5b4562fe2f313adef7af5a03fdd63de4 /xdelta3/xdelta3-main.h | |
parent | cfdf9bf3be42b455a77d72cc58bcdfca76b7a889 (diff) |
working on inline functions
Diffstat (limited to 'xdelta3/xdelta3-main.h')
-rw-r--r-- | xdelta3/xdelta3-main.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h index c02be63..7f75c98 100644 --- a/xdelta3/xdelta3-main.h +++ b/xdelta3/xdelta3-main.h | |||
@@ -1370,11 +1370,11 @@ static char* ext_tmpfile = NULL; | |||
1370 | 1370 | ||
1371 | /* Like write(), but makes repeated calls to empty the buffer. */ | 1371 | /* Like write(), but makes repeated calls to empty the buffer. */ |
1372 | static int | 1372 | static int |
1373 | main_pipe_write (int outfd, const uint8_t *exist_buf, usize_t remain) | 1373 | main_pipe_write (int outfd, uint8_t *exist_buf, usize_t remain) |
1374 | { | 1374 | { |
1375 | int ret; | 1375 | int ret; |
1376 | 1376 | ||
1377 | if ((ret = xd3_posix_io (outfd, (uint8_t*) exist_buf, remain, (xd3_posix_func*) &write, NULL))) | 1377 | if ((ret = xd3_posix_io (outfd, exist_buf, remain, (xd3_posix_func*) &write, NULL))) |
1378 | { | 1378 | { |
1379 | XPR(NT "pipe write failed: %s", xd3_mainerror (ret)); | 1379 | XPR(NT "pipe write failed: %s", xd3_mainerror (ret)); |
1380 | return ret; | 1380 | return ret; |
@@ -3420,10 +3420,13 @@ main (int argc, char **argv) | |||
3420 | static int | 3420 | static int |
3421 | main_help (void) | 3421 | main_help (void) |
3422 | { | 3422 | { |
3423 | /* TODO: license info */ | 3423 | /* $Format: " DP(RINT \"Xdelta version $Xdelta3Version$, Copyright (C) 2007, Joshua MacDonald\n\");" $ */ |
3424 | |||
3425 | DP(RINT "Xdelta comes with ABSOLUTELY NO WARRANTY.\n"); | ||
3426 | DP(RINT "This is free software, and you are welcome to redistribute it\n"); | ||
3427 | DP(RINT "under certain conditions; see \"COPYING\" for details.\n"); | ||
3424 | 3428 | ||
3425 | /* Note: update wiki when command-line features change */ | 3429 | /* Note: update wiki when command-line features change */ |
3426 | main_version (); | ||
3427 | DP(RINT "usage: xdelta3 [command/options] [input [output]]\n"); | 3430 | DP(RINT "usage: xdelta3 [command/options] [input [output]]\n"); |
3428 | DP(RINT "special command names:\n"); | 3431 | DP(RINT "special command names:\n"); |
3429 | DP(RINT " config prints xdelta3 configuration\n"); | 3432 | DP(RINT " config prints xdelta3 configuration\n"); |
@@ -3465,13 +3468,8 @@ main_help (void) | |||
3465 | DP(RINT " -n disable checksum (encode/decode)\n"); | 3468 | DP(RINT " -n disable checksum (encode/decode)\n"); |
3466 | DP(RINT " -C soft config (encode, undocumented)\n"); | 3469 | DP(RINT " -C soft config (encode, undocumented)\n"); |
3467 | DP(RINT " -A [apphead] disable/provide application header (encode)\n"); | 3470 | DP(RINT " -A [apphead] disable/provide application header (encode)\n"); |
3468 | |||
3469 | #if XD3_DEBUG > 0 | ||
3470 | DP(RINT "developer options:\n"); | ||
3471 | DP(RINT " -J disable output (check/compute only)\n"); | 3471 | DP(RINT " -J disable output (check/compute only)\n"); |
3472 | DP(RINT " -P repeat count (for profiling)\n"); | 3472 | DP(RINT " -T use alternate code table (test)\n"); |
3473 | DP(RINT " -T use alternate code table\n"); | ||
3474 | #endif | ||
3475 | 3473 | ||
3476 | DP(RINT "the XDELTA environment variable may contain extra args:\n"); | 3474 | DP(RINT "the XDELTA environment variable may contain extra args:\n"); |
3477 | DP(RINT " XDELTA=\"-s source-x.y.tar.gz\" \\\n"); | 3475 | DP(RINT " XDELTA=\"-s source-x.y.tar.gz\" \\\n"); |
@@ -3479,4 +3477,3 @@ main_help (void) | |||
3479 | DP(RINT " -cf target-x.z.tar.gz.vcdiff target-x.y/\n"); | 3477 | DP(RINT " -cf target-x.z.tar.gz.vcdiff target-x.y/\n"); |
3480 | return EXIT_FAILURE; | 3478 | return EXIT_FAILURE; |
3481 | } | 3479 | } |
3482 | |||