From: Guido Günther Date: Thu, 6 Oct 2011 11:32:49 +0000 (+0200) Subject: Document STREQ_NULLABLE and STRNEQ_NULLABLE X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3addd1519544b96d84813951d45cdd5ef9343d7c;p=libvirt.git Document STREQ_NULLABLE and STRNEQ_NULLABLE --- diff --git a/HACKING b/HACKING index 2df560a294..69ea96b29d 100644 --- 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) + + + diff --git a/docs/hacking.html.in b/docs/hacking.html.in index 1a32d07438..89f9980f45 100644 --- a/docs/hacking.html.in +++ b/docs/hacking.html.in @@ -585,6 +585,12 @@
  • For strict equality of a prefix:

       STRPREFIX(a,b)
    +
    +
  • +
  • To avoid having to check if a or b are NULL:

    +
    +  STREQ_NULLABLE(a, b)
    +  STRNEQ_NULLABLE(a, b)