On Wednesday 16 December 2009, Carsten Breuer wrote: > If it is guarantied, that malloc exits > under linux, we can also just use > a define for that:
As I understand it, ANSI C says it returns NULL when it can't allocate memory. Anything else would be phenominally rude. For the record, I've never heard of *ANY* runtime environment where a malloc()/calloc()/... failure aborts the program. Such a panic-on-ENOMEM strategy is only appropriate for layers above malloc()/calloc(). _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development