1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-06-15 06:41:47 +03:00

(get_null_defines): Treat NOT_IN_libc special. It is known to be defined.

This commit is contained in:
Ulrich Drepper
2002-08-08 04:44:47 +00:00
parent 7d0b1164e6
commit ec6170f59b
2 changed files with 16 additions and 10 deletions

View File

@ -72,11 +72,13 @@ libc_hidden_proto (__strndup)
libc_hidden_proto (__strerror_r) libc_hidden_proto (__strerror_r)
libc_hidden_proto (__strverscmp) libc_hidden_proto (__strverscmp)
# ifndef _ISOMAC
# ifndef index # ifndef index
# define index(s, c) (strchr ((s), (c))) # define index(s, c) (strchr ((s), (c)))
# endif # endif
# ifndef rindex # ifndef rindex
# define rindex(s, c) (strrchr ((s), (c))) # define rindex(s, c) (strrchr ((s), (c)))
# endif # endif
# endif
#endif #endif

View File

@ -303,14 +303,18 @@ get_null_defines (void)
start = &line[8]; start = &line[8];
for (end = start + 1; !isspace (*end) && *end != '\0'; ++end) for (end = start + 1; !isspace (*end) && *end != '\0'; ++end)
; ;
result[result_len++] = xstrndup (start, end - start); result[result_len] = xstrndup (start, end - start);
if (strcmp (result[result_len], "NOT_IN_libc") != 0)
{
if (first) if (first)
{ {
fputs ("The following identifiers will be ignored since the compiler defines them\nby default:\n", stdout); fputs ("The following identifiers will be ignored since the compiler defines them\nby default:\n", stdout);
first = 0; first = 0;
} }
puts (result[result_len - 1]); puts (result[result_len]);
}
++result_len;
} }
if (result_len == result_max) if (result_len == result_max)
{ {