Tartarus CVS: halibut: simon
tartarus-commits@lists.tartarus.org
tartarus-commits@lists.tartarus.org
Sat, 12 Jun 2004 21:31:05 +0100
CVS Root: /home/cvs
Module: halibut
Changes by: simon
Date: Sat Jun 12 2004 21:31:05 BST
Log message:
Switch the memory allocation macros from the Halibut ones
(mknew/mknewa/resize) to the PuTTY ones (snew/snewn/sresize). snewn
and mknewa have their arguments opposite ways round; this may make
the change initially painful but in the long term will free me of a
nasty context switch every time I move between codebases. Also
sresize takes an explicit type operand which is used to cast the
return value from realloc, thus enforcing that it must be correct,
and arranging that if anyone tries to compile Halibut with a C++
compiler there should be a lot less pain.
Modified files:
. : bk_html.c bk_info.c bk_man.c bk_paper.c bk_pdf.c
bk_text.c bk_whlp.c contents.c halibut.h index.c
input.c keywords.c main.c malloc.c misc.c
tree234.c ustring.c winhelp.c
Links:
http://cvs.tartarus.org//halibut/bk_html.c.diff?r1=1.1&r2=1.2
http://cvs.tartarus.org//halibut/bk_info.c.diff?r1=1.12&r2=1.13
http://cvs.tartarus.org//halibut/bk_man.c.diff?r1=1.15&r2=1.16
http://cvs.tartarus.org//halibut/bk_paper.c.diff?r1=1.27&r2=1.28
http://cvs.tartarus.org//halibut/bk_pdf.c.diff?r1=1.12&r2=1.13
http://cvs.tartarus.org//halibut/bk_text.c.diff?r1=1.31&r2=1.32
http://cvs.tartarus.org//halibut/bk_whlp.c.diff?r1=1.30&r2=1.31
http://cvs.tartarus.org//halibut/contents.c.diff?r1=1.11&r2=1.12
http://cvs.tartarus.org//halibut/halibut.h.diff?r1=1.28&r2=1.29
http://cvs.tartarus.org//halibut/index.c.diff?r1=1.15&r2=1.16
http://cvs.tartarus.org//halibut/input.c.diff?r1=1.42&r2=1.43
http://cvs.tartarus.org//halibut/keywords.c.diff?r1=1.14&r2=1.15
http://cvs.tartarus.org//halibut/main.c.diff?r1=1.32&r2=1.33
http://cvs.tartarus.org//halibut/malloc.c.diff?r1=1.7&r2=1.8
http://cvs.tartarus.org//halibut/misc.c.diff?r1=1.20&r2=1.21
http://cvs.tartarus.org//halibut/tree234.c.diff?r1=1.1&r2=1.2
http://cvs.tartarus.org//halibut/ustring.c.diff?r1=1.20&r2=1.21
http://cvs.tartarus.org//halibut/winhelp.c.diff?r1=1.12&r2=1.13