![]() ![]() | ![]() |
File: [local] / prex-old / doc / html / doc / standard.html (download) (as text)
Revision 1.1.1.1 (vendor branch), Tue Jun 3 09:38:43 2008 UTC (16 years ago) by nbrk
Yeah, this is an initial import of Prex, portable real-time microkernel operating system. I wanna hack it for non-profit but fun, so let it in. |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Prex Coding Standard</title> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <meta name="keywords" content="Prex, embedded, real-time, operating system, RTOS, open source, free"> <meta name="author" content="Kohsuke Ohtani"> <link rel="stylesheet" type="text/css" href="../default.css" media="screen"> <link rel="stylesheet" type="text/css" href="../print.css" media="print"> </head> <body> <div id="top"> </div> <div id="middle"> <table id="content" cellpadding="0" cellspacing="0"> <tbody> <tr> <td id="header" colspan="2" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="logo"> <a href="http://prex.sourceforge.net/"> <img alt="Prex logo" src="../img/logo.gif" border="0" style="width: 281px; height: 56px;"></a> </td> <td id="brief" align="right" valign="bottom"> An Open Source, Royalty-free,<br> Real-time Operating System </td> </tr> </table> </td> </tr> <tr> <td id="directory" style="vertical-align: top;"> <a href="http://prex.sourceforge.net/">Prex Home</a> > <a href="index.html">Document Index</a> > Coding Standard </tr> <tr><td class="pad" colspan="2" style="vertical-align: top;"></td></tr> <tr> <td id="main" style="vertical-align: top;"> <h1>Prex Coding Standard</h1> <i>Version 0.1 (Draft), 2005/03/07</i><br><br> Prex source code should be written with: <ul> <li>K&R style</li> <li>tab width: 8</li> <li>indent: 8</li> <li>No space afeter cast</li> </ul> Or, you can use "indent" utility with the following options. <pre class="terminal">$ indent -kr -i8 -ts8 -ncs -psl foo.c</pre> Tab is not white space. <p> Don't ask me about tab and its width. I have ever seen many religious war about it...<br> The answer is "because many BSD/Linux kernel hackers are using it". ;-p </p> </td> </tr> <tr> <td id="footer" colspan="2" style="vertical-align: top;"> <a href="http://sourceforge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=132028&type=1" alt="SourceForge.net Logo" border="0" height="31" width="88"></a><br> Copyright© 2005-2007 Kohsuke Ohtani </td> </tr> </tbody> </table> </div> <div id="bottom"></div> </body> </html>