]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - misc.c
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)
commitd36a4c3685f17057ba2c80ac471c1284b615469f
treedbed82821268415eba9e4308a0b42b16c1ffe5c7
parent70729da988f92063a82dfbd04c8a960095af829c
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.

[originally from svn r3014]
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