From: Ralph Corderoy Date: Sun, 16 Oct 2016 17:49:32 +0000 (+0100) Subject: Add macro NEW0(p) that callocs, and use it in simple calls. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/81c57383273bb818858b2d7e6fdb4bbdb5df70d7?ds=inline;hp=81c57383273bb818858b2d7e6fdb4bbdb5df70d7 Add macro NEW0(p) that callocs, and use it in simple calls. 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. ---