simon-git: pix (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Wed Mar 31 12:49:30 BST 2021
TL;DR:
c1d24a1 Allow flags to be specified multiple times.
f478d96 Switch to using <stdbool.h> in place of TRUE/FALSE.
4463f5b Remove physical tabs from source code.
4a0d735 Fixes to Buildscr.
Repository: https://git.tartarus.org/simon/pix.git
On the web: https://git.tartarus.org/?p=simon/pix.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2021-03-31 12:49:30
commit c1d24a1452e85810c2e52cf493ffb471e8813c34
web diff https://git.tartarus.org/?p=simon/pix.git;a=commitdiff;h=c1d24a1452e85810c2e52cf493ffb471e8813c34;hp=9a3cee0816304414f80d509b00d641086559196f
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Jan 17 09:39:03 2021 +0000
Allow flags to be specified multiple times.
bubbles.c contained a test for 'optdata.verbose > 1', which would
never actually have worked, because the flag-setting mechanism in
cmdline.c expects that all flags are idempotent, so even multiple
instances of -v would still have just set the value to 1 repeatedly.
To fix this, I've arranged that even options without arguments can
specify a 'parse' function in their 'struct Cmdline', and it will be
called just the same as an option with an argument (just passing NULL
as the argument). So now I can make -v increment 'int verbose' rather
than setting it to 1.
bubbles.c | 7 +++++--
cmdline.c | 30 +++++++++++++++++++-----------
cmdline.h | 1 +
3 files changed, 25 insertions(+), 13 deletions(-)
commit f478d969dbe226fffe775a6dac3c268993ab33b5
web diff https://git.tartarus.org/?p=simon/pix.git;a=commitdiff;h=f478d969dbe226fffe775a6dac3c268993ab33b5;hp=c1d24a1452e85810c2e52cf493ffb471e8813c34
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Mar 31 12:39:23 2021 +0100
Switch to using <stdbool.h> in place of TRUE/FALSE.
This is generally OK now that most of C99 is available even in Visual
Studio.
bmpwrite.c | 7 +++---
bubbles.c | 16 ++++++-------
cmdline.c | 79 +++++++++++++++++++++++++++++++-------------------------------
cmdline.h | 20 +++++++++-------
deflate.c | 47 +++++++++++++++++--------------------
filigram.c | 45 ++++++++++++++++++-----------------
greyblur.c | 8 +++----
lz77.c | 16 +++++++------
misc.h | 2 --
mj.c | 54 +++++++++++++++++++++---------------------
newton.c | 66 +++++++++++++++++++++++++--------------------------
tetra.c | 20 ++++++++--------
12 files changed, 191 insertions(+), 189 deletions(-)
commit 4463f5badedd44c9e7810b0a305fe3b8ec47b627
web diff https://git.tartarus.org/?p=simon/pix.git;a=commitdiff;h=4463f5badedd44c9e7810b0a305fe3b8ec47b627;hp=f478d969dbe226fffe775a6dac3c268993ab33b5
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Mar 31 12:40:21 2021 +0100
Remove physical tabs from source code.
I've done this to most of my code bases already, but this one is
enough of an outlier that I apparently hadn't got round to it.
bmpwrite.c | 140 ++--
bmpwrite.h | 2 +-
bubbles.c | 186 ++---
cmdline.c | 286 ++++----
cmdline.h | 14 +-
crc32.c | 134 ++--
deflate.c | 2188 ++++++++++++++++++++++++++++-----------------------------
deflate.h | 8 +-
filigram.c | 270 +++----
greyblur.c | 88 +--
lz77.c | 930 ++++++++++++------------
lz77.h | 4 +-
mj.c | 204 +++---
newton.c | 302 ++++----
pngout.c | 672 +++++++++---------
pngout.h | 2 +-
standalone.pl | 4 +-
tetra.c | 504 ++++++-------
18 files changed, 2969 insertions(+), 2969 deletions(-)
commit 4a0d7353e9670813c2294a10b763c2801f995de7
web diff https://git.tartarus.org/?p=simon/pix.git;a=commitdiff;h=4a0d7353e9670813c2294a10b763c2801f995de7;hp=4463f5badedd44c9e7810b0a305fe3b8ec47b627
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Mar 31 12:48:27 2021 +0100
Fixes to Buildscr.
Since I need an up-to-date cmake to cross-build for Windows, let's
actually specify it in the build script, so that I don't have to keep
remembering to set my PATH specially before running bob.
Also, my habit of doing dev builds without the slow code signing step
caused me to fail to notice that that was now looking in the wrong
directory!
Buildscr | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
More information about the tartarus-commits
mailing list