[gnome-builder] macros: add ide_str_equal0



commit a808d25cdee0edbab16b2f11f87fe8984270af01
Author: Christian Hergert <christian hergert me>
Date:   Sun May 3 14:17:46 2015 -0700

    macros: add ide_str_equal0
    
    Replacement for g_str_equal() that handles NULL.

 libide/ide-macros.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-macros.h b/libide/ide-macros.h
index 3d7a24d..f9c740c 100644
--- a/libide/ide-macros.h
+++ b/libide/ide-macros.h
@@ -38,6 +38,7 @@ G_BEGIN_DECLS
   } G_STMT_END
 
 #define ide_str_empty0(str) (((str) == NULL)||(*(str) == 0))
+#define ide_str_equal0(a,b) (g_strcmp0((a),(b)) == 0)
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]