X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-wctype.c;h=49d7cfa0de591f9585e924f49d4dab34d6bde8e9;hb=41d7de2bc881ddb3ce8a8a40552724ebb893108a;hp=5deae45de958b12b8399ac1f5f7eb93e69d67e1d;hpb=2dbdc8c00c75511c14b16c90e90a24796093ac91;p=gnulib.git diff --git a/tests/test-wctype.c b/tests/test-wctype.c index 5deae45de..49d7cfa0d 100644 --- a/tests/test-wctype.c +++ b/tests/test-wctype.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007-2009 Free Software Foundation, Inc. + Copyright (C) 2007-2010 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 @@ -20,20 +20,7 @@ #include -#include -#include - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" /* Check that the type wint_t is defined. */ wint_t a = 'x'; @@ -41,7 +28,7 @@ wint_t a = 'x'; wint_t e = WEOF; int -main () +main (void) { /* Check that the isw* functions exist as functions or as macros. */ (void) iswalnum (0);