# New Ticket Created by "Paul Cochrane"
# Please include the string: [perl #40375]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40375 >
Hi,
It seems I forgot to attach the patch to this email. Many apologies!
Here it is again.
Regards,
Paul
This patch adds the C-specific emacs/vim coda to all C-language files
under parrot/config/gen.
Files affected by this patch:
config/gen/platform/netbsd/math.c
config/gen/platform/cygwin/math.c
config/gen/platform/win32/time.c
config/gen/platform/win32/dl.c
config/gen/platform/win32/threads.h
config/gen/platform/win32/stat.h
config/gen/platform/win32/misc.h
config/gen/platform/win32/signal.h
config/gen/platform/win32/begin.c
config/gen/platform/win32/exec.c
config/gen/platform/win32/env.c
config/gen/platform/win32/misc.c
config/gen/platform/win32/stat.c
config/gen/platform/win32/io.h
config/gen/platform/win32/signal.c
config/gen/platform/darwin/dl.c
config/gen/platform/darwin/begin.c
config/gen/platform/darwin/memalign.c
config/gen/platform/ansi/time.c
config/gen/platform/ansi/dl.c
config/gen/platform/ansi/exec.c
config/gen/platform/ansi/io.h
config/gen/platform/openbsd/misc.h
config/gen/platform/openbsd/memexec.c
config/gen/platform/openbsd/math.c
config/gen/platform/platform_interface.h
config/gen/platform/generic/math.h
config/gen/platform/generic/time.c
config/gen/platform/generic/threads.h
config/gen/platform/generic/dl.c
config/gen/platform/generic/dl.h
config/gen/platform/generic/stat.c
config/gen/platform/generic/io.h
config/gen/platform/generic/signal.c
config/gen/platform/generic/stat.h
config/gen/platform/generic/signal.h
config/gen/platform/generic/memexec.c
config/gen/platform/generic/exec.c
config/gen/platform/generic/env.c
config/gen/platform/generic/memalign.c
config/gen/platform/generic/itimer.c
config/gen/platform/generic/math.c
config/gen/platform/solaris/time.c
config/gen/platform/solaris/math.c
config/gen/cpu/i386/memcpy_mmx_in.c
config/gen/cpu/i386/memcpy_sse.c
config/gen/cpu/i386/memcpy_sse_in.c
config/gen/cpu/i386/memcpy_mmx.c
Index: config/gen/platform/netbsd/math.c
===================================================================
--- config/gen/platform/netbsd/math.c (revision 14669)
+++ config/gen/platform/netbsd/math.c (working copy)
@@ -48,3 +48,10 @@
return u.i[2] < 0;
}
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/cygwin/math.c
===================================================================
--- config/gen/platform/cygwin/math.c (revision 14669)
+++ config/gen/platform/cygwin/math.c (working copy)
@@ -46,3 +46,10 @@
return u.i[2] < 0;
}
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/time.c
===================================================================
--- config/gen/platform/win32/time.c (revision 14669)
+++ config/gen/platform/win32/time.c (working copy)
@@ -71,3 +71,10 @@
{
return strcpy(buffer, asctime(tm));
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/dl.c
===================================================================
--- config/gen/platform/win32/dl.c (revision 14669)
+++ config/gen/platform/win32/dl.c (working copy)
@@ -41,3 +41,10 @@
return FreeLibrary(handle)? 0: 1;
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/threads.h
===================================================================
--- config/gen/platform/win32/threads.h (revision 14669)
+++ config/gen/platform/win32/threads.h (working copy)
@@ -1,3 +1,10 @@
#include "parrot/thr_windows.h"
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/stat.h
===================================================================
--- config/gen/platform/win32/stat.h (revision 14669)
+++ config/gen/platform/win32/stat.h (working copy)
@@ -21,3 +21,10 @@
#ifndef S_ISDIR
# define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR)
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/misc.h
===================================================================
--- config/gen/platform/win32/misc.h (revision 14669)
+++ config/gen/platform/win32/misc.h (working copy)
@@ -12,3 +12,10 @@
#pragma warning( disable: 4505 ) /* disables 'unreferenced local function has
* been removed' warnings in header files */
#endif /* defined(_MSC_VER) */
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/signal.h
===================================================================
--- config/gen/platform/win32/signal.h (revision 14669)
+++ config/gen/platform/win32/signal.h (working copy)
@@ -1,3 +1,10 @@
/*
* empty to prevent inclusion of generic/signal.h
*/
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/begin.c
===================================================================
--- config/gen/platform/win32/begin.c (revision 14669)
+++ config/gen/platform/win32/begin.c (working copy)
@@ -1 +1,8 @@
#include <windows.h>
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/exec.c
===================================================================
--- config/gen/platform/win32/exec.c (revision 14669)
+++ config/gen/platform/win32/exec.c (working copy)
@@ -185,3 +185,10 @@
}
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/env.c
===================================================================
--- config/gen/platform/win32/env.c (revision 14669)
+++ config/gen/platform/win32/env.c (working copy)
@@ -30,3 +30,10 @@
{
SetEnvironmentVariable(name, NULL);
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/misc.c
===================================================================
--- config/gen/platform/win32/misc.c (revision 14669)
+++ config/gen/platform/win32/misc.c (working copy)
@@ -5,3 +5,10 @@
SetErrorMode(SEM_NOGPFAULTERRORBOX);
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/stat.c
===================================================================
--- config/gen/platform/win32/stat.c (revision 14669)
+++ config/gen/platform/win32/stat.c (working copy)
@@ -170,3 +170,10 @@
{
return NULL;
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/io.h
===================================================================
--- config/gen/platform/win32/io.h (revision 14669)
+++ config/gen/platform/win32/io.h (working copy)
@@ -6,3 +6,10 @@
#ifndef S_ISREG
# define S_ISREG(m) ((m & S_IFMT) == S_IFREG)
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/win32/signal.c
===================================================================
--- config/gen/platform/win32/signal.c (revision 14669)
+++ config/gen/platform/win32/signal.c (working copy)
@@ -1,3 +1,10 @@
/*
* empty to prevent inclusion of generic/signal.c
*/
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/darwin/dl.c
===================================================================
--- config/gen/platform/darwin/dl.c (revision 14669)
+++ config/gen/platform/darwin/dl.c (working copy)
@@ -217,3 +217,10 @@
}
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/darwin/begin.c
===================================================================
--- config/gen/platform/darwin/begin.c (revision 14669)
+++ config/gen/platform/darwin/begin.c (working copy)
@@ -1,2 +1,9 @@
#undef environ
#undef bool
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/darwin/memalign.c
===================================================================
--- config/gen/platform/darwin/memalign.c (revision 14669)
+++ config/gen/platform/darwin/memalign.c (working copy)
@@ -126,3 +126,10 @@
fprintf(stderr, "Parrot_free_memalign(%p) failed!\n", p);
}
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/ansi/time.c
===================================================================
--- config/gen/platform/ansi/time.c (revision 14669)
+++ config/gen/platform/ansi/time.c (working copy)
@@ -35,3 +35,10 @@
Parrot_warn(NULL, PARROT_WARNINGS_PLATFORM_FLAG, "Parrot_sleep not implemented");
return;
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/ansi/dl.c
===================================================================
--- config/gen/platform/ansi/dl.c (revision 14669)
+++ config/gen/platform/ansi/dl.c (working copy)
@@ -43,3 +43,10 @@
Parrot_warn(NULL, PARROT_WARNINGS_PLATFORM_FLAG, "Parrot_dlclose not implemented");
return 0;
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/ansi/exec.c
===================================================================
--- config/gen/platform/ansi/exec.c (revision 14669)
+++ config/gen/platform/ansi/exec.c (working copy)
@@ -19,3 +19,10 @@
void Parrot_Exec_OS_Comman(Parrot_Interp interpreter, STRING *command) {
internal_exception(NOSPAWN, "Exec not implemented");
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/ansi/io.h
===================================================================
--- config/gen/platform/ansi/io.h (revision 14669)
+++ config/gen/platform/ansi/io.h (working copy)
@@ -6,3 +6,10 @@
#ifndef S_ISREG
# define S_ISREG(m) 1
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/openbsd/misc.h
===================================================================
--- config/gen/platform/openbsd/misc.h (revision 14669)
+++ config/gen/platform/openbsd/misc.h (working copy)
@@ -7,3 +7,10 @@
#ifdef NATIVE_EXEC_ELF
#define PARROT_OPENBSD_ELF
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/openbsd/memexec.c
===================================================================
--- config/gen/platform/openbsd/memexec.c (revision 14669)
+++ config/gen/platform/openbsd/memexec.c (working copy)
@@ -41,3 +41,10 @@
return newp;
}
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/openbsd/math.c
===================================================================
--- config/gen/platform/openbsd/math.c (revision 14669)
+++ config/gen/platform/openbsd/math.c (working copy)
@@ -46,3 +46,10 @@
return u.i[2] < 0;
}
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/platform_interface.h
===================================================================
--- config/gen/platform/platform_interface.h (revision 14669)
+++ config/gen/platform/platform_interface.h (working copy)
@@ -126,13 +126,11 @@
INTVAL Parrot_Run_OS_Command_Argv(Interp*, struct PMC *);
void Parrot_Exec_OS_Command_Argv(Interp*, struct PMC *);
+#endif
+
/*
* Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
+ * c-file-style: "parrot"
* End:
- *
* vim: expandtab shiftwidth=4:
*/
-#endif
Index: config/gen/platform/generic/math.h
===================================================================
--- config/gen/platform/generic/math.h (revision 14669)
+++ config/gen/platform/generic/math.h (working copy)
@@ -20,3 +20,10 @@
# endif
#define Parrot_is_nzero(x) ((x) == 0.0 && signbit(x))
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/time.c
===================================================================
--- config/gen/platform/generic/time.c (revision 14669)
+++ config/gen/platform/generic/time.c (working copy)
@@ -67,3 +67,10 @@
{
return asctime_r(tm, buffer);
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/threads.h
===================================================================
--- config/gen/platform/generic/threads.h (revision 14669)
+++ config/gen/platform/generic/threads.h (working copy)
@@ -12,3 +12,10 @@
# define YIELD sched_yield()
# endif
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/dl.c
===================================================================
--- config/gen/platform/generic/dl.c (revision 14669)
+++ config/gen/platform/generic/dl.c (working copy)
@@ -65,3 +65,10 @@
return -1;
#endif
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/dl.h
===================================================================
--- config/gen/platform/generic/dl.h (revision 14669)
+++ config/gen/platform/generic/dl.h (working copy)
@@ -3,3 +3,10 @@
*/
#define PARROT_DLOPEN_FLAGS RTLD_LAZY
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/stat.c
===================================================================
--- config/gen/platform/generic/stat.c (revision 14669)
+++ config/gen/platform/generic/stat.c (working copy)
@@ -123,3 +123,10 @@
{
return NULL;
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/io.h
===================================================================
--- config/gen/platform/generic/io.h (revision 14669)
+++ config/gen/platform/generic/io.h (working copy)
@@ -6,3 +6,10 @@
#ifndef S_ISREG
# define S_ISREG(m) ((m & S_IFMT) == S_IFREG)
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/signal.c
===================================================================
--- config/gen/platform/generic/signal.c (revision 14669)
+++ config/gen/platform/generic/signal.c (working copy)
@@ -14,3 +14,10 @@
return signal(signum, handler);
}
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/stat.h
===================================================================
--- config/gen/platform/generic/stat.h (revision 14669)
+++ config/gen/platform/generic/stat.h (working copy)
@@ -5,3 +5,10 @@
#ifdef PARROT_HAS_HEADER_SYSSTAT
# include <sys/stat.h>
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/signal.h
===================================================================
--- config/gen/platform/generic/signal.h (revision 14669)
+++ config/gen/platform/generic/signal.h (working copy)
@@ -18,3 +18,10 @@
Parrot_sighandler_t Parrot_set_sighandler(int s, Parrot_sighandler_t f);
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/memexec.c
===================================================================
--- config/gen/platform/generic/memexec.c (revision 14669)
+++ config/gen/platform/generic/memexec.c (working copy)
@@ -54,3 +54,10 @@
return newp;
}
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/exec.c
===================================================================
--- config/gen/platform/generic/exec.c (revision 14669)
+++ config/gen/platform/generic/exec.c (working copy)
@@ -97,3 +97,10 @@
internal_exception(NOSPAWN, "Exec failed, code %i", status);
}
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/env.c
===================================================================
--- config/gen/platform/generic/env.c (revision 14669)
+++ config/gen/platform/generic/env.c (working copy)
@@ -47,3 +47,10 @@
*free_it = 0;
return getenv(name);
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/memalign.c
===================================================================
--- config/gen/platform/generic/memalign.c (revision 14669)
+++ config/gen/platform/generic/memalign.c (working copy)
@@ -34,3 +34,10 @@
{
free(p);
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/itimer.c
===================================================================
--- config/gen/platform/generic/itimer.c (revision 14669)
+++ config/gen/platform/generic/itimer.c (working copy)
@@ -56,3 +56,10 @@
#else
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/generic/math.c
===================================================================
--- config/gen/platform/generic/math.c (revision 14669)
+++ config/gen/platform/generic/math.c (working copy)
@@ -38,3 +38,10 @@
return u.i[2] < 0;
}
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/solaris/time.c
===================================================================
--- config/gen/platform/solaris/time.c (revision 14669)
+++ config/gen/platform/solaris/time.c (working copy)
@@ -67,3 +67,10 @@
{
return asctime_r(tm, buffer, 26);
}
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/platform/solaris/math.c
===================================================================
--- config/gen/platform/solaris/math.c (revision 14669)
+++ config/gen/platform/solaris/math.c (working copy)
@@ -47,3 +47,10 @@
return u.i[2] < 0;
}
#endif
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/cpu/i386/memcpy_mmx_in.c
===================================================================
--- config/gen/cpu/i386/memcpy_mmx_in.c (revision 14669)
+++ config/gen/cpu/i386/memcpy_mmx_in.c (working copy)
@@ -80,3 +80,10 @@
}
#endif @* PARROT_CONFIG_TEST *@
INTERFACE*/
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/cpu/i386/memcpy_sse.c
===================================================================
--- config/gen/cpu/i386/memcpy_sse.c (revision 14669)
+++ config/gen/cpu/i386/memcpy_sse.c (working copy)
@@ -85,3 +85,10 @@
return 0;
}
#endif /* PARROT_CONFIG_TEST */
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/cpu/i386/memcpy_sse_in.c
===================================================================
--- config/gen/cpu/i386/memcpy_sse_in.c (revision 14669)
+++ config/gen/cpu/i386/memcpy_sse_in.c (working copy)
@@ -71,3 +71,10 @@
}
#endif @* PARROT_CONFIG_TEST *@
INTERFACE*/
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */
Index: config/gen/cpu/i386/memcpy_mmx.c
===================================================================
--- config/gen/cpu/i386/memcpy_mmx.c (revision 14669)
+++ config/gen/cpu/i386/memcpy_mmx.c (working copy)
@@ -94,3 +94,10 @@
return 0;
}
#endif /* PARROT_CONFIG_TEST */
+
+/*
+ * Local variables:
+ * c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */