projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
symlink: Update regarding AIX.
[gnulib.git]
/
tests
/
test-wctype.c
diff --git
a/tests/test-wctype.c
b/tests/test-wctype.c
index
5deae45
..
5db215e
100644
(file)
--- a/
tests/test-wctype.c
+++ b/
tests/test-wctype.c
@@
-1,5
+1,5
@@
/* Test of <wctype.h> substitute.
/* Test of <wctype.h> substitute.
- Copyright (C) 2007-20
09
Free Software Foundation, Inc.
+ Copyright (C) 2007-20
10
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
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 <wctype.h>
#include <wctype.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#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';
/* Check that the type wint_t is defined. */
wint_t a = 'x';
@@
-41,14
+28,12
@@
wint_t a = 'x';
wint_t e = WEOF;
int
wint_t e = WEOF;
int
-main ()
+main (
void
)
{
/* Check that the isw* functions exist as functions or as macros. */
(void) iswalnum (0);
(void) iswalpha (0);
{
/* Check that the isw* functions exist as functions or as macros. */
(void) iswalnum (0);
(void) iswalpha (0);
-#if 0 /* not portable: missing on mingw */
(void) iswblank (0);
(void) iswblank (0);
-#endif
(void) iswcntrl (0);
(void) iswdigit (0);
(void) iswgraph (0);
(void) iswcntrl (0);
(void) iswdigit (0);
(void) iswgraph (0);
@@
-62,9
+47,7
@@
main ()
/* Check that the isw* functions map WEOF to 0. */
ASSERT (!iswalnum (e));
ASSERT (!iswalpha (e));
/* Check that the isw* functions map WEOF to 0. */
ASSERT (!iswalnum (e));
ASSERT (!iswalpha (e));
-#if 0 /* not portable: missing on mingw */
ASSERT (!iswblank (e));
ASSERT (!iswblank (e));
-#endif
ASSERT (!iswcntrl (e));
ASSERT (!iswdigit (e));
ASSERT (!iswgraph (e));
ASSERT (!iswcntrl (e));
ASSERT (!iswdigit (e));
ASSERT (!iswgraph (e));