annotate lib/scandir.c @ 11639:b2e769838448

hash: fix memory leak in last patch * lib/hash.c (hash_rehash): Avoid memory leak. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Thu, 18 Jun 2009 15:24:38 -0600
parents 6c37790abb93
children 7cbcde229d97
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11038
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Copyright (C) 1992-1998, 2000, 2002, 2003, 2009 Free Software Foundation, Inc.
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 This file is part of the GNU C Library.
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software; you can redistribute it and/or modify it
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 under the terms of the GNU General Public License as published by the
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 Free Software Foundation; either version 2, or (at your option) any
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 later version.
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program; if not, write to the Free Software Foundation,
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #include <config.h>
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <dirent.h>
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <stdlib.h>
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #include <string.h>
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include <errno.h>
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #if _LIBC
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 # include <bits/libc-lock.h>
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #endif
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 #if ! defined __builtin_expect && __GNUC__ < 3
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 # define __builtin_expect(expr, expected) (expr)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 #endif
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 #undef select
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 #if _LIBC
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 # ifndef SCANDIR
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 # define SCANDIR scandir
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 # define READDIR __readdir
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 # define DIRENT_TYPE struct dirent
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 # endif
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 #else
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 # define SCANDIR scandir
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 # define READDIR readdir
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 # define DIRENT_TYPE struct dirent
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 # define __opendir opendir
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 # define __closedir closedir
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 # define __set_errno(val) errno = (val)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 #endif
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 #ifndef SCANDIR_CANCEL
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 # define SCANDIR_CANCEL
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52 struct scandir_cancel_struct
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53 {
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 DIR *dp;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55 void *v;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56 size_t cnt;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 };
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
58
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59 # if _LIBC
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60 static void
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 cancel_handler (void *arg)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 {
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63 struct scandir_cancel_struct *cp = arg;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 size_t i;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 void **v = cp->v;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
67 for (i = 0; i < cp->cnt; ++i)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
68 free (v[i]);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
69 free (v);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
70 (void) __closedir (cp->dp);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
71 }
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
72 # endif
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
73 #endif
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
74
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
75
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
76 int
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
77 SCANDIR (const char *dir,
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
78 DIRENT_TYPE ***namelist,
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
79 int (*select) (const DIRENT_TYPE *),
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
80 int (*cmp) (const DIRENT_TYPE **, const DIRENT_TYPE **))
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
81 {
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
82 DIR *dp = __opendir (dir);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
83 DIRENT_TYPE **v = NULL;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
84 size_t vsize = 0;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
85 struct scandir_cancel_struct c;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
86 DIRENT_TYPE *d;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
87 int save;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
88
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
89 if (dp == NULL)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
90 return -1;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
91
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
92 save = errno;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
93 __set_errno (0);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
94
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
95 c.dp = dp;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
96 c.v = NULL;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
97 c.cnt = 0;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
98 #if _LIBC
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
99 __libc_cleanup_push (cancel_handler, &c);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
100 #endif
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
101
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
102 while ((d = READDIR (dp)) != NULL)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
103 {
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
104 int use_it = select == NULL;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
105
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
106 if (! use_it)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
107 {
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
108 use_it = select (d);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
109 /* The select function might have changed errno. It was
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
110 zero before and it need to be again to make the latter
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
111 tests work. */
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
112 __set_errno (0);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
113 }
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
114
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
115 if (use_it)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
116 {
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
117 DIRENT_TYPE *vnew;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
118 size_t dsize;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
119
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
120 /* Ignore errors from select or readdir */
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
121 __set_errno (0);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
122
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
123 if (__builtin_expect (c.cnt == vsize, 0))
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
124 {
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
125 DIRENT_TYPE **new;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
126 if (vsize == 0)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
127 vsize = 10;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
128 else
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
129 vsize *= 2;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
130 new = (DIRENT_TYPE **) realloc (v, vsize * sizeof (*v));
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
131 if (new == NULL)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
132 break;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
133 v = new;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
134 c.v = (void *) v;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
135 }
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
136
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
137 dsize = &d->d_name[_D_ALLOC_NAMLEN (d)] - (char *) d;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
138 vnew = (DIRENT_TYPE *) malloc (dsize);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
139 if (vnew == NULL)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
140 break;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
141
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
142 v[c.cnt++] = (DIRENT_TYPE *) memcpy (vnew, d, dsize);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
143 }
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
144 }
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
145
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
146 if (__builtin_expect (errno, 0) != 0)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
147 {
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
148 save = errno;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
149
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
150 while (c.cnt > 0)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
151 free (v[--c.cnt]);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
152 free (v);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
153 c.cnt = -1;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
154 }
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
155 else
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
156 {
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
157 /* Sort the list if we have a comparison function to sort with. */
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
158 if (cmp != NULL)
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
159 qsort (v, c.cnt, sizeof (*v), (int (*) (const void *, const void *)) cmp);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
160
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
161 *namelist = v;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
162 }
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
163
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
164 #if _LIBC
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
165 __libc_cleanup_pop (0);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
166 #endif
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
167
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
168 (void) __closedir (dp);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
169 __set_errno (save);
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
170
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
171 return c.cnt;
6c37790abb93 New module 'scandir'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
172 }