+2007-01-15 Eric Seidel <eric@webkit.org>
+
+ Reviewed by bdash.
+
+ * coding/coding-style.html: update to include style for header guards
+
2007-01-10 Geoffrey Garen <ggaren@apple.com>
* coding/coding-style.html: Fixed minor validation error.
* building/run.html: Added.
* nav.inc:
-2006-10-05 Eric Seidel <eric@eseidel.com>
+2006-10-05 Eric Seidel <eric@webkit.org>
Reviewed by Tim H.
* coding/coding-style.html: use css styles, add example for whitespace, add example for c++ constructors
-2006-09-26 Eric Seidel <eric@eseidel.com>
+2006-09-26 Eric Seidel <eric@webkit.org>
Reviewed by anders.
* quality/lifecycle.html:
* quality/reporting.html:
-2006-08-15 Eric Seidel <eric@eseidel.com>
+2006-08-15 Eric Seidel <eric@webkit.org>
Reviewed by TimH.
<li> Macros that expand to function calls or other non-constant computation: these
should be named like functions, and should have parentheses at the end, even if
they take no arguments (with the exception of some special macros like ASSERT).
-Note that usually it is preferrable to use an inline function in such cases instead of a macro.<br>
+Note that usually it is preferable to use an inline function in such cases instead of a macro.<br>
<h4 class="right">Right:</h4>
<pre class="code">
NSLocalizedString(@"Stop", @"Stop button title")
</pre>
</li>
+<li>#define, #ifdef "header guards" should be named exactly the same as the file (including case), replacing the '.' with a '_'.
+<h4 class="right">Right:</h4>
+<pre class="code">
+// HTMLDocument.h
+#ifndef HTMLDocument_h
+#define HTMLDocument_h
+</pre>
+
+<h4 class="wrong">Wrong:</h4>
+<pre class="code">
+// HTMLDocument.h
+#ifndef _HTML_DOCUMENT_H_
+#define _HTML_DOCUMENT_H_
+</pre>
+</li>
</ol>
<h3>Other Punctuation</h3>