]> xenbits.xensource.com Git - libvirt.git/commitdiff
Document STREQ_NULLABLE and STRNEQ_NULLABLE
authorGuido Günther <agx@sigxcpu.org>
Thu, 6 Oct 2011 11:32:49 +0000 (13:32 +0200)
committerGuido Günther <agx@sigxcpu.org>
Thu, 6 Oct 2011 14:50:38 +0000 (16:50 +0200)
HACKING
docs/hacking.html.in

diff --git a/HACKING b/HACKING
index 2df560a294e7fb61078b1a81534e766b516031a6..69ea96b29d1763f68feb8682cf555e34fa15e5a2 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -496,6 +496,13 @@ following semantically named macros
 
 
 
+- To avoid having to check if a or b are NULL:
+
+  STREQ_NULLABLE(a, b)
+  STRNEQ_NULLABLE(a, b)
+
+
+
 
 
 
index 1a32d07438ba082a229c73ce6db8270b02ecf361..89f9980f45a1cc16f2e605b09b2767b565f4cb11 100644 (file)
       <li><p>For strict equality of a prefix:</p>
 <pre>
   STRPREFIX(a,b)
+</pre>
+      </li>
+      <li><p>To avoid having to check if a or b are NULL:</p>
+<pre>
+  STREQ_NULLABLE(a, b)
+  STRNEQ_NULLABLE(a, b)
 </pre>
       </li>
     </ul>