]> diplodocus.org Git - nmh/commitdiff
Add macro NEW0(p) that callocs, and use it in simple calls.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 17:49:32 +0000 (18:49 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 17:49:32 +0000 (18:49 +0100)
p is a pointer, the size of the contents of the pointer is allocated
with calloc via mh_xcalloc.  It saves having to check every calloc to
ensure the space requested matches the pointer to which it is assigned.


No differences found