[various thoughts on attribute_nonnull]
On a lark, I applied this patch:
--- parrot-current/include/parrot/compiler.h Tue Mar 11 07:19:23 2008
+++ parrot-andy/include/parrot/compiler.h Wed Mar 12 13:22:42 2008
@@ -44,7 +44,7 @@
#ifdef HASATTRIBUTE_MALLOC
# define __attribute__malloc__ __attribute__((__malloc__))
#endif
-#ifdef HASATTRIBUTE_NONNULL
+#ifdef HASATTRIBUTE_NONNULL_AND_I_REALLY_WANT_TO_USE_IT
# define __attribute__nonnull__(a) __attribute__((__nonnull__(a)))
#endif
#ifdef HASATTRIBUTE_NORETURN
and "suddenly" (for some value of suddenly that is more like an hour) 15
more tests pass.
Hmm. Perhaps some of those nonnull's don't belong there. Alas, I don't
have time to go in and hunt them all down.
--
Andy Dougherty [EMAIL PROTECTED]