Author: paultcochrane
Date: Tue May 8 10:05:44 2007
New Revision: 18469
Modified:
trunk/src/exec_save.h
trunk/src/interp_guts.h
trunk/src/jit/alpha/jit_emit.h
trunk/src/jit/arm/exec_dep.h
trunk/src/jit/arm/jit_emit.h
trunk/src/jit/i386/exec_dep.h
trunk/src/jit/i386/jit_emit.h
trunk/src/jit/ia64/jit_emit.h
trunk/src/jit/mips/jit_emit.h
trunk/src/jit/ppc/exec_dep.h
trunk/src/jit/ppc/jit_emit.h
trunk/src/jit/skeleton/jit_emit.h
trunk/src/jit/sun4/jit_emit.h
trunk/src/pmc/classobject.h
trunk/src/trace.h
Log:
[src] Added guards to header files. Patch courtesy of Mark Glines <mark at
glines dot org>.
Modified: trunk/src/exec_save.h
==============================================================================
--- trunk/src/exec_save.h (original)
+++ trunk/src/exec_save.h Tue May 8 10:05:44 2007
@@ -12,7 +12,7 @@
*/
#ifndef PARROT_EXEC_SAVE_H_GUARD
-# define PARROT_EXEC_SAVE_H_GUARD
+#define PARROT_EXEC_SAVE_H_GUARD
void Parrot_exec_save(Parrot_exec_objfile_t *obj, const char *file);
Modified: trunk/src/interp_guts.h
==============================================================================
--- trunk/src/interp_guts.h (original)
+++ trunk/src/interp_guts.h Tue May 8 10:05:44 2007
@@ -3,7 +3,7 @@
*/
#ifndef PARROT_INTERP_GUTS_H_GUARD
-# define PARROT_INTERP_GUTS_H_GUARD
+#define PARROT_INTERP_GUTS_H_GUARD
# define DO_OP(PC,INTERP) (PC = ((INTERP->op_func_table)[*PC])(PC,INTERP))
Modified: trunk/src/jit/alpha/jit_emit.h
==============================================================================
--- trunk/src/jit/alpha/jit_emit.h (original)
+++ trunk/src/jit/alpha/jit_emit.h Tue May 8 10:05:44 2007
@@ -34,7 +34,7 @@
*/
#ifndef PARROT_ALPHA_JIT_EMIT_H_GUARD
-# define PARROT_ALPHA_JIT_EMIT_H_GUARD
+#define PARROT_ALPHA_JIT_EMIT_H_GUARD
typedef enum {
REG0_v0,
Modified: trunk/src/jit/arm/exec_dep.h
==============================================================================
--- trunk/src/jit/arm/exec_dep.h (original)
+++ trunk/src/jit/arm/exec_dep.h Tue May 8 10:05:44 2007
@@ -12,7 +12,7 @@
*/
#ifndef PARROT_ARM_EXEC_DEP_H_GUARD
-# define PARROT_ARM_EXEC_DEP_H_GUARD
+#define PARROT_ARM_EXEC_DEP_H_GUARD
#ifdef JIT_CGP
Modified: trunk/src/jit/arm/jit_emit.h
==============================================================================
--- trunk/src/jit/arm/jit_emit.h (original)
+++ trunk/src/jit/arm/jit_emit.h Tue May 8 10:05:44 2007
@@ -6,8 +6,8 @@
* $Id$
*/
-#if !defined(PARROT_ARM_JIT_EMIT_H_GUARD)
-# define PARROT_ARM_JIT_EMIT_H_GUARD
+#ifndef PARROT_ARM_JIT_EMIT_H_GUARD
+#define PARROT_ARM_JIT_EMIT_H_GUARD
#ifdef ARM
# ifdef __linux
Modified: trunk/src/jit/i386/exec_dep.h
==============================================================================
--- trunk/src/jit/i386/exec_dep.h (original)
+++ trunk/src/jit/i386/exec_dep.h Tue May 8 10:05:44 2007
@@ -12,7 +12,7 @@
*/
#ifndef PARROT_I386_EXEC_DEP_H_GUARD
-# define PARROT_I386_EXEC_DEP_H_GUARD
+#define PARROT_I386_EXEC_DEP_H_GUARD
#ifdef JIT_CGP
Modified: trunk/src/jit/i386/jit_emit.h
==============================================================================
--- trunk/src/jit/i386/jit_emit.h (original)
+++ trunk/src/jit/i386/jit_emit.h Tue May 8 10:05:44 2007
@@ -7,7 +7,7 @@
*/
#ifndef PARROT_I386_JIT_EMIT_H_GUARD
-# define PARROT_I386_JIT_EMIT_H_GUARD
+#define PARROT_I386_JIT_EMIT_H_GUARD
# include <assert.h>
Modified: trunk/src/jit/ia64/jit_emit.h
==============================================================================
--- trunk/src/jit/ia64/jit_emit.h (original)
+++ trunk/src/jit/ia64/jit_emit.h Tue May 8 10:05:44 2007
@@ -1,3 +1,6 @@
+#ifndef PARROT_JIT_IA64_JIT_EMIT_H_GUARD
+#define PARROT_JIT_IA64_JIT_EMIT_H_GUARD
+
/*
* jit_emit.h
*
@@ -768,6 +771,8 @@
#endif /* !JIT_EMIT */
+#endif /* PARROT_JIT_IA64_JIT_EMIT_H_GUARD */
+
/*
* Local variables:
* c-file-style: "parrot"
Modified: trunk/src/jit/mips/jit_emit.h
==============================================================================
--- trunk/src/jit/mips/jit_emit.h (original)
+++ trunk/src/jit/mips/jit_emit.h Tue May 8 10:05:44 2007
@@ -12,7 +12,7 @@
*/
#ifndef PARROT_MIPS_JIT_EMIT_H_GUARD
-# define PARROT_MIPS_JIT_EMIT_H_GUARD
+#define PARROT_MIPS_JIT_EMIT_H_GUARD
# define BASE_REG s0
# define Parrot_jit_emit_get_base_reg_no(pc) BASE_REG
Modified: trunk/src/jit/ppc/exec_dep.h
==============================================================================
--- trunk/src/jit/ppc/exec_dep.h (original)
+++ trunk/src/jit/ppc/exec_dep.h Tue May 8 10:05:44 2007
@@ -12,7 +12,7 @@
*/
#ifndef PARROT_PPC_EXEC_DEP_H_GUARD
-# define PARROT_PPC_EXEC_DEP_H_GUARD
+#define PARROT_PPC_EXEC_DEP_H_GUARD
#ifdef JIT_CGP
Modified: trunk/src/jit/ppc/jit_emit.h
==============================================================================
--- trunk/src/jit/ppc/jit_emit.h (original)
+++ trunk/src/jit/ppc/jit_emit.h Tue May 8 10:05:44 2007
@@ -7,7 +7,7 @@
*/
#ifndef PARROT_PPC_JIT_EMIT_H_GUARD
-# define PARROT_PPC_JIT_EMIT_H_GUARD
+#define PARROT_PPC_JIT_EMIT_H_GUARD
# include <unistd.h>
# include <sys/mman.h>
Modified: trunk/src/jit/skeleton/jit_emit.h
==============================================================================
--- trunk/src/jit/skeleton/jit_emit.h (original)
+++ trunk/src/jit/skeleton/jit_emit.h Tue May 8 10:05:44 2007
@@ -7,7 +7,7 @@
*/
#ifndef PARROT_PPC_JIT_EMIT_H_GUARD
-# define PARROT_PPC_JIT_EMIT_H_GUARD
+#define PARROT_PPC_JIT_EMIT_H_GUARD
# include <unistd.h>
# include <limits.h>
Modified: trunk/src/jit/sun4/jit_emit.h
==============================================================================
--- trunk/src/jit/sun4/jit_emit.h (original)
+++ trunk/src/jit/sun4/jit_emit.h Tue May 8 10:05:44 2007
@@ -7,7 +7,7 @@
**/
#ifndef PARROT_SUN4_JIT_EMIT_H_GUARD
-# define PARROT_SUN4_JIT_EMIT_H_GUARD
+#define PARROT_SUN4_JIT_EMIT_H_GUARD
/*
* SPARC JIT overview:
Modified: trunk/src/pmc/classobject.h
==============================================================================
--- trunk/src/pmc/classobject.h (original)
+++ trunk/src/pmc/classobject.h Tue May 8 10:05:44 2007
@@ -8,7 +8,7 @@
*/
#ifndef PARROT_CLASSOBJECT_H_GUARD
-# define PARROT_CLASSOBJECT_GUARD
+#define PARROT_CLASSOBJECT_H_GUARD
/* Class PMC's underlying struct. */
typedef struct Parrot_Class {
@@ -42,7 +42,7 @@
/* Fully qualified class name generation; defined in Class, used by Object. */
STRING* Parrot_Class_get_fq_classname(Parrot_Interp interp, Parrot_Class
*class_info);
-#endif /* PARROT_CLASSOBJECT_GUARD */
+#endif /* PARROT_CLASSOBJECT_H_GUARD */
/*
Modified: trunk/src/trace.h
==============================================================================
--- trunk/src/trace.h (original)
+++ trunk/src/trace.h Tue May 8 10:05:44 2007
@@ -11,7 +11,7 @@
*/
#ifndef PARROT_TRACE_H_GUARD
-# define PARROT_TRACE_H_GUARD
+#define PARROT_TRACE_H_GUARD
#include "parrot/parrot.h"