Switch the memory allocation macros from the Halibut ones
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 12 Jun 2004 20:31:03 +0000 (20:31 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 12 Jun 2004 20:31:03 +0000 (20:31 +0000)
commitf15300499bce37cd28ea2ace0f2bd1c364fc835e
treea63736705d266151d83db95216afd7bf023ff4ac
parent78c730856d459899f1ea8134c9f5415f586503ba
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.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@4276 cda61777-01e9-0310-a592-d414129be87e
18 files changed:
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