]> Dogcows Code - chaz/tar/commit
tar: improve quality of diagnostics with incrementals
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Jan 2013 16:41:32 +0000 (08:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Jan 2013 16:42:06 +0000 (08:42 -0800)
commit9cf743abf8667ae07077ceb32fad9a94268a5a93
treef7cba4ab8a36310fdb2bed8c753dd5014197a1cb
parent2f6c03cba298eaa46a6e18500c0ab17d35a00a23
tar: improve quality of diagnostics with incrementals

Inspired by a prototype by Nathan Stratton Treadway in
<http://lists.gnu.org/archive/html/bug-tar/2013-01/msg00000.html>.
* src/incremen.c (read_num): Rewrite by merging read_negative_num
and read_unsigned_num.  Use strtosysint rather than rolling this
stuff ourselves.  Change return type to bool.  All uses changed.
(read_negative_num, read_unsigned_num): Remove.
(read_num, read_timespec, read_incr_db_2): Improve quality of
diagnostics, e.g., by supplying byte offset of error.
src/incremen.c
This page took 0.020514 seconds and 4 git commands to generate.