summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-11 07:54:19 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-11 07:54:19 +0000
commit37442d52629699d89ef62d315d35efbc0facec21 (patch)
tree9a628dce9299a88717fc402055910fb432a0b326 /ext
parent24801a4b9a14a56208916a537c4c237993c25186 (diff)
downloadperl-37442d52629699d89ef62d315d35efbc0facec21.tar.gz
Include vim/emacs modelines in generated files to open them
in read-only mode. Make vi modelines compatible with non-vim vi versions. p4raw-id: //depot/perl@24445
Diffstat (limited to 'ext')
-rw-r--r--ext/B/B/Asmdata.pm3
-rw-r--r--ext/ByteLoader/byterun.c5
-rw-r--r--ext/ByteLoader/byterun.h4
3 files changed, 10 insertions, 2 deletions
diff --git a/ext/B/B/Asmdata.pm b/ext/B/B/Asmdata.pm
index 7ee1bfecdf..8c07b22f63 100644
--- a/ext/B/B/Asmdata.pm
+++ b/ext/B/B/Asmdata.pm
@@ -1,3 +1,4 @@
+# -#- buffer-read-only: t -#-
#
# Copyright (c) 1996-1999 Malcolm Beattie
#
@@ -246,3 +247,5 @@ or '&PL_sv_undef').
Malcolm Beattie, C<mbeattie@sable.ox.ac.uk>
=cut
+
+# ex: set ro:
diff --git a/ext/ByteLoader/byterun.c b/ext/ByteLoader/byterun.c
index a30a6e4e25..75fe0b3702 100644
--- a/ext/ByteLoader/byterun.c
+++ b/ext/ByteLoader/byterun.c
@@ -1,4 +1,5 @@
-/*
+/* -*- buffer-read-only: t -*-
+ *
* Copyright (c) 1996-1999 Malcolm Beattie
*
* You may distribute under the terms of either the GNU General Public
@@ -1136,3 +1137,5 @@ byterun(pTHX_ register struct byteloader_state *bstate)
}
return 0;
}
+
+/* ex: set ro: */
diff --git a/ext/ByteLoader/byterun.h b/ext/ByteLoader/byterun.h
index 334abe6d55..d47c62cf30 100644
--- a/ext/ByteLoader/byterun.h
+++ b/ext/ByteLoader/byterun.h
@@ -1,4 +1,5 @@
-/*
+/* -*- buffer-read-only: t -*-
+ *
* Copyright (c) 1996-1999 Malcolm Beattie
*
* You may distribute under the terms of either the GNU General Public
@@ -198,3 +199,4 @@ enum {
OPt_COP /* 10 */
};
+/* ex: set ro: */