simon-git: halibut (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Wed Nov 14 20:25:45 GMT 2018
TL;DR:
e8e1f58 Fix misplaced parens in bk_whlp.c.
b68e7f0 Update to the latest libcharset.
7379518 Switch TRUE/FALSE to C99 true/false.
93f612a Adopt C99 bool wherever it's sensible.
Repository: https://git.tartarus.org/simon/halibut.git
On the web: https://git.tartarus.org/?p=simon/halibut.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2018-11-14 20:25:45
commit e8e1f58fbf02b347ff18661cd34bdbcd81a4986f
web diff https://git.tartarus.org/?p=simon/halibut.git;a=commitdiff;h=e8e1f58fbf02b347ff18661cd34bdbcd81a4986f;hp=140d8f13ad91b246a05e033ceeb305d586681fe7
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Nov 14 20:18:21 2018 +0000
Fix misplaced parens in bk_whlp.c.
To compare a character case-insensitively with 'h', you have to write
tolower(c) != 'h', not tolower(c != 'h'). Ahem. That would have caused
an uppercase .HLP extension in the configuration not to be recognised
as valid, and Halibut would have put an extra .hlp on the end just in
case.
bk_whlp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit b68e7f09ba893279f2fc96ffc801ef58c30a9aca
web diff https://git.tartarus.org/?p=simon/halibut.git;a=commitdiff;h=b68e7f09ba893279f2fc96ffc801ef58c30a9aca;hp=e8e1f58fbf02b347ff18661cd34bdbcd81a4986f
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Nov 14 06:56:39 2018 +0000
Update to the latest libcharset.
This involves changing from int to bool all the 'err' variables that
are used to catch conversion errors reported by charset_from_unicode.
bk_html.c | 3 ++-
bk_man.c | 5 +++--
charset | 2 +-
ustring.c | 15 +++++++++------
wcwidth.c | 4 ++--
5 files changed, 17 insertions(+), 12 deletions(-)
commit 7379518a0cf958532b14708d4c5274fec42fcc29
web diff https://git.tartarus.org/?p=simon/halibut.git;a=commitdiff;h=7379518a0cf958532b14708d4c5274fec42fcc29;hp=b68e7f09ba893279f2fc96ffc801ef58c30a9aca
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Nov 14 06:58:03 2018 +0000
Switch TRUE/FALSE to C99 true/false.
This commit removes the #defines in halibut.h, replacing them with an
include of stdbool.h, and converts every spelling in the code.
biblio.c | 2 +-
bk_html.c | 86 +++++++++++++++++++++++++++---------------------------
bk_info.c | 34 +++++++++++-----------
bk_man.c | 40 ++++++++++++-------------
bk_paper.c | 26 ++++++++---------
bk_pdf.c | 8 ++---
bk_text.c | 16 +++++-----
bk_whlp.c | 22 +++++++-------
contents.c | 6 ++--
deflate.c | 38 ++++++++++++------------
halibut.h | 8 +----
in_afm.c | 4 +--
in_sfnt.c | 4 +--
input.c | 98 +++++++++++++++++++++++++++++++-------------------------------
keywords.c | 4 +--
lz77.h | 2 +-
lzx.c | 6 ++--
main.c | 32 ++++++++++----------
psdata.c | 4 +--
tree234.h | 4 +--
ustring.c | 18 ++++++------
21 files changed, 228 insertions(+), 234 deletions(-)
commit 93f612a919cc3b1cec8bdddf847df1a33a6dc22a
web diff https://git.tartarus.org/?p=simon/halibut.git;a=commitdiff;h=93f612a919cc3b1cec8bdddf847df1a33a6dc22a;hp=7379518a0cf958532b14708d4c5274fec42fcc29
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Nov 14 20:20:14 2018 +0000
Adopt C99 bool wherever it's sensible.
Like most of my other projects that predate C99 being available, this
code base still had the old-fashioned habit of using 'int' variables
for booleans and just promising to put 0 or 1 in them. Now I'm using
proper bools all over the place.
bk_html.c | 46 ++++++++++++++++++++++++----------------------
bk_info.c | 17 +++++++++--------
bk_man.c | 28 ++++++++++++++--------------
bk_paper.c | 25 ++++++++++++++-----------
bk_pdf.c | 8 ++++----
bk_text.c | 6 +++---
bk_whlp.c | 6 +++---
contents.c | 10 +++++-----
deflate.c | 20 +++++++++++---------
halibut.h | 22 +++++++++++++---------
in_afm.c | 2 +-
in_pf.c | 6 +++---
in_sfnt.c | 4 ++--
index.c | 6 +++---
input.c | 40 ++++++++++++++++++++++------------------
keywords.c | 2 +-
lz77.c | 2 +-
lz77.h | 2 +-
lzx.c | 2 +-
main.c | 23 ++++++++++++-----------
misc.c | 2 +-
paper.h | 2 +-
psdata.c | 2 +-
tree234.c | 4 ++--
tree234.h | 4 +++-
ustring.c | 12 ++++++------
wcwidth.c | 8 ++++----
winhelp.c | 2 +-
28 files changed, 166 insertions(+), 147 deletions(-)
More information about the tartarus-commits
mailing list