Introduced wrapper macros snew(), snewn() and sresize() for the
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 29 Mar 2003 16:14:26 +0000 (16:14 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 29 Mar 2003 16:14:26 +0000 (16:14 +0000)
commit3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c
treedbed82821268415eba9e4308a0b42b16c1ffe5c7
parent5a8afc787bcaafabd3aee68b6dac341962801b57
Introduced wrapper macros snew(), snewn() and sresize() for the
malloc functions, which automatically cast to the same type they're
allocating the size of. Should prevent any future errors involving
mallocing the size of the wrong structure type, and will also make
life easier if we ever need to turn the PuTTY core code from real C
into C++-friendly C. I haven't touched the Mac frontend in this
checkin because I couldn't compile or test it.

git-svn-id: svn://svn.tartarus.org/sgt/putty@3014 cda61777-01e9-0310-a592-d414129be87e
60 files changed:
cmdline.c
config.c
dialog.c
import.c
ldisc.c
ldiscucs.c
logging.c
misc.c
pageant.c
pageantc.c
plink.c
portfwd.c
printing.c
proxy.c
psftp.c
puttygen.c
puttymem.h
raw.c
rlogin.c
scp.c
settings.c
sftp.c
sizetip.c
ssh.c
sshaes.c
sshblowf.c
sshbn.c
sshcrcda.c
sshdes.c
sshdh.c
sshdss.c
sshmd5.c
sshpubk.c
sshrand.c
sshrsa.c
sshsha.c
sshzlib.c
telnet.c
terminal.c
terminal.h
testback.c
tree234.c
unicode.c
unix/gtkdlg.c
unix/pterm.c
unix/pty.c
unix/ux_x11.c
unix/uxagentc.c
unix/uxnet.c
unix/uxplink.c
unix/uxprint.c
unix/uxstore.c
wincfg.c
winctrls.c
windlg.c
window.c
winnet.c
winstore.c
winutils.c
x11fwd.c