[svn:parrot] r43325 - in branches/boehm_gc/src: . gc

mikehh at svn.parrot.org mikehh at svn.parrot.org
Wed Dec 30 17:01:02 UTC 2009


Author: mikehh
Date: Wed Dec 30 17:01:02 2009
New Revision: 43325
URL: https://trac.parrot.org/parrot/changeset/43325

Log:
fix codetest failure - Correctly indented preprocessor directives

Modified:
   branches/boehm_gc/src/gc/alloc_memory.c
   branches/boehm_gc/src/gc/gc_boehm.c
   branches/boehm_gc/src/main.c

Modified: branches/boehm_gc/src/gc/alloc_memory.c
==============================================================================
--- branches/boehm_gc/src/gc/alloc_memory.c	Wed Dec 30 16:40:15 2009	(r43324)
+++ branches/boehm_gc/src/gc/alloc_memory.c	Wed Dec 30 17:01:02 2009	(r43325)
@@ -25,11 +25,11 @@
 #include "parrot/memory.h"
 
 #ifdef PARROT_HAS_BOEHM_GC
-  #include <gc.h>
-  #define malloc GC_MALLOC_UNCOLLECTABLE
-  #define free   GC_FREE
-  #define realloc GC_REALLOC
-  #define calloc(s,n) GC_MALLOC_UNCOLLECTABLE(s*n)
+#  include <gc.h>
+#  define malloc GC_MALLOC_UNCOLLECTABLE
+#  define free   GC_FREE
+#  define realloc GC_REALLOC
+#  define calloc(s,n) GC_MALLOC_UNCOLLECTABLE(s*n)
 #endif
 
 PARROT_DOES_NOT_RETURN

Modified: branches/boehm_gc/src/gc/gc_boehm.c
==============================================================================
--- branches/boehm_gc/src/gc/gc_boehm.c	Wed Dec 30 16:40:15 2009	(r43324)
+++ branches/boehm_gc/src/gc/gc_boehm.c	Wed Dec 30 17:01:02 2009	(r43325)
@@ -19,7 +19,7 @@
 
 #ifdef PARROT_HAS_BOEHM_GC
 
-#include <gc.h>
+#  include <gc.h>
 
 /* HEADERIZER HFILE: src/gc/gc_private.h */
 
@@ -56,20 +56,20 @@
         __attribute__nonnull__(2)
         FUNC_MODIFIES(*pool);
 
-#define ASSERT_ARGS_gc_boehm_add_free_object __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+#  define ASSERT_ARGS_gc_boehm_add_free_object __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(pool) \
-    , PARROT_ASSERT_ARG(to_add))
-#define ASSERT_ARGS_gc_boehm_alloc_objects __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+     , PARROT_ASSERT_ARG(to_add))
+#  define ASSERT_ARGS_gc_boehm_alloc_objects __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(pool))
-#define ASSERT_ARGS_gc_boehm_finalize_cb __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
-#define ASSERT_ARGS_gc_boehm_get_free_object __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+#  define ASSERT_ARGS_gc_boehm_finalize_cb __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
+#  define ASSERT_ARGS_gc_boehm_get_free_object __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(interp) \
-    , PARROT_ASSERT_ARG(pool))
-#define ASSERT_ARGS_gc_boehm_mark_and_sweep __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
-#define ASSERT_ARGS_gc_boehm_more_traceable_objects \
+     , PARROT_ASSERT_ARG(pool))
+#  define ASSERT_ARGS_gc_boehm_mark_and_sweep __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
+#  define ASSERT_ARGS_gc_boehm_more_traceable_objects \
      __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(pool))
-#define ASSERT_ARGS_gc_boehm_pool_init __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+#  define ASSERT_ARGS_gc_boehm_pool_init __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(pool))
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
 /* HEADERIZER END: static */

Modified: branches/boehm_gc/src/main.c
==============================================================================
--- branches/boehm_gc/src/main.c	Wed Dec 30 16:40:15 2009	(r43324)
+++ branches/boehm_gc/src/main.c	Wed Dec 30 17:01:02 2009	(r43325)
@@ -25,7 +25,7 @@
 #include "parrot/imcc.h"
 
 #ifdef PARROR_HAS_BOEHM_GC
-  #include <gc.h>
+#  include <gc.h>
 #endif
 
 /*


More information about the parrot-commits mailing list