[svn:parrot] r38194 - trunk/src

cotto at svn.parrot.org cotto at svn.parrot.org
Sat Apr 18 09:09:55 UTC 2009


Author: cotto
Date: Sat Apr 18 09:09:53 2009
New Revision: 38194
URL: https://trac.parrot.org/parrot/changeset/38194

Log:
[exec] whitespace and OpenBSD fix, patch courtesy of he++

Modified:
   trunk/src/exec_save.c

Modified: trunk/src/exec_save.c
==============================================================================
--- trunk/src/exec_save.c	Sat Apr 18 09:04:23 2009	(r38193)
+++ trunk/src/exec_save.c	Sat Apr 18 09:09:53 2009	(r38194)
@@ -31,23 +31,23 @@
 static void save_struct(FILE *fp, void *sp, size_t size);
 
 #if defined(PARROT_PPC)
-#if !defined(R_PPC_ADDR16_HI) && !defined(R_PPC_ADDR16_LO) && \
-	defined(R_PPC_16_HI) && defined(R_PPC_16_LO)
-# define	R_PPC_ADDR16_HI	R_PPC_16_HI
-# define	R_PPC_ADDR16_LO	R_PPC_16_LO
-#endif
-/*
- * NetBSD/powerpc 3.x doesn't define these constants,
- * but instead has them as enums, so add some workarounds for it.
- */
-#if !defined(R_PPC_ADDR16_HI) && !defined(R_PPC_ADDR16_LO) && \
-	(defined(__NetBSD__) || defined(__OpenBSD__))
-# define	R_PPC_ADDR16_HI RELOC_16_HI
-# define	R_PPC_ADDR16_LO RELOC_16_LO
-#endif
-#if !defined(R_PPC_REL24) && defined(__NetBSD__)
-# define	R_PPC_REL24	RELOC_REL24
-#endif
+#  if !defined(R_PPC_ADDR16_HI) && !defined(R_PPC_ADDR16_LO) && \
+       defined(R_PPC_16_HI) && defined(R_PPC_16_LO)
+#    define	R_PPC_ADDR16_HI	R_PPC_16_HI
+#    define	R_PPC_ADDR16_LO	R_PPC_16_LO
+#  endif
+   /*
+    * NetBSD/powerpc 3.x and OpenBSD/powerpc doesn't define these constants,
+    * but instead has them as enums, so add some workarounds for those.
+    */
+#  if !defined(R_PPC_ADDR16_HI) && !defined(R_PPC_ADDR16_LO) && \
+       (defined(__NetBSD__) || defined(__OpenBSD__))
+#    define	R_PPC_ADDR16_HI RELOC_16_HI
+#    define	R_PPC_ADDR16_LO RELOC_16_LO
+#  endif
+#  if !defined(R_PPC_REL24) && (defined(__NetBSD__) || defined(__OpenBSD__))
+#    define	R_PPC_REL24	RELOC_REL24
+#  endif
 #endif /* PARROT_PPC */
 
 #ifdef EXEC_A_OUT


More information about the parrot-commits mailing list