Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/external/mit/expat/dist/tests/minicheck.h,v rcsdiff: /ftp/cvs/cvsroot/src/external/mit/expat/dist/tests/minicheck.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1.1.1.8.1 retrieving revision 1.1.1.1.8.2 diff -u -p -r1.1.1.1.8.1 -r1.1.1.1.8.2 --- src/external/mit/expat/dist/tests/minicheck.h 2016/05/18 10:45:14 1.1.1.1.8.1 +++ src/external/mit/expat/dist/tests/minicheck.h 2017/02/19 07:26:20 1.1.1.1.8.2 @@ -26,6 +26,11 @@ extern "C" { #define __func__ __FUNCTION__ #endif +/* ISO C90 does not support '__func__' predefined identifier */ +#if defined(__STDC_VERSION__) && (__STDC_VERSION__ < 199901) +# define __func__ "(unknown)" +#endif + #define START_TEST(testname) static void testname(void) { \ _check_set_test_info(__func__, __FILE__, __LINE__); \ { @@ -48,12 +53,12 @@ struct SRunner { }; struct Suite { - char *name; + const char *name; TCase *tests; }; struct TCase { - char *name; + const char *name; tcase_setup_function setup; tcase_teardown_function teardown; tcase_test_function *tests; @@ -72,9 +77,9 @@ void _check_set_test_info(char const *fu * Prototypes for the actual implementation. */ -void _fail_unless(int condition, const char *file, int line, char *msg); -Suite *suite_create(char *name); -TCase *tcase_create(char *name); +void _fail_unless(int condition, const char *file, int line, const char *msg); +Suite *suite_create(const char *name); +TCase *tcase_create(const char *name); void suite_add_tcase(Suite *suite, TCase *tc); void tcase_add_checked_fixture(TCase *, tcase_setup_function,