summaryrefslogtreecommitdiff
path: root/rts/hooks
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-07-21 23:08:31 -0500
committerAustin Seipp <austin@well-typed.com>2014-07-28 09:29:17 -0500
commit39b5c1cbd8950755de400933cecca7b8deb4ffcd (patch)
tree8174e56815d783286f2ac0901a61a260bde60acd /rts/hooks
parent952f622c0cc91b1c904bfc359a864f39503aa50d (diff)
downloadhaskell-39b5c1cbd8950755de400933cecca7b8deb4ffcd.tar.gz
rts: add Emacs 'Local Variables' to every .c file
This will hopefully help ensure some basic consistency in the forward by overriding buffer variables. In particular, it sets the wrap length, the offset to 4, and turns off tabs. Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'rts/hooks')
-rw-r--r--rts/hooks/FlagDefaults.c8
-rw-r--r--rts/hooks/MallocFail.c8
-rw-r--r--rts/hooks/OnExit.c8
-rw-r--r--rts/hooks/OutOfHeap.c8
-rw-r--r--rts/hooks/StackOverflow.c8
5 files changed, 40 insertions, 0 deletions
diff --git a/rts/hooks/FlagDefaults.c b/rts/hooks/FlagDefaults.c
index ce1666f06d..18cc76c8f9 100644
--- a/rts/hooks/FlagDefaults.c
+++ b/rts/hooks/FlagDefaults.c
@@ -19,3 +19,11 @@ defaultsHook (void)
*/
}
+
+// Local Variables:
+// mode: C
+// fill-column: 80
+// indent-tabs-mode: nil
+// c-basic-offset: 4
+// buffer-file-coding-system: utf-8-unix
+// End:
diff --git a/rts/hooks/MallocFail.c b/rts/hooks/MallocFail.c
index 6c3a1a0faf..2c63f88472 100644
--- a/rts/hooks/MallocFail.c
+++ b/rts/hooks/MallocFail.c
@@ -15,3 +15,11 @@ MallocFailHook (W_ request_size /* in bytes */, char *msg)
fprintf(stderr, "malloc: failed on request for %" FMT_Word " bytes; message: %s\n", request_size, msg);
}
+
+// Local Variables:
+// mode: C
+// fill-column: 80
+// indent-tabs-mode: nil
+// c-basic-offset: 4
+// buffer-file-coding-system: utf-8-unix
+// End:
diff --git a/rts/hooks/OnExit.c b/rts/hooks/OnExit.c
index 30764acba2..d99cb83ac3 100644
--- a/rts/hooks/OnExit.c
+++ b/rts/hooks/OnExit.c
@@ -18,3 +18,11 @@ void
OnExitHook (void)
{
}
+
+// Local Variables:
+// mode: C
+// fill-column: 80
+// indent-tabs-mode: nil
+// c-basic-offset: 4
+// buffer-file-coding-system: utf-8-unix
+// End:
diff --git a/rts/hooks/OutOfHeap.c b/rts/hooks/OutOfHeap.c
index ec4697b547..8998b4d176 100644
--- a/rts/hooks/OutOfHeap.c
+++ b/rts/hooks/OutOfHeap.c
@@ -22,3 +22,11 @@ OutOfHeapHook (W_ request_size, W_ heap_size) /* both sizes in bytes */
}
}
+
+// Local Variables:
+// mode: C
+// fill-column: 80
+// indent-tabs-mode: nil
+// c-basic-offset: 4
+// buffer-file-coding-system: utf-8-unix
+// End:
diff --git a/rts/hooks/StackOverflow.c b/rts/hooks/StackOverflow.c
index 407293902d..50995b8430 100644
--- a/rts/hooks/StackOverflow.c
+++ b/rts/hooks/StackOverflow.c
@@ -15,3 +15,11 @@ StackOverflowHook (W_ stack_size) /* in bytes */
fprintf(stderr, "Stack space overflow: current size %" FMT_Word " bytes.\nUse `+RTS -Ksize -RTS' to increase it.\n", stack_size);
}
+
+// Local Variables:
+// mode: C
+// fill-column: 80
+// indent-tabs-mode: nil
+// c-basic-offset: 4
+// buffer-file-coding-system: utf-8-unix
+// End: