[svn:parrot] r45117 - in trunk: include/parrot src src/gc

petdance at svn.parrot.org petdance at svn.parrot.org
Mon Mar 22 23:42:16 UTC 2010


Author: petdance
Date: Mon Mar 22 23:42:16 2010
New Revision: 45117
URL: https://trac.parrot.org/parrot/changeset/45117

Log:
adding headerizer protectors

Modified:
   trunk/include/parrot/dynext.h
   trunk/src/dynext.c
   trunk/src/gc/alloc_resources.c

Modified: trunk/include/parrot/dynext.h
==============================================================================
--- trunk/include/parrot/dynext.h	Mon Mar 22 23:41:31 2010	(r45116)
+++ trunk/include/parrot/dynext.h	Mon Mar 22 23:42:16 2010	(r45117)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2003-2007, Parrot Foundation.
+ * Copyright (C) 2003-2010, Parrot Foundation.
  */
 
 /* dynext.h
@@ -41,7 +41,7 @@
 PARROT_CANNOT_RETURN_NULL
 PMC * Parrot_load_lib(PARROT_INTERP,
     ARGIN_NULLOK(STRING *lib),
-    PMC *parameters)
+    ARGIN_NULLOK(PMC *parameters))
         __attribute__nonnull__(1);
 
 #define ASSERT_ARGS_Parrot_clone_lib_into __attribute__unused__ int _ASSERT_ARGS_CHECK = (\

Modified: trunk/src/dynext.c
==============================================================================
--- trunk/src/dynext.c	Mon Mar 22 23:41:31 2010	(r45116)
+++ trunk/src/dynext.c	Mon Mar 22 23:42:16 2010	(r45117)
@@ -641,7 +641,7 @@
 PARROT_WARN_UNUSED_RESULT
 PARROT_CANNOT_RETURN_NULL
 PMC *
-Parrot_load_lib(PARROT_INTERP, ARGIN_NULLOK(STRING *lib), PMC *parameters)
+Parrot_load_lib(PARROT_INTERP, ARGIN_NULLOK(STRING *lib), ARGIN_NULLOK(PMC *parameters))
 {
     ASSERT_ARGS(Parrot_load_lib)
     void   *handle;
@@ -695,10 +695,6 @@
 
 F<include/parrot/dynext.h> and F<src/pmc/parrotlibrary.pmc>.
 
-=head1 HISTORY
-
-Initial rev by leo 2003.08.06.
-
 =cut
 
 */

Modified: trunk/src/gc/alloc_resources.c
==============================================================================
--- trunk/src/gc/alloc_resources.c	Mon Mar 22 23:41:31 2010	(r45116)
+++ trunk/src/gc/alloc_resources.c	Mon Mar 22 23:42:16 2010	(r45117)
@@ -80,7 +80,9 @@
         __attribute__nonnull__(2)
         FUNC_MODIFIES(*dest_interp);
 
-static void free_memory_pool(Variable_Size_Pool *pool);
+static void free_memory_pool(ARGIN(Variable_Size_Pool *pool))
+        __attribute__nonnull__(1);
+
 static void free_pool(ARGMOD(Fixed_Size_Pool *pool))
         __attribute__nonnull__(1)
         FUNC_MODIFIES(*pool);
@@ -144,7 +146,8 @@
 #define ASSERT_ARGS_fix_pmc_syncs __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(dest_interp) \
     , PARROT_ASSERT_ARG(pool))
-#define ASSERT_ARGS_free_memory_pool __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
+#define ASSERT_ARGS_free_memory_pool __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+       PARROT_ASSERT_ARG(pool))
 #define ASSERT_ARGS_free_pool __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(pool))
 #define ASSERT_ARGS_new_memory_pool __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
@@ -1151,7 +1154,7 @@
 */
 
 static void
-free_memory_pool(Variable_Size_Pool *pool)
+free_memory_pool(ARGIN(Variable_Size_Pool *pool))
 {
     ASSERT_ARGS(free_memory_pool)
 


More information about the parrot-commits mailing list