X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-wcwidth.c;h=6d85665e3405fd8d0a746f2a9cdb1122d95f7f90;hb=533101a268dc5015a140ff4695d8eeb04fbe57b6;hp=5087b088dcc67a5ce8416ea33a48e65a4eb5e5d7;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-wcwidth.c b/tests/test-wcwidth.c index 5087b088d..6d85665e3 100644 --- a/tests/test-wcwidth.c +++ b/tests/test-wcwidth.c @@ -1,5 +1,5 @@ /* Test of wcwidth() function. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2013 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,24 +20,14 @@ #include +#include "signature.h" +SIGNATURE_CHECK (wcwidth, int, (wchar_t)); + #include -#include -#include #include #include "localcharset.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main ()