From 08007e45924c15d4930f13c5f8e3bbe627c1a1bc Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 12 Apr 2011 17:25:12 -0400 Subject: Coding standard. Fixes for github .rst display. --- notes/coding_standard.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'notes') diff --git a/notes/coding_standard.rst b/notes/coding_standard.rst index b0fa91b..f761db7 100644 --- a/notes/coding_standard.rst +++ b/notes/coding_standard.rst @@ -362,11 +362,11 @@ Documentation General Formatting ------------------ +.. highlight:: scheme + - Keep it 80-column clean. That means Emacs says the largest column number=79. You should turn on column number mode to help you out: -.. highlight:: scheme - (column-number-mode 1) You can get more help from lineker-mode: @@ -379,6 +379,8 @@ General Formatting (dolist (hook '(c-mode-hook c++-mode-hook)) (add-hook hook (lambda () (lineker-mode 1)))) +.. highlight:: cpp + Language Features and Compiler Extensions ----------------------------------------- @@ -391,10 +393,10 @@ Language Features and Compiler Extensions - Explicitly approved GCC extensions: - * asm volatile: + * ``asm volatile``: http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html - * Nested functions: + * ``Nested functions``: http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html - In wirish, generally be very conservative when using C++ features -- cgit v1.2.3