# New Ticket Created by  "Paul Cochrane" 
# Please include the string:  [perl #40372]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40372 >


Hi,

This is a patch of all .c and .h files found by
t/codingstd/code_coda.t that reside under parrot/compilers to add the
required emacs and vim coda.  This patch partially adresses bug:
#40279  [CAGE] C coding standards coda.  The files affected are listed
below.

Regards,

Paul

Files affected:

compilers/ast/astparser.c
compilers/ast/node.c
compilers/ast/astlexer.c
compilers/ast/astparser.h
compilers/ast/ast_main.c
compilers/ast/ast.h
compilers/imcc/cfg.c
compilers/imcc/parser.h
compilers/imcc/pbc.c
compilers/imcc/instructions.c
compilers/imcc/cfg.h
compilers/imcc/symreg.c
compilers/imcc/pbc.h
compilers/imcc/instructions.h
compilers/imcc/symreg.h
compilers/imcc/optimizer.c
compilers/imcc/unit.h
compilers/imcc/imcparser.c
compilers/imcc/debug.c
compilers/imcc/optimizer.h
compilers/imcc/reg_alloc.c
compilers/imcc/imcparser.h
compilers/imcc/debug.h
compilers/imcc/pcc.c
compilers/imcc/imclexer.c
compilers/imcc/imc.c
compilers/imcc/imc.h
compilers/imcc/sets.c
compilers/imcc/sets.h
compilers/imcc/main.c
compilers/imcc/parser_util.c
compilers/imcc/reg_alloc_bc.c
compilers/bcg/include/bcg.h
compilers/bcg/src/bcg_emitter_pasm.c
compilers/bcg/src/bcg_reg_alloc_vanilla.c
compilers/bcg/src/bcg_op.c
compilers/bcg/src/bcg_logger.c
compilers/bcg/src/bcg_unit.c
compilers/bcg/src/bcg.c
compilers/bcg/src/bcg_utils.c
Index: compilers/ast/astparser.c
===================================================================
--- compilers/ast/astparser.c	(revision 14669)
+++ compilers/ast/astparser.c	(working copy)
@@ -1758,3 +1758,10 @@
 }
 
 
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/ast/node.c
===================================================================
--- compilers/ast/node.c	(revision 14669)
+++ compilers/ast/node.c	(working copy)
@@ -1286,11 +1286,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
-
+ */
Index: compilers/ast/astlexer.c
===================================================================
--- compilers/ast/astlexer.c	(revision 14669)
+++ compilers/ast/astlexer.c	(working copy)
@@ -1755,3 +1755,10 @@
 
 
 int yywrap(void) { return 1; }
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/ast/astparser.h
===================================================================
--- compilers/ast/astparser.h	(revision 14669)
+++ compilers/ast/astparser.h	(working copy)
@@ -96,3 +96,10 @@
 #endif
 
 
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/ast/ast_main.c
===================================================================
--- compilers/ast/ast_main.c	(revision 14669)
+++ compilers/ast/ast_main.c	(working copy)
@@ -165,10 +165,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/ast/ast.h
===================================================================
--- compilers/ast/ast.h	(revision 14669)
+++ compilers/ast/ast.h	(working copy)
@@ -68,3 +68,10 @@
 
 
 #endif /* PARROT_AST_H_GUARD */
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/imcc/cfg.c
===================================================================
--- compilers/imcc/cfg.c	(revision 14669)
+++ compilers/imcc/cfg.c	(working copy)
@@ -1171,10 +1171,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/parser.h
===================================================================
--- compilers/imcc/parser.h	(revision 14669)
+++ compilers/imcc/parser.h	(working copy)
@@ -71,10 +71,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/pbc.c
===================================================================
--- compilers/imcc/pbc.c	(revision 14669)
+++ compilers/imcc/pbc.c	(working copy)
@@ -1340,11 +1340,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
-
+ */
Index: compilers/imcc/instructions.c
===================================================================
--- compilers/imcc/instructions.c	(revision 14669)
+++ compilers/imcc/instructions.c	(working copy)
@@ -636,11 +636,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
-
+ */
Index: compilers/imcc/cfg.h
===================================================================
--- compilers/imcc/cfg.h	(revision 14669)
+++ compilers/imcc/cfg.h	(working copy)
@@ -64,3 +64,10 @@
 
 #endif /* PARROT_CFG_H_GUARD */
 
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/imcc/symreg.c
===================================================================
--- compilers/imcc/symreg.c	(revision 14669)
+++ compilers/imcc/symreg.c	(working copy)
@@ -872,11 +872,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
-
+ */
Index: compilers/imcc/pbc.h
===================================================================
--- compilers/imcc/pbc.h	(revision 14669)
+++ compilers/imcc/pbc.h	(working copy)
@@ -11,3 +11,10 @@
 
 #endif /* PARROT_IMCC_PBC_H_GUARD */
 
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/imcc/instructions.h
===================================================================
--- compilers/imcc/instructions.h	(revision 14669)
+++ compilers/imcc/instructions.h	(working copy)
@@ -129,3 +129,10 @@
 
 #endif /* PARROT_IMCC_INSTRUCTIONS_H_GUARD */
 
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/imcc/symreg.h
===================================================================
--- compilers/imcc/symreg.h	(revision 14669)
+++ compilers/imcc/symreg.h	(working copy)
@@ -211,11 +211,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
-
+ */
Index: compilers/imcc/optimizer.c
===================================================================
--- compilers/imcc/optimizer.c	(revision 14669)
+++ compilers/imcc/optimizer.c	(working copy)
@@ -1556,10 +1556,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/unit.h
===================================================================
--- compilers/imcc/unit.h	(revision 14669)
+++ compilers/imcc/unit.h	(working copy)
@@ -72,3 +72,10 @@
 
 #endif /* PARROT_IMCC_UNIT_H_GUARD */
 
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/imcc/imcparser.c
===================================================================
--- compilers/imcc/imcparser.c	(revision 14669)
+++ compilers/imcc/imcparser.c	(working copy)
@@ -4634,11 +4634,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
-
+ */
Index: compilers/imcc/debug.c
===================================================================
--- compilers/imcc/debug.c	(revision 14669)
+++ compilers/imcc/debug.c	(working copy)
@@ -379,10 +379,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/optimizer.h
===================================================================
--- compilers/imcc/optimizer.h	(revision 14669)
+++ compilers/imcc/optimizer.h	(working copy)
@@ -7,3 +7,10 @@
 
 #endif /* PARROT_IMCC_OPTIMIZER_H_GUARD */
 
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/imcc/reg_alloc.c
===================================================================
--- compilers/imcc/reg_alloc.c	(revision 14669)
+++ compilers/imcc/reg_alloc.c	(working copy)
@@ -839,10 +839,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/imcparser.h
===================================================================
--- compilers/imcc/imcparser.h	(revision 14669)
+++ compilers/imcc/imcparser.h	(working copy)
@@ -296,3 +296,10 @@
 
 
 
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/imcc/debug.h
===================================================================
--- compilers/imcc/debug.h	(revision 14669)
+++ compilers/imcc/debug.h	(working copy)
@@ -39,3 +39,10 @@
 void dump_liveness_status_var(IMC_Unit *, SymReg*);
 
 #endif /* PARROT_IMCC_DEBUG_H_GUARD */
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/imcc/pcc.c
===================================================================
--- compilers/imcc/pcc.c	(revision 14669)
+++ compilers/imcc/pcc.c	(working copy)
@@ -554,10 +554,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/imclexer.c
===================================================================
--- compilers/imcc/imclexer.c	(revision 14669)
+++ compilers/imcc/imclexer.c	(working copy)
@@ -5817,12 +5817,7 @@
 
 /*
  * Local variables:
- * mode: c
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
  */
-
Index: compilers/imcc/imc.c
===================================================================
--- compilers/imcc/imc.c	(revision 14669)
+++ compilers/imcc/imc.c	(working copy)
@@ -169,10 +169,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/imc.h
===================================================================
--- compilers/imcc/imc.h	(revision 14669)
+++ compilers/imcc/imc.h	(working copy)
@@ -266,10 +266,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/sets.c
===================================================================
--- compilers/imcc/sets.c	(revision 14669)
+++ compilers/imcc/sets.c	(working copy)
@@ -154,10 +154,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
  */
Index: compilers/imcc/sets.h
===================================================================
--- compilers/imcc/sets.h	(revision 14669)
+++ compilers/imcc/sets.h	(working copy)
@@ -22,3 +22,10 @@
 
 #endif /* PARROT_IMCC_SETS_H_GUARD */
 
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/imcc/main.c
===================================================================
--- compilers/imcc/main.c	(revision 14669)
+++ compilers/imcc/main.c	(working copy)
@@ -744,10 +744,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/parser_util.c
===================================================================
--- compilers/imcc/parser_util.c	(revision 14669)
+++ compilers/imcc/parser_util.c	(working copy)
@@ -1267,10 +1267,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/imcc/reg_alloc_bc.c
===================================================================
--- compilers/imcc/reg_alloc_bc.c	(revision 14669)
+++ compilers/imcc/reg_alloc_bc.c	(working copy)
@@ -1379,10 +1379,7 @@
 
 /*
  * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ *   c-file-style: "parrot"
  * End:
- *
  * vim: expandtab shiftwidth=4:
-*/
+ */
Index: compilers/bcg/include/bcg.h
===================================================================
--- compilers/bcg/include/bcg.h	(revision 14669)
+++ compilers/bcg/include/bcg.h	(working copy)
@@ -46,3 +46,10 @@
 
 PARROT_DYNEXT_EXPORT void BCG_print_pasm(BCG_info *bcg_info);
 #endif /* PARROT_BCG_H_GUARD */
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/bcg/src/bcg_emitter_pasm.c
===================================================================
--- compilers/bcg/src/bcg_emitter_pasm.c	(revision 14669)
+++ compilers/bcg/src/bcg_emitter_pasm.c	(working copy)
@@ -42,3 +42,10 @@
     }
     printf("    end\n");
 }
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/bcg/src/bcg_reg_alloc_vanilla.c
===================================================================
--- compilers/bcg/src/bcg_reg_alloc_vanilla.c	(revision 14669)
+++ compilers/bcg/src/bcg_reg_alloc_vanilla.c	(working copy)
@@ -54,3 +54,10 @@
     }
     return -1;
 }
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/bcg/src/bcg_op.c
===================================================================
--- compilers/bcg/src/bcg_op.c	(revision 14669)
+++ compilers/bcg/src/bcg_op.c	(working copy)
@@ -103,3 +103,10 @@
     bcg_info_private *bcg_info_priv = BCG_INFO_PRIV(bcg_info);
     return bcg_info_priv->last_unit->last_op;
 }
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/bcg/src/bcg_logger.c
===================================================================
--- compilers/bcg/src/bcg_logger.c	(revision 14669)
+++ compilers/bcg/src/bcg_logger.c	(working copy)
@@ -18,3 +18,10 @@
     bcg_info->error_code = code;
     BCG_THROW(bcg_info, code);
 }
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/bcg/src/bcg_unit.c
===================================================================
--- compilers/bcg/src/bcg_unit.c	(revision 14669)
+++ compilers/bcg/src/bcg_unit.c	(working copy)
@@ -83,3 +83,10 @@
     }
     return -1;
 }
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/bcg/src/bcg.c
===================================================================
--- compilers/bcg/src/bcg.c	(revision 14669)
+++ compilers/bcg/src/bcg.c	(working copy)
@@ -327,3 +327,10 @@
 =cut
 
 */
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: compilers/bcg/src/bcg_utils.c
===================================================================
--- compilers/bcg/src/bcg_utils.c	(revision 14669)
+++ compilers/bcg/src/bcg_utils.c	(working copy)
@@ -30,3 +30,10 @@
 
     return parrot_hash_get(bcg_info->interp, hash, const_cast(key));
 }
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */

Reply via email to