Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
regen: add emacs modeline to vim ft=c
Browse files Browse the repository at this point in the history
I'd really like to have C formatting for perly.tab and .act
  • Loading branch information
rurban committed Aug 13, 2017
1 parent f0634d9 commit 1b6e616
Show file tree
Hide file tree
Showing 37 changed files with 42 additions and 41 deletions.
2 changes: 1 addition & 1 deletion charclass_invlists.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
* This file is built by regen/mk_invlists.pl from Unicode::UCD.
* Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion ebcdic_tables.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
* This file is built by regen/ebcdic.pl.
* Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion embed.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* embed.h
*
Expand Down
2 changes: 1 addition & 1 deletion embedvar.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* embedvar.h
*
Expand Down
6 changes: 4 additions & 2 deletions ext/Config/Config_xs.out
Expand Up @@ -7187,10 +7187,12 @@ PROTOTYPES: DISABLE
BOOT:
{
STATIC_ASSERT_STMT(sizeof (stringpool_contents) <= 1 << 15);
#if PTRSIZE == 8
#ifndef _MSC_VER /* MSVC packing? Fails on my MSVC110FREE WIN64 box */
# if PTRSIZE == 8
STATIC_ASSERT_STMT(sizeof (struct Perl_Config) == 16);
#else
# else
STATIC_ASSERT_STMT(sizeof (struct Perl_Config) == 8);
# endif
#endif
#if BYTEORDER == 0x4321 || BYTEORDER == 0x87654321 /* big-endian */
/* an inline string better be negative on BE */
Expand Down
2 changes: 1 addition & 1 deletion feature.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen/feature.pl.
Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion keywords.c
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
* This file is built by regen/keywords.pl from its data.
* Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion keywords.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* keywords.h
*
Expand Down
2 changes: 1 addition & 1 deletion l1_char_class_tab.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
* This file is built by regen/mk_PL_charclass.pl from property
* definitions.
Expand Down
2 changes: 1 addition & 1 deletion lib/.gitignore
@@ -1,4 +1,4 @@
# ex: set ro ft=c: -*- buffer-read-only: t -*-
# ex: set ro ft=perl: -*- mode: perl; buffer-read-only: t -*-
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is built by regen/lib_cleanup.pl from MANIFEST and parsing files
# in cpan/ dist/ and ext/.
Expand Down
2 changes: 1 addition & 1 deletion lib/B/Op_private.pm
@@ -1,4 +1,4 @@
# ex: set ro ft=c: -*- buffer-read-only: t -*-
# ex: set ro ft=perl: -*- mode: perl; buffer-read-only: t -*-
#
# lib/B/Op_private.pm
#
Expand Down
2 changes: 1 addition & 1 deletion lib/feature.pm
@@ -1,4 +1,4 @@
# ex: set ro ft=c: -*- buffer-read-only: t -*-
# ex: set ro ft=perl: -*- mode: perl; buffer-read-only: t -*-
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is built by regen/feature.pl.
# Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion lib/overload/numbers.pm
@@ -1,4 +1,4 @@
# ex: set ro ft=c: -*- buffer-read-only: t -*-
# ex: set ro ft=perl: -*- mode: perl; buffer-read-only: t -*-
#
# lib/overload/numbers.pm
#
Expand Down
2 changes: 1 addition & 1 deletion lib/warnings.pm
@@ -1,4 +1,4 @@
# ex: set ro ft=c: -*- buffer-read-only: t -*-
# ex: set ro ft=perl: -*- mode: perl; buffer-read-only: t -*-
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is built by regen/warnings.pl.
# Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion mg_names.inc
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* mg_names.inc
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
Expand Down
2 changes: 1 addition & 1 deletion mg_raw.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* mg_raw.h
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
Expand Down
2 changes: 1 addition & 1 deletion mg_vtable.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* mg_vtable.h
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
Expand Down
2 changes: 1 addition & 1 deletion miniperlmain.c
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen/miniperlmain.pl and ExtUtils::Miniperl.
Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion opcode.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* opcode.h
*
Expand Down
2 changes: 1 addition & 1 deletion opnames.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* opnames.h
*
Expand Down
2 changes: 1 addition & 1 deletion overload.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* overload.h
*
Expand Down
2 changes: 1 addition & 1 deletion overload.inc
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* overload.inc
*
Expand Down
2 changes: 1 addition & 1 deletion packsizetables.inc
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen/genpacksizetables.pl from its data.
Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion perlapi.c
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* perlapi.c
*
Expand Down
2 changes: 1 addition & 1 deletion perlapi.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* perlapi.h
*
Expand Down
2 changes: 1 addition & 1 deletion perly.act
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen_perly.pl from perly.y.
Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion perly.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen_perly.pl from perly.y.
Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion perly.tab
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen_perly.pl from perly.y.
Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion pp_proto.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by opcode.pl from its data.
Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion proto.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* proto.h
*
Expand Down
2 changes: 1 addition & 1 deletion reentr.c
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* reentr.c
*
Expand Down
2 changes: 1 addition & 1 deletion reentr.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* reentr.h
*
Expand Down
2 changes: 1 addition & 1 deletion regcharclass.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
*
* regcharclass.h
*
Expand Down
7 changes: 3 additions & 4 deletions regen/regen_lib.pl
Expand Up @@ -128,11 +128,10 @@ sub read_only_top {
unless exists $lang_opener{$lang};
my $style = $args{style} ? " $args{style} " : ' ';

my $raw = "ex: set ro ft=c: -*- buffer-read-only: t -*-\n";
my $lc = lc $lang; # C, Pod or Perl
my $raw = "ex: set ro ft=$lc: -*- mode: $lc; buffer-read-only: t -*-\n";
$raw .= "\n $args{file}\n" if $args{file};

if ($args{file}) {
$raw .= "\n $args{file}\n";
}
if ($args{copyright}) {
local $" = ', ';
$raw .= wrap(75, ' ', ' ', <<"EOM") . "\n";
Expand Down
2 changes: 1 addition & 1 deletion regnodes.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen/regcomp.pl from regcomp.sym.
Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion unicode_constants.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
* This file is built by regen/unicode_constants.pl from Unicode data.
* Any changes made here will be lost!
Expand Down
2 changes: 1 addition & 1 deletion warnings.h
@@ -1,4 +1,4 @@
/* ex: set ro ft=c: -*- buffer-read-only: t -*-
/* ex: set ro ft=c: -*- mode: c; buffer-read-only: t -*-
!!!!!!! DO NOT EDIT THIS FILE !!!!!!!
This file is built by regen/warnings.pl.
Any changes made here will be lost!
Expand Down

0 comments on commit 1b6e616

Please sign in to comment.