X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Fmacros.h;h=adb3744d5c03732ce758ee158199b61c9e1cb7d7;hb=3c7d5d0cf885baa9add1cd34364fa1adfc459630;hp=11db5a8af012db2d17f572346f4bf62ffe6d954f;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/tests/macros.h b/tests/macros.h index 11db5a8af..adb3744d5 100644 --- a/tests/macros.h +++ b/tests/macros.h @@ -1,5 +1,5 @@ /* Common macros used by gnulib tests. - Copyright (C) 2006-2010 Free Software Foundation, Inc. + Copyright (C) 2006-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -62,3 +62,7 @@ *not* work for function parameters of array type, because they are actually parameters of pointer type. */ #define SIZEOF(array) (sizeof (array) / sizeof (array[0])) + +/* STREQ (str1, str2) + Return true if two strings compare equal. */ +#define STREQ(a, b) (strcmp (a, b) == 0)