summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-10 16:51:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-10 16:51:02 +0000
commit66610fdd5da795f6de595e815ccc4d1c9f3f4505 (patch)
tree3e040e06f33275f702454aa4607e4181ad35c589
parentc69006e4a4556d3b1d6e1a57c49a95b1d16efeb0 (diff)
downloadperl-66610fdd5da795f6de595e815ccc4d1c9f3f4505.tar.gz
Add editor boilerplates to all C files
(except the generated ones) p4raw-id: //depot/perl@24440
-rw-r--r--av.c10
-rw-r--r--deb.c10
-rw-r--r--doio.c10
-rw-r--r--doop.c2
-rw-r--r--dump.c10
-rw-r--r--globals.c10
-rw-r--r--gv.c10
-rw-r--r--hv.c2
-rw-r--r--locale.c9
-rw-r--r--malloc.c10
-rw-r--r--mg.c10
-rw-r--r--miniperlmain.c10
-rw-r--r--numeric.c10
-rw-r--r--op.c2
-rw-r--r--pad.c10
-rw-r--r--perl.c10
-rw-r--r--perlio.c2
-rw-r--r--perly.c10
-rw-r--r--pp.c2
-rw-r--r--pp_ctl.c2
-rw-r--r--pp_hot.c2
-rw-r--r--pp_pack.c2
-rw-r--r--pp_sort.c2
-rw-r--r--pp_sys.c2
-rw-r--r--regcomp.c2
-rw-r--r--regexec.c10
-rw-r--r--run.c9
-rw-r--r--scope.c2
-rw-r--r--sv.c2
-rw-r--r--taint.c10
-rw-r--r--toke.c2
-rw-r--r--universal.c2
-rw-r--r--utf8.c2
-rw-r--r--util.c9
-rw-r--r--xsutils.c9
35 files changed, 200 insertions, 18 deletions
diff --git a/av.c b/av.c
index 7f8429168e..a03387c4e5 100644
--- 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 b34520ee24..7788dc119a 100644
--- 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 64ac77ec17..d3b27c7927 100644
--- 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 39e5d36b48..9a0eac498e 100644
--- 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 b20c602027..af0b5e1013 100644
--- 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:
+*/
diff --git a/globals.c b/globals.c
index 994ca8da95..8f382bb4ec 100644
--- 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 0f3fa2467d..fe8280e4bd 100644
--- 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 dc840d7390..ddaaaf7850 100644
--- 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:
*/
diff --git a/locale.c b/locale.c
index 94609a485f..526a56855b 100644
--- 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:
+*/
diff --git a/malloc.c b/malloc.c
index de5766d3f6..3731fc26b7 100644
--- 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 bb16deac49..58301f81b1 100644
--- 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:
+*/
diff --git a/miniperlmain.c b/miniperlmain.c
index 53ab947537..48993cdc8a 100644
--- a/miniperlmain.c
+++ b/miniperlmain.c
@@ -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:
+*/
diff --git a/numeric.c b/numeric.c
index 297dbdd756..6f962837f5 100644
--- 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 1afdbc00dd..08f1689255 100644
--- 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 280b46cb1d..408514beca 100644
--- 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 ca209a3aa3..b11bc34532 100644
--- 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:
+*/
diff --git a/perlio.c b/perlio.c
index f437222357..a619636097 100644
--- 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 a6ce128e18..12c8443056 100644
--- 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 694e460a77..3b4c65fecc 100644
--- 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:
*/
diff --git a/pp_ctl.c b/pp_ctl.c
index 8295777314..5780a81c5f 100644
--- 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:
*/
diff --git a/pp_hot.c b/pp_hot.c
index a3734c19cd..e75b482279 100644
--- 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:
*/
diff --git a/pp_pack.c b/pp_pack.c
index 826b26e6b0..34b18fefbd 100644
--- 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:
*/
diff --git a/pp_sort.c b/pp_sort.c
index 1e338a8188..f14e1a874a 100644
--- 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:
*/
diff --git a/pp_sys.c b/pp_sys.c
index 60f9c90c1e..28cc6feb12 100644
--- 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:
*/
diff --git a/regcomp.c b/regcomp.c
index aa71b78c69..73ca9197ab 100644
--- 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:
*/
diff --git a/regexec.c b/regexec.c
index 8947cce1ae..182be28216 100644
--- 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 a2059e2e5b..0b868abb1c 100644
--- 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 315feee8bf..8b3821e2ea 100644
--- 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 9dfbadbf60..ed509908ca 100644
--- 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 03bdedc3d5..eafd365db3 100644
--- 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 3d32662bd1..2e1618e945 100644
--- 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:
*/
diff --git a/universal.c b/universal.c
index f13f8af6af..e79bdae02c 100644
--- a/universal.c
+++ b/universal.c
@@ -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 b75ad23126..af027b67cb 100644
--- 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 5ad01e8072..03201dd513 100644
--- 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:
+*/
diff --git a/xsutils.c b/xsutils.c
index 490988bc24..84c9d7e044 100644
--- 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:
+*/