Author: paultcochrane
Date: Tue May  8 10:04:46 2007
New Revision: 18468

Modified:
   trunk/languages/cola/cola.h
   trunk/languages/dotnet/pmc/structures.h
   trunk/languages/dotnet/pmc/tableinfo.h
   trunk/languages/tcl/src/binary.h

Log:
[languages] Added guards to header files.  Patch courtesy of Mark Glines <mark 
at glines dot org>.

Modified: trunk/languages/cola/cola.h
==============================================================================
--- trunk/languages/cola/cola.h (original)
+++ trunk/languages/cola/cola.h Tue May  8 10:04:46 2007
@@ -9,7 +9,7 @@
  */
 
 #ifndef PARROT_LANGUAGES_COLA_H_GUARD
-#  define PARROT_LANGUAGES_COLA_H_GUARD
+#define PARROT_LANGUAGES_COLA_H_GUARD
 
 #  define COLA_VERSION "0.0.11.1"
 

Modified: trunk/languages/dotnet/pmc/structures.h
==============================================================================
--- trunk/languages/dotnet/pmc/structures.h     (original)
+++ trunk/languages/dotnet/pmc/structures.h     Tue May  8 10:04:46 2007
@@ -1,3 +1,6 @@
+#ifndef PARROT_DOTNET_PMC_STRUCTURES_H_GUARD
+#define PARROT_DOTNET_PMC_STRUCTURES_H_GUARD
+
 /* Some structures relating to the .NET CLI files and metadata PMCs. */
 
 /* This structure describes a loaded .NET assembly. */
@@ -268,6 +271,8 @@
     UHUGEINTVAL x;
 };
 
+#endif /* PARROT_DOTNET_PMC_STRUCTURES_H_GUARD */
+
 /*
  * Local variables:
  *   c-file-style: "parrot"

Modified: trunk/languages/dotnet/pmc/tableinfo.h
==============================================================================
--- trunk/languages/dotnet/pmc/tableinfo.h      (original)
+++ trunk/languages/dotnet/pmc/tableinfo.h      Tue May  8 10:04:46 2007
@@ -1,3 +1,6 @@
+#ifndef PARROT_DOTNET_PMC_TABLEINFO_H_GUARD
+#define PARROT_DOTNET_PMC_TABLEINFO_H_GUARD
+
 /* Metadata table information. */
 
 /* Table name => number mappings */
@@ -200,6 +203,7 @@
 
 #define Table_TypeSpec_RL(ass)          (ass->blobs_ptr_size)
 
+#endif /* PARROT_DOTNET_PMC_TABLEINFO_H_GUARD */
 
 /*
  * Local variables:

Modified: trunk/languages/tcl/src/binary.h
==============================================================================
--- trunk/languages/tcl/src/binary.h    (original)
+++ trunk/languages/tcl/src/binary.h    Tue May  8 10:04:46 2007
@@ -1,7 +1,11 @@
+#ifndef PARROT_TCL_BINARY_H_GUARD
+#define PARROT_TCL_BINARY_H_GUARD
 
 PMC *ParTcl_binary_scan(Interp *interp, STRING *BINSTR, STRING *FORMAT);
 STRING *ParTcl_binary_format(Interp *interp, STRING *FORMAT, PMC *values);
 
+#endif /* PARROT_TCL_BINARY_H_GUARD */
+
 /*
  * Local variables:
  *   c-file-style: "parrot"

Reply via email to