[Sbcl-devel] SBCL source code style rules

12 views
Skip to first unread message

Richard M Kreuter

unread,
Dec 10, 2006, 5:39:09 PM12/10/06
to sbcl-...@lists.sourceforge.net
Hello,

Where does one find the source code style rules for SBCL, in
particular, for the runtime code?

(While I'm at it, does anybody have Emacs settings for these rules?)

Thanks,
RmK


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sbcl-devel mailing list
Sbcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sbcl-devel

Brian Downing

unread,
Dec 10, 2006, 7:41:18 PM12/10/06
to Richard M Kreuter, sbcl-...@lists.sourceforge.net
On Sun, Dec 10, 2006 at 05:39:09PM -0500, Richard M Kreuter wrote:
> Where does one find the source code style rules for SBCL, in
> particular, for the runtime code?
>
> (While I'm at it, does anybody have Emacs settings for these rules?)

Follow the existing style. Someone else may have more details, but I
believe some basic rules of thumb are:

K&R brace style, 4-space indents, no tabs or trailing whitespace.

..or..

(setq c-default-style "K&R")
(setq c-basic-offset 4)
(setq indent-tabs-mode nil)

(The no tabs or trailing whitespace rule applies to the Lisp code as
well, and is enforced by tools-for-build/canonicalize-whitespace upon
build.)

-bcd

Paolo Amoroso

unread,
Dec 11, 2006, 5:46:50 AM12/11/06
to sbcl-...@lists.sourceforge.net
Richard M Kreuter <kre...@progn.net> writes:

> Where does one find the source code style rules for SBCL, in
> particular, for the runtime code?

See files STYLE, PRINCIPLES and TLA at the root of the SBCL source
tree.


Paolo
--
Lisp Propulsion Laboratory log - http://www.paoloamoroso.it/log

Reply all
Reply to author
Forward
0 new messages