Mercurial > gnulib
annotate tests/test-glob-h.c @ 40057:b06060465f09
maint: Run 'make update-copyright'
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 01 Jan 2019 00:25:11 +0100 |
parents | c2e4326c3f66 |
children |
rev | line source |
---|---|
39777 | 1 /* Test of <glob.h> substitute. |
40057
b06060465f09
maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents:
39777
diff
changeset
|
2 Copyright (C) 2009-2019 Free Software Foundation, Inc. |
39777 | 3 |
4 This program is free software: you can redistribute it and/or modify | |
5 it under the terms of the GNU General Public License as published by | |
6 the Free Software Foundation; either version 3 of the License, or | |
7 (at your option) any later version. | |
8 | |
9 This program is distributed in the hope that it will be useful, | |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 GNU General Public License for more details. | |
13 | |
14 You should have received a copy of the GNU General Public License | |
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */ | |
16 | |
17 /* Written by Simon Josefsson <simon@josefsson.org>, 2009. */ | |
18 | |
19 #include <config.h> | |
20 | |
21 #include <glob.h> | |
22 | |
23 #include "macros.h" | |
24 | |
25 /* Check that size_t is defined. */ | |
26 size_t a; | |
27 | |
28 /* Check that the various GLOB_* macros are defined. */ | |
29 int flags[] = | |
30 { | |
31 GLOB_APPEND, | |
32 GLOB_DOOFFS, | |
33 GLOB_ERR, | |
34 GLOB_MARK, | |
35 GLOB_NOCHECK, | |
36 GLOB_NOESCAPE, | |
37 GLOB_NOSORT | |
38 }; | |
39 int ret[] = | |
40 { | |
41 GLOB_ABORTED, | |
42 GLOB_NOMATCH, | |
43 GLOB_NOSPACE | |
44 }; | |
45 | |
46 int | |
47 main () | |
48 { | |
49 glob_t g; | |
50 | |
51 /* Make sure glob_t struct members exists. */ | |
52 ASSERT (sizeof (g.gl_pathc)); | |
53 ASSERT (sizeof (g.gl_pathv)); | |
54 ASSERT (sizeof (g.gl_offs)); | |
55 | |
56 return 0; | |
57 } |