From 3addd1519544b96d84813951d45cdd5ef9343d7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Thu, 6 Oct 2011 13:32:49 +0200 Subject: [PATCH] Document STREQ_NULLABLE and STRNEQ_NULLABLE --- HACKING | 7 +++++++ docs/hacking.html.in | 6 ++++++ 2 files changed, 13 insertions(+) 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)
     
  • -- 2.47.2