simon-git: agedu (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sat Jun 29 13:02:12 BST 2019
TL;DR:
1d9ff0c Add an option to use st_size instead of st_blocks.
66cb14d Adopt 'bool' throughout this code.
Repository: https://git.tartarus.org/simon/agedu.git
On the web: https://git.tartarus.org/?p=simon/agedu.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2019-06-29 13:02:12
commit 1d9ff0ccde8b98371d07106b785ea1dde81884ae
web diff https://git.tartarus.org/?p=simon/agedu.git;a=commitdiff;h=1d9ff0ccde8b98371d07106b785ea1dde81884ae;hp=80c7beb423ce1f2e4de880fcdab58b2d0df68539
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Jun 29 07:34:36 2019 +0100
Add an option to use st_size instead of st_blocks.
A user reported that at least one NAS device returns obvious lies for
st_blocks (and not in any way that can be easily corrected for, like
multiplying them by a different factor). So I add this option as a
last-ditch workaround, though I don't see any reason to recommend it
if there's any alternative.
agedu.but | 27 +++++++++++++++++++++++++++
agedu.c | 14 +++++++++++++-
2 files changed, 40 insertions(+), 1 deletion(-)
commit 66cb14d328087f724c0ce5551f4af7cac8e446e2
web diff https://git.tartarus.org/?p=simon/agedu.git;a=commitdiff;h=66cb14d328087f724c0ce5551f4af7cac8e446e2;hp=1d9ff0ccde8b98371d07106b785ea1dde81884ae
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Jun 29 12:58:23 2019 +0100
Adopt 'bool' throughout this code.
I noticed while adding a new semantically-boolean option this morning
that all the rest of them seemed to take the form of ints that are 0
or 1. I like bool these days, and I _thought_ I'd updated all my
software in line with that preference, but apparently I missed this
one.
A couple of three-valued things (include/exclude/prune, and the
options 'yes', 'no' and 'only for a terminal device' for progress
reports) have been turned into enums instead of booleans, with names
reminding me what all those magic numbers actually mean.
agedu.c | 129 +++++++++++++++++++++++++++++++----------------------------
agedu.h | 3 ++
alloc.c | 4 +-
alloc.h | 4 +-
configure.ac | 2 +-
html.c | 31 +++++++-------
html.h | 11 ++---
httpd.c | 41 ++++++++++---------
httpd.h | 2 +-
winscan.c | 17 ++++----
10 files changed, 129 insertions(+), 115 deletions(-)
More information about the tartarus-commits
mailing list