summaryrefslogtreecommitdiff
path: root/rts/sm
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/sm
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/sm')
-rw-r--r--rts/sm/BlockAlloc.c8
-rw-r--r--rts/sm/BlockAlloc.h8
-rw-r--r--rts/sm/Compact.c8
-rw-r--r--rts/sm/Compact.h8
-rw-r--r--rts/sm/Evac.c8
-rw-r--r--rts/sm/Evac.h8
-rw-r--r--rts/sm/GC.c8
-rw-r--r--rts/sm/GC.h8
-rw-r--r--rts/sm/GCAux.c8
-rw-r--r--rts/sm/GCTDecl.h8
-rw-r--r--rts/sm/GCThread.h8
-rw-r--r--rts/sm/GCUtils.c8
-rw-r--r--rts/sm/GCUtils.h8
-rw-r--r--rts/sm/MBlock.c8
-rw-r--r--rts/sm/MarkStack.h8
-rw-r--r--rts/sm/MarkWeak.c8
-rw-r--r--rts/sm/MarkWeak.h8
-rw-r--r--rts/sm/OSMem.h8
-rw-r--r--rts/sm/Sanity.c8
-rw-r--r--rts/sm/Sanity.h8
-rw-r--r--rts/sm/Scav.c8
-rw-r--r--rts/sm/Scav.h8
-rw-r--r--rts/sm/Storage.c8
-rw-r--r--rts/sm/Storage.h8
-rw-r--r--rts/sm/Sweep.c8
-rw-r--r--rts/sm/Sweep.h8
26 files changed, 208 insertions, 0 deletions
diff --git a/rts/sm/BlockAlloc.c b/rts/sm/BlockAlloc.c
index f06855e63a..55310fdf9f 100644
--- a/rts/sm/BlockAlloc.c
+++ b/rts/sm/BlockAlloc.c
@@ -894,3 +894,11 @@ reportUnmarkedBlocks (void)
}
#endif
+
+// 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/sm/BlockAlloc.h b/rts/sm/BlockAlloc.h
index aebb71a913..42b064fed8 100644
--- a/rts/sm/BlockAlloc.h
+++ b/rts/sm/BlockAlloc.h
@@ -32,3 +32,11 @@ extern W_ hw_alloc_blocks; // high-water allocated blocks
#include "EndPrivate.h"
#endif /* BLOCK_ALLOC_H */
+
+// 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/sm/Compact.c b/rts/sm/Compact.c
index b07a886eab..e430d97002 100644
--- a/rts/sm/Compact.c
+++ b/rts/sm/Compact.c
@@ -1024,3 +1024,11 @@ compact(StgClosure *static_objects)
gen->n_old_blocks = blocks;
}
}
+
+// 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/sm/Compact.h b/rts/sm/Compact.h
index 1ec915f49a..306138415a 100644
--- a/rts/sm/Compact.h
+++ b/rts/sm/Compact.h
@@ -51,3 +51,11 @@ void compact (StgClosure *static_objects);
#include "EndPrivate.h"
#endif /* SM_COMPACT_H */
+
+// 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/sm/Evac.c b/rts/sm/Evac.c
index 4a550cdde5..e90d3e0857 100644
--- a/rts/sm/Evac.c
+++ b/rts/sm/Evac.c
@@ -1108,3 +1108,11 @@ bale_out:
unchain_thunk_selectors(prev_thunk_selector, *q);
return;
}
+
+// 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/sm/Evac.h b/rts/sm/Evac.h
index 62d54eb7b9..26d0c9eddb 100644
--- a/rts/sm/Evac.h
+++ b/rts/sm/Evac.h
@@ -41,3 +41,11 @@ extern W_ thunk_selector_depth;
#endif /* SM_EVAC_H */
+
+// 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/sm/GC.c b/rts/sm/GC.c
index dabcd722d7..97463746a2 100644
--- a/rts/sm/GC.c
+++ b/rts/sm/GC.c
@@ -1770,3 +1770,11 @@ static void gcCAFs(void)
debugTrace(DEBUG_gccafs, "%d CAFs live", i);
}
#endif
+
+// 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/sm/GC.h b/rts/sm/GC.h
index 571aa07110..0f0b94e784 100644
--- a/rts/sm/GC.h
+++ b/rts/sm/GC.h
@@ -64,3 +64,11 @@ void releaseGCThreads (Capability *cap);
#include "EndPrivate.h"
#endif /* SM_GC_H */
+
+// 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/sm/GCAux.c b/rts/sm/GCAux.c
index 10df9dd84b..145ff630d2 100644
--- a/rts/sm/GCAux.c
+++ b/rts/sm/GCAux.c
@@ -146,3 +146,11 @@ markCAFs (evac_fn evac, void *user)
evac(user, &c->indirectee);
}
}
+
+// 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/sm/GCTDecl.h b/rts/sm/GCTDecl.h
index 5602cb8771..74b788012c 100644
--- a/rts/sm/GCTDecl.h
+++ b/rts/sm/GCTDecl.h
@@ -144,3 +144,11 @@ extern __thread gc_thread* gct;
#include "EndPrivate.h"
#endif // SM_GCTDECL_H
+
+// 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/sm/GCThread.h b/rts/sm/GCThread.h
index 84ce3f0239..8ed8afe055 100644
--- a/rts/sm/GCThread.h
+++ b/rts/sm/GCThread.h
@@ -210,3 +210,11 @@ extern ThreadLocalKey gctKey;
#endif // SM_GCTHREAD_H
+
+// 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/sm/GCUtils.c b/rts/sm/GCUtils.c
index 11345e92c8..078da12d94 100644
--- a/rts/sm/GCUtils.c
+++ b/rts/sm/GCUtils.c
@@ -343,3 +343,11 @@ printMutableList(bdescr *bd)
debugBelch("\n");
}
#endif /* DEBUG */
+
+// 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/sm/GCUtils.h b/rts/sm/GCUtils.h
index 1d217adbdd..de5aefca6a 100644
--- a/rts/sm/GCUtils.h
+++ b/rts/sm/GCUtils.h
@@ -66,3 +66,11 @@ recordMutableGen_GC (StgClosure *p, nat gen_no)
#include "EndPrivate.h"
#endif /* SM_GCUTILS_H */
+
+// 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/sm/MBlock.c b/rts/sm/MBlock.c
index 6bc4049959..20b301552c 100644
--- a/rts/sm/MBlock.c
+++ b/rts/sm/MBlock.c
@@ -286,3 +286,11 @@ initMBlocks(void)
memset(mblock_cache,0xff,sizeof(mblock_cache));
#endif
}
+
+// 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/sm/MarkStack.h b/rts/sm/MarkStack.h
index f978a32563..081a189bc6 100644
--- a/rts/sm/MarkStack.h
+++ b/rts/sm/MarkStack.h
@@ -69,3 +69,11 @@ mark_stack_empty(void)
#include "EndPrivate.h"
#endif /* SM_MARKSTACK_H */
+
+// 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/sm/MarkWeak.c b/rts/sm/MarkWeak.c
index 0324f3b4b9..b8ec4532b4 100644
--- a/rts/sm/MarkWeak.c
+++ b/rts/sm/MarkWeak.c
@@ -416,3 +416,11 @@ markWeakPtrList ( 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/sm/MarkWeak.h b/rts/sm/MarkWeak.h
index bd0231d74c..ee94eebba6 100644
--- a/rts/sm/MarkWeak.h
+++ b/rts/sm/MarkWeak.h
@@ -28,3 +28,11 @@ void markWeakPtrList ( void );
#include "EndPrivate.h"
#endif /* SM_MARKWEAK_H */
+
+// 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/sm/OSMem.h b/rts/sm/OSMem.h
index db704fc78b..e5c97eccea 100644
--- a/rts/sm/OSMem.h
+++ b/rts/sm/OSMem.h
@@ -23,3 +23,11 @@ void setExecutable (void *p, W_ len, rtsBool exec);
#include "EndPrivate.h"
#endif /* SM_OSMEM_H */
+
+// 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/sm/Sanity.c b/rts/sm/Sanity.c
index c653331164..07230afd4a 100644
--- a/rts/sm/Sanity.c
+++ b/rts/sm/Sanity.c
@@ -931,3 +931,11 @@ memInventory (rtsBool show)
#endif /* DEBUG */
+
+// 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/sm/Sanity.h b/rts/sm/Sanity.h
index f302bc22b1..9a2d2697da 100644
--- a/rts/sm/Sanity.h
+++ b/rts/sm/Sanity.h
@@ -44,3 +44,11 @@ void checkBQ (StgTSO *bqe, StgClosure *closure);
#endif /* DEBUG */
#endif /* SANITY_H */
+
+// 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/sm/Scav.c b/rts/sm/Scav.c
index b9f8f1259b..abebb3ca96 100644
--- a/rts/sm/Scav.c
+++ b/rts/sm/Scav.c
@@ -2070,3 +2070,11 @@ loop:
if (work_to_do) goto loop;
}
+
+// 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/sm/Scav.h b/rts/sm/Scav.h
index 725d27ccf1..c755f39a8e 100644
--- a/rts/sm/Scav.h
+++ b/rts/sm/Scav.h
@@ -30,3 +30,11 @@ void scavenge_capability_mut_Lists1 (Capability *cap);
#endif /* SM_SCAV_H */
+
+// 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/sm/Storage.c b/rts/sm/Storage.c
index 379d9da769..5d0cbacec8 100644
--- a/rts/sm/Storage.c
+++ b/rts/sm/Storage.c
@@ -1352,3 +1352,11 @@ _bdescr (StgPtr p)
}
#endif
+
+// 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/sm/Storage.h b/rts/sm/Storage.h
index e433c2b8fe..c1a92aca35 100644
--- a/rts/sm/Storage.h
+++ b/rts/sm/Storage.h
@@ -141,3 +141,11 @@ extern StgIndStatic * revertible_caf_list;
#include "EndPrivate.h"
#endif /* SM_STORAGE_H */
+
+// 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/sm/Sweep.c b/rts/sm/Sweep.c
index c927f300d7..842ede243e 100644
--- a/rts/sm/Sweep.c
+++ b/rts/sm/Sweep.c
@@ -84,3 +84,11 @@ sweep(generation *gen)
ASSERT(countBlocks(gen->old_blocks) == gen->n_old_blocks);
}
+
+// 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/sm/Sweep.h b/rts/sm/Sweep.h
index b590faa803..29b29f3638 100644
--- a/rts/sm/Sweep.h
+++ b/rts/sm/Sweep.h
@@ -17,3 +17,11 @@
RTS_PRIVATE void sweep(generation *gen);
#endif /* SM_SWEEP_H */
+
+// Local Variables:
+// mode: C
+// fill-column: 80
+// indent-tabs-mode: nil
+// c-basic-offset: 4
+// buffer-file-coding-system: utf-8-unix
+// End: