Annotation of prex-old/doc/html/doc/standard.html, Revision 1.1.1.1
1.1 nbrk 1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2: <html>
3: <head>
4: <title>Prex Coding Standard</title>
5: <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
6: <meta name="keywords" content="Prex, embedded, real-time, operating system, RTOS, open source, free">
7: <meta name="author" content="Kohsuke Ohtani">
8: <link rel="stylesheet" type="text/css" href="../default.css" media="screen">
9: <link rel="stylesheet" type="text/css" href="../print.css" media="print">
10: </head>
11: <body>
12: <div id="top">
13: </div>
14: <div id="middle">
15:
16: <table id="content" cellpadding="0" cellspacing="0">
17: <tbody>
18:
19: <tr>
20: <td id="header" colspan="2" valign="top">
21: <table width="100%" border="0" cellspacing="0" cellpadding="0">
22: <tr>
23: <td id="logo">
24: <a href="http://prex.sourceforge.net/">
25: <img alt="Prex logo" src="../img/logo.gif" border="0"
26: style="width: 281px; height: 56px;"></a>
27: </td>
28: <td id="brief" align="right" valign="bottom">
29: An Open Source, Royalty-free,<br>
30: Real-time Operating System
31: </td>
32: </tr>
33: </table>
34: </td>
35: </tr>
36:
37: <tr>
38: <td id="directory" style="vertical-align: top;">
39: <a href="http://prex.sourceforge.net/">Prex Home</a> >
40: <a href="index.html">Document Index</a> >
41: Coding Standard
42: </tr>
43: <tr><td class="pad" colspan="2" style="vertical-align: top;"></td></tr>
44:
45: <tr>
46: <td id="main" style="vertical-align: top;">
47: <h1>Prex Coding Standard</h1>
48:
49: <i>Version 0.1 (Draft), 2005/03/07</i><br><br>
50:
51: Prex source code should be written with:
52: <ul>
53: <li>K&R style</li>
54: <li>tab width: 8</li>
55: <li>indent: 8</li>
56: <li>No space afeter cast</li>
57: </ul>
58: Or, you can use "indent" utility with the following options.
59: <pre class="terminal">$ indent -kr -i8 -ts8 -ncs -psl foo.c</pre>
60: Tab is not white space.
61: <p>
62: Don't ask me about tab and its width.
63: I have ever seen many religious war about it...<br>
64: The answer is "because many BSD/Linux kernel hackers are using it". ;-p
65: </p>
66: </td>
67: </tr>
68: <tr>
69: <td id="footer" colspan="2" style="vertical-align: top;">
70: <a href="http://sourceforge.net">
71: <img src="http://sourceforge.net/sflogo.php?group_id=132028&type=1"
72: alt="SourceForge.net Logo" border="0" height="31" width="88"></a><br>
73: Copyright© 2005-2007 Kohsuke Ohtani
74: </td>
75: </tr>
76:
77: </tbody>
78: </table>
79:
80: </div>
81: <div id="bottom"></div>
82:
83: </body>
84: </html>
CVSweb