Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2001-05-05  Jakub Jelinek  <[email protected]>

	* include/features.h (__USE_EXTERN_INLINES): Don't define if
	__NO_INLINE__ is defined.
	* ctype/ctype.h (tolower, toupper): Change the guard condition to
	__USE_EXTERN_INLINES check only.
	* stdlib/stdlib.h (strtod, ...): Likewise.
	* wcsmbs/wchar.h (mbrlen): Likewise.
	* string/string.h: Only include bits/string.h and bits/string2.h
	if __NO_INLINE__ is not defined.
  • Loading branch information
ajaeger committed May 7, 2001
1 parent 3ebab9e commit 07c416e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2001-05-05 Jakub Jelinek <[email protected]>

* include/features.h (__USE_EXTERN_INLINES): Don't define if
__NO_INLINE__ is defined.
* ctype/ctype.h (tolower, toupper): Change the guard condition to
__USE_EXTERN_INLINES check only.
* stdlib/stdlib.h (strtod, ...): Likewise.
* wcsmbs/wchar.h (mbrlen): Likewise.
* string/string.h: Only include bits/string.h and bits/string2.h
if __NO_INLINE__ is not defined.

2001-05-07 Andreas Jaeger <[email protected]>

* debug/Makefile ($(objpfx)xtrace): Substitute @SLIBDIR@ instead
Expand Down
5 changes: 2 additions & 3 deletions ctype/ctype.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1991,92,93,95,96,97,98,99 Free Software Foundation, Inc.
/* Copyright (C) 1991,92,93,95,96,97,98,99,2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -163,8 +163,7 @@ __exctype (_tolower);
# define isblank(c) __isctype((c), _ISblank)
# endif

# if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \
&& defined __USE_EXTERN_INLINES
# ifdef __USE_EXTERN_INLINES
extern __inline int
tolower (int __c) __THROW
{
Expand Down
5 changes: 3 additions & 2 deletions include/features.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1991,92,93,95,96,97,98,99, 2000 Free Software Foundation, Inc.
/* Copyright (C) 1991,92,93,95,96,97,98,99,2000,2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -293,7 +293,8 @@
#endif /* !ASSEMBLER */

/* Decide whether we can define 'extern inline' functions in headers. */
#if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__
#if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \
&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__
# define __USE_EXTERN_INLINES 1
#endif

Expand Down
3 changes: 1 addition & 2 deletions stdlib/stdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ extern unsigned long long int __strtoull_internal (__const char *
# endif
#endif /* GCC */

#if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \
&& defined __USE_EXTERN_INLINES
#ifdef __USE_EXTERN_INLINES
/* Define inline functions which call the internal entry points. */

extern __inline double
Expand Down
3 changes: 2 additions & 1 deletion string/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ extern char *basename (__const char *__filename) __THROW;


#if defined __GNUC__ && __GNUC__ >= 2
# if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ && !defined __cplusplus
# if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \
&& !defined __NO_INLINE__ && !defined __cplusplus
/* When using GNU CC we provide some optimized versions of selected
functions from this header. There are two kinds of optimizations:
Expand Down
3 changes: 1 addition & 2 deletions wcsmbs/wchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ extern size_t __mbrlen (__const char *__restrict __s, size_t __n,
extern size_t mbrlen (__const char *__restrict __s, size_t __n,
mbstate_t *__restrict __ps) __THROW;

#if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \
&& defined __USE_EXTERN_INLINES
#ifdef __USE_EXTERN_INLINES
/* Define inline function as optimization. */
extern __inline size_t mbrlen (__const char *__restrict __s, size_t __n,
mbstate_t *__restrict __ps) __THROW
Expand Down

0 comments on commit 07c416e

Please sign in to comment.