]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
Introduced wrapper macros snew(), snewn() and sresize() for the
authorSimon Tatham <anakin@pobox.com>
Sat, 29 Mar 2003 16:14:26 +0000 (16:14 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 29 Mar 2003 16:14:26 +0000 (16:14 +0000)
commitd9e19703c50489903fc44977ce9946ef630dfec8
treedbed82821268415eba9e4308a0b42b16c1ffe5c7
parent6486220365e96463e3499af56bb978c3ecd1e419
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: http://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