Mercurial > gnulib
annotate lib/di-set.h @ 40231:9b3c79fdfe0b
strtod: fix clash with strtold
Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
* lib/strtod.c (compute_minus_zero, minus_zero):
Simplify by remving the macro / external variable,
and having just a function. User changed. This avoids
the need for an external variable that might clash.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 11 Mar 2019 16:40:29 -0700 |
parents | 724011432f7b |
children |
rev | line source |
---|---|
14312
e8b52e48a3ab
di-set.h, ino-map.h: add multiple-inclusion guard
Jim Meyering <meyering@redhat.com>
parents:
14276
diff
changeset
|
1 #ifndef _GL_DI_SET_H |
e8b52e48a3ab
di-set.h, ino-map.h: add multiple-inclusion guard
Jim Meyering <meyering@redhat.com>
parents:
14276
diff
changeset
|
2 # define _GL_DI_SET_H |
e8b52e48a3ab
di-set.h, ino-map.h: add multiple-inclusion guard
Jim Meyering <meyering@redhat.com>
parents:
14276
diff
changeset
|
3 |
e8b52e48a3ab
di-set.h, ino-map.h: add multiple-inclusion guard
Jim Meyering <meyering@redhat.com>
parents:
14276
diff
changeset
|
4 # include <sys/types.h> |
14276
6b7046963230
di-set, ino-map: new modules, from coreutils
Jim Meyering <meyering@redhat.com>
parents:
diff
changeset
|
5 |
14351
724011432f7b
Consistent macro naming for macros that use GCC __attribute__.
Bruno Haible <bruno@clisp.org>
parents:
14312
diff
changeset
|
6 # undef _GL_ATTRIBUTE_NONNULL |
14312
e8b52e48a3ab
di-set.h, ino-map.h: add multiple-inclusion guard
Jim Meyering <meyering@redhat.com>
parents:
14276
diff
changeset
|
7 # if __GNUC__ == 3 && __GNUC_MINOR__ >= 3 || 3 < __GNUC__ |
14351
724011432f7b
Consistent macro naming for macros that use GCC __attribute__.
Bruno Haible <bruno@clisp.org>
parents:
14312
diff
changeset
|
8 # define _GL_ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m))) |
14312
e8b52e48a3ab
di-set.h, ino-map.h: add multiple-inclusion guard
Jim Meyering <meyering@redhat.com>
parents:
14276
diff
changeset
|
9 # else |
14351
724011432f7b
Consistent macro naming for macros that use GCC __attribute__.
Bruno Haible <bruno@clisp.org>
parents:
14312
diff
changeset
|
10 # define _GL_ATTRIBUTE_NONNULL(m) |
14312
e8b52e48a3ab
di-set.h, ino-map.h: add multiple-inclusion guard
Jim Meyering <meyering@redhat.com>
parents:
14276
diff
changeset
|
11 # endif |
14276
6b7046963230
di-set, ino-map: new modules, from coreutils
Jim Meyering <meyering@redhat.com>
parents:
diff
changeset
|
12 |
6b7046963230
di-set, ino-map: new modules, from coreutils
Jim Meyering <meyering@redhat.com>
parents:
diff
changeset
|
13 struct di_set *di_set_alloc (void); |
14351
724011432f7b
Consistent macro naming for macros that use GCC __attribute__.
Bruno Haible <bruno@clisp.org>
parents:
14312
diff
changeset
|
14 int di_set_insert (struct di_set *, dev_t, ino_t) _GL_ATTRIBUTE_NONNULL (1); |
724011432f7b
Consistent macro naming for macros that use GCC __attribute__.
Bruno Haible <bruno@clisp.org>
parents:
14312
diff
changeset
|
15 void di_set_free (struct di_set *) _GL_ATTRIBUTE_NONNULL (1); |
14276
6b7046963230
di-set, ino-map: new modules, from coreutils
Jim Meyering <meyering@redhat.com>
parents:
diff
changeset
|
16 int di_set_lookup (struct di_set *dis, dev_t dev, ino_t ino) |
14351
724011432f7b
Consistent macro naming for macros that use GCC __attribute__.
Bruno Haible <bruno@clisp.org>
parents:
14312
diff
changeset
|
17 _GL_ATTRIBUTE_NONNULL (1); |
14312
e8b52e48a3ab
di-set.h, ino-map.h: add multiple-inclusion guard
Jim Meyering <meyering@redhat.com>
parents:
14276
diff
changeset
|
18 |
e8b52e48a3ab
di-set.h, ino-map.h: add multiple-inclusion guard
Jim Meyering <meyering@redhat.com>
parents:
14276
diff
changeset
|
19 #endif |