Commit 39b5c1cb authored by Austin Seipp's avatar Austin Seipp
Browse files

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: default avatarAustin Seipp <austin@well-typed.com>
parent 952f622c
......@@ -65,3 +65,11 @@ void markSignalHandlers (evac_fn evac, void *user);
#endif /* RTS_USER_SIGNALS */
#endif /* RTSSIGNALS_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -543,3 +543,11 @@ stg_exit(int n)
(*exitFn)(n);
exit(n);
}
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -329,3 +329,11 @@ void checkFPUStack(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:
......@@ -48,3 +48,11 @@ void checkFPUStack(void);
#include "EndPrivate.h"
#endif /* RTSUTILS_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -1696,3 +1696,11 @@ void stmWriteTVar(Capability *cap,
}
/*......................................................................*/
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -221,3 +221,11 @@ void stmWriteTVar(Capability *cap,
#endif /* STM_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -2869,3 +2869,11 @@ resurrectThreads (StgTSO *threads)
}
}
}
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -259,3 +259,11 @@ emptyThreadQueues(Capability *cap)
#endif /* SCHEDULE_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -310,3 +310,11 @@ newSpark (StgRegTable *reg STG_UNUSED, StgClosure *p STG_UNUSED)
}
#endif /* THREADED_RTS */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -106,3 +106,11 @@ INLINE_HEADER rtsBool fizzledSpark (StgClosure *spark)
#include "EndPrivate.h"
#endif /* SPARKS_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -549,3 +549,11 @@ updateStableTables(rtsBool full)
});
}
}
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -52,3 +52,11 @@ extern Mutex stable_mutex;
#include "EndPrivate.h"
#endif /* STABLE_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -1004,3 +1004,11 @@ statsClose( void )
fclose(sf);
}
}
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -75,3 +75,11 @@ void statsPrintf( char *s, ... )
#include "EndPrivate.h"
#endif /* STATS_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -815,3 +815,11 @@ StgRun(StgFunPtr f, StgRegTable *basereg) {
#endif
#endif /* !USE_MINIINTERPRETER */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -200,3 +200,11 @@ __decodeFloat_Int (I_ *man, I_ *exp, StgFloat flt)
}
}
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -21,3 +21,11 @@ void __decodeFloat_Int (I_ *man, I_ *exp, StgFloat flt);
#include "EndPrivate.h"
#endif /* STGPRIMFLOAT_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -16,3 +16,11 @@ StgWord8 *win32AllocStack(void);
#endif
#endif /* STGRUN_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
......@@ -516,3 +516,11 @@ printAllTasks(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:
......@@ -329,3 +329,11 @@ serialisableTaskId (Task *task
#include "EndPrivate.h"
#endif /* TASK_H */
// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment