Add editor boilerplates to all C files
Rafael Garcia-Suarez [Tue, 10 May 2005 16:51:02 +0000 (16:51 +0000)]
(except the generated ones)

p4raw-id: //depot/perl@24440

35 files changed:
av.c
deb.c
doio.c
doop.c
dump.c
globals.c
gv.c
hv.c
locale.c
malloc.c
mg.c
miniperlmain.c
numeric.c
op.c
pad.c
perl.c
perlio.c
perly.c
pp.c
pp_ctl.c
pp_hot.c
pp_pack.c
pp_sort.c
pp_sys.c
regcomp.c
regexec.c
run.c
scope.c
sv.c
taint.c
toke.c
universal.c
utf8.c
util.c
xsutils.c

diff --git a/av.c b/av.c
index 7f84291..a03387c 100644 (file)
--- a/av.c
+++ b/av.c
@@ -937,3 +937,13 @@ Perl_av_exists(pTHX_ AV *av, I32 key)
     else
        return FALSE;
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/deb.c b/deb.c
index b34520e..7788dc1 100644 (file)
--- a/deb.c
+++ b/deb.c
@@ -293,4 +293,12 @@ Perl_deb_stack_all(pTHX)
 #endif /* DEBUGGING */
 }
 
-
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/doio.c b/doio.c
index 64ac77e..d3b27c7 100644 (file)
--- a/doio.c
+++ b/doio.c
@@ -2443,3 +2443,13 @@ Perl_start_glob (pTHX_ SV *tmpglob, IO *io)
     LEAVE;
     return fp;
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/doop.c b/doop.c
index 39e5d36..9a0eac4 100644 (file)
--- a/doop.c
+++ b/doop.c
@@ -1419,5 +1419,5 @@ Perl_do_kv(pTHX)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
diff --git a/dump.c b/dump.c
index b20c602..af0b5e1 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -1685,3 +1685,13 @@ Perl_debprofdump(pTHX)
                                        PL_op_name[i]);
     }
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
index 994ca8d..8f382bb 100644 (file)
--- a/globals.c
+++ b/globals.c
@@ -53,3 +53,13 @@ Perl_printf_nocontext(const char *format, ...)
 }
 
 #include "perlapi.h"           /* bring in PL_force_link_funcs */
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/gv.c b/gv.c
index 0f3fa24..fe8280e 100644 (file)
--- a/gv.c
+++ b/gv.c
@@ -1989,3 +1989,13 @@ Perl_is_gv_magical(pTHX_ const char *name, STRLEN len, U32 flags)
     }
     return FALSE;
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/hv.c b/hv.c
index dc840d7..ddaaaf7 100644 (file)
--- a/hv.c
+++ b/hv.c
@@ -2205,5 +2205,5 @@ Perl_hv_assert(pTHX_ HV *hv)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
index 94609a4..526a568 100644 (file)
--- a/locale.c
+++ b/locale.c
@@ -620,3 +620,12 @@ Perl_mem_collxfrm(pTHX_ const char *s, STRLEN len, STRLEN *xlen)
 
 #endif /* USE_LOCALE_COLLATE */
 
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
index de5766d..3731fc2 100644 (file)
--- a/malloc.c
+++ b/malloc.c
@@ -2573,3 +2573,13 @@ Perl_sbrk(int size)
 }
 
 #endif /* ! defined USE_PERL_SBRK */
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/mg.c b/mg.c
index bb16dea..58301f8 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -2698,4 +2698,12 @@ unwind_handler_stack(pTHX_ const void *p)
 #endif
 }
 
-
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
index 53ab947..48993cd 100644 (file)
@@ -125,3 +125,13 @@ xs_init(pTHX)
 {
     dXSUB_SYS;
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
index 297dbdd..6f96283 100644 (file)
--- a/numeric.c
+++ b/numeric.c
@@ -1018,3 +1018,13 @@ Perl_my_frexpl(long double x, int *e) {
        return (scalbnl(x, -*e));
 }
 #endif
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/op.c b/op.c
index 1afdbc0..08f1689 100644 (file)
--- a/op.c
+++ b/op.c
@@ -7146,5 +7146,5 @@ const_sv_xsub(pTHX_ CV* cv)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
diff --git a/pad.c b/pad.c
index 280b46c..408514b 100644 (file)
--- a/pad.c
+++ b/pad.c
@@ -1614,3 +1614,13 @@ Perl_pad_compname_type(pTHX_ const PADOFFSET po)
     }
     return Nullhv;
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/perl.c b/perl.c
index ca209a3..b11bc34 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -4858,3 +4858,13 @@ read_e_script(pTHX_ int idx, SV *buf_sv, int maxlen)
     sv_chop(PL_e_script, nl);
     return 1;
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
index f437222..a619636 100644 (file)
--- a/perlio.c
+++ b/perlio.c
@@ -5048,5 +5048,5 @@ PerlIO_sprintf(char *s, int n, const char *fmt, ...)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
diff --git a/perly.c b/perly.c
index a6ce128..12c8443 100644 (file)
--- a/perly.c
+++ b/perly.c
@@ -698,3 +698,13 @@ Perl_yyparse (pTHX)
 
     return yyresult;
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/pp.c b/pp.c
index 694e460..3b4c65f 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -4834,5 +4834,5 @@ PP(pp_threadsv)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
index 8295777..5780a81 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3946,5 +3946,5 @@ S_path_is_absolute(pTHX_ const char *name)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
index a3734c1..e75b482 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -3130,5 +3130,5 @@ S_method_common(pTHX_ SV* meth, U32* hashp)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
index 826b26e..34b18fe 100644 (file)
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -3625,5 +3625,5 @@ PP(pp_pack)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
index 1e338a8..f14e1a8 100644 (file)
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -1927,5 +1927,5 @@ amagic_cmp_locale(pTHX_ register SV *str1, register SV *str2)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
index 60f9c90..28cc6fe 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -5883,5 +5883,5 @@ lockf_emulate_flock(int fd, int operation)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
index aa71b78..73ca919 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -6386,5 +6386,5 @@ clear_re(pTHX_ void *r)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
index 8947cce..182be28 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -4962,3 +4962,13 @@ S_to_byte_substr(pTHX_ register regexp *prog)
            prog->check_substr = sv;
     }
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/run.c b/run.c
index a2059e2..0b868ab 100644 (file)
--- a/run.c
+++ b/run.c
@@ -42,3 +42,12 @@ Perl_runops_standard(pTHX)
     return 0;
 }
 
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/scope.c b/scope.c
index 315feee..8b3821e 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -1161,5 +1161,5 @@ Perl_cx_dump(pTHX_ PERL_CONTEXT *cx)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
diff --git a/sv.c b/sv.c
index 9dfbadb..ed50990 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -12489,5 +12489,5 @@ Perl_sv_cat_decode(pTHX_ SV *dsv, SV *encoding,
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
diff --git a/taint.c b/taint.c
index 03bdedc..eafd365 100644 (file)
--- a/taint.c
+++ b/taint.c
@@ -167,3 +167,13 @@ Perl_taint_env(pTHX)
        }
     }
 }
+
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
diff --git a/toke.c b/toke.c
index 3d32662..2e1618e 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -10981,5 +10981,5 @@ Perl_scan_vstring(pTHX_ const char *s, SV *sv)
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
index f13f8af..e79bdae 100644 (file)
@@ -958,5 +958,5 @@ XS(XS_Internals_HvREHASH)   /* Subject to change  */
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
diff --git a/utf8.c b/utf8.c
index b75ad23..af027b6 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -2037,5 +2037,5 @@ Perl_ibcmp_utf8(pTHX_ const char *s1, char **pe1, register UV l1, bool u1, const
  * indent-tabs-mode: t
  * End:
  *
- * vim: shiftwidth=4:
+ * vim: ts=8 sts=4 sw=4 noet:
 */
diff --git a/util.c b/util.c
index 5ad01e8..03201dd 100644 (file)
--- a/util.c
+++ b/util.c
@@ -4777,3 +4777,12 @@ Perl_free_global_struct(pTHX_ struct perl_vars *plvarsp)
 
 #endif /* PERL_GLOBAL_STRUCT */
 
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/
index 490988b..84c9d7e 100644 (file)
--- a/xsutils.c
+++ b/xsutils.c
@@ -331,3 +331,12 @@ XS(XS_attributes__warn_reserved)
     XSRETURN(1);
 }
 
+/*
+ * Local variables:
+ * c-indentation-style: bsd
+ * c-basic-offset: 4
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 noet:
+*/