Mercurial > hg > octave-shane > gnulib-hg
annotate tests/unictype/test-combining.c @ 14351:724011432f7b
Consistent macro naming for macros that use GCC __attribute__.
* lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
_ATTRIBUTE_NONNULL_.
* lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
* lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
* lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
ATTRIBUTE_DEPRECATED.
* lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
ATTRIBUTE_NORETURN.
* lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
* lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
* lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
* lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
(_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
(_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
* lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
ATTRIBUTE_SENTINEL.
* lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
ATTRIBUTE_RETURN_CHECK.
* tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
* tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
ATTRIBUTE_NORETURN.
* tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
Reported by Paul Eggert.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 13 Feb 2011 23:44:28 +0100 |
parents | a48d3d749ca5 |
children |
rev | line source |
---|---|
9472
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Test the Unicode character type functions. |
12496
a48d3d749ca5
Refactor common macros used in tests.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
2 Copyright (C) 2007-2009 Free Software Foundation, Inc. |
9472
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 it under the terms of the GNU General Public License as published by |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 (at your option) any later version. |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 This program is distributed in the hope that it will be useful, |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 GNU General Public License for more details. |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 You should have received a copy of the GNU General Public License |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 #include <config.h> |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 #include "unictype.h" |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 #include <string.h> |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 |
12496
a48d3d749ca5
Refactor common macros used in tests.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
23 #include "macros.h" |
9472
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 int |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 main () |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 { |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 ASSERT (uc_combining_class ('x') == UC_CCC_NR); |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 ASSERT (uc_combining_class (0x0300) == UC_CCC_A); |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 ASSERT (uc_combining_class (0x0319) == UC_CCC_B); |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
31 ASSERT (uc_combining_class (0x0327) == UC_CCC_ATB); |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 ASSERT (uc_combining_class (0x093C) == UC_CCC_NK); |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
33 |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 return 0; |
7e73893994b7
Tests for Unicode character classification functions.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
35 } |