I would like a comment on this:
#define CREATE(result, type, number) do {\
if (!((result) = (type *) calloc ((number), sizeof(type))))\
{ perror("malloc failure"); abort(); } } while(0)
Is < do {} while (0) > necessary?
#define CREATE(result, type, number) {\
if (!((result) = (type *) calloc ((number), sizeof(type))))\
{ perror("malloc failure"); abort(); } }
Couldn't that be done this way? I tryed it and it works without it, so I am
interested why it is there :)
...
--
*----------------------------------------*
| E-Mail address : madmax@fly.cc.fer.hr |
*----------------------------------------*
.... Kad si sretan lupi sysopom o pod...tup...tup...
This archive was generated by hypermail 2b30 : 12/18/00 PST