bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] A new module called streq_macros that provides STREQ and STRNEQ


From: Kieran Colford
Subject: [PATCH] A new module called streq_macros that provides STREQ and STRNEQ
Date: Wed, 21 May 2014 15:15:20 -0400

---
 modules/streq_macros |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 modules/streq_macros

diff --git a/modules/streq_macros b/modules/streq_macros
new file mode 100644
index 0000000..8a02ee9
--- /dev/null
+++ b/modules/streq_macros
@@ -0,0 +1,24 @@
+Description:
+Add the macros STREQ and STRNEQ to config.h.  This adds the
+functionality that is looked for by sc_prohibit_strcmp from the
+maintainer-makefile.
+
+Files:
+
+Depends-on:
+
+configure.ac:
+AC_DEFINE([STREQ(X, Y)], [((X) != NULL && (Y) != NULL && strcmp (X, Y) == 0)],
+         [test if X and Y are not NULL and are equal])
+AC_DEFINE([STRNEQ(X, Y)], [((X) != NULL && (Y) != NULL && strcmp (X, Y) != 0)],
+          [test if X and Y are not NULL and are not equal])
+
+Makefile.am:
+
+Include:
+
+License:
+LGPL
+
+Maintainer:
+Kieran Colford
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]