From b62cab6e09c7e643425528364ebbd2d04cc167d1 Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Sat, 13 Mar 2010 15:04:34 +0100 Subject: [PATCH] docs:
 cannot be nested in 

xsltproc complained about this. --- docs/hacking.html.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/hacking.html.in b/docs/hacking.html.in index f5ec6352aa..03a1bee17d 100644 --- a/docs/hacking.html.in +++ b/docs/hacking.html.in @@ -128,20 +128,19 @@

For variadic macros, stick with C99 syntax: +

   #define vshPrint(_ctl, ...) fprintf(stdout, __VA_ARGS__)
   
-

Use parenthesis when checking if a macro is defined, and use indentation to track nesting: - +

   #if defined(HAVE_POSIX_FALLOCATE) && !defined(HAVE_FALLOCATE)
   # define fallocate(a,ignored,b,c) posix_fallocate(a,b,c)
   #endif
   
-

C types

@@ -552,9 +551,11 @@ also rebuild locally, run 'make check syntax-check', and make sure you don't raise errors. Try to look for warnings too; for example, configure with +

       --enable-compile-warnings=error
 
+

which adds -Werror to compile flags, so no warnings get missed