From eef80cf88046fdcfc70cbf2eb7617aadf9afbe98 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 31 Aug 2003 20:53:32 +0000 Subject: Update. * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function. --- libio/libio.h | 8 -------- libio/libioP.h | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'libio') diff --git a/libio/libio.h b/libio/libio.h index af74793369..11274aebb4 100644 --- a/libio/libio.h +++ b/libio/libio.h @@ -516,14 +516,6 @@ extern _IO_ssize_t _IO_wpadn (_IO_FILE *, wint_t, _IO_ssize_t) __THROW; extern void _IO_free_wbackup_area (_IO_FILE *) __THROW; #endif -static inline void -_IO_acquire_lock_fct (_IO_FILE **p) -{ - _IO_FILE *fp = *p; - if ((fp->_flags & _IO_USER_LOCK) == 0) - _IO_funlockfile (fp); -} - #ifdef __cplusplus } #endif diff --git a/libio/libioP.h b/libio/libioP.h index 1d30eef5cd..1e66feaa78 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -970,3 +970,12 @@ extern struct _IO_fake_stdiobuf _IO_stdin_buf, _IO_stdout_buf, _IO_stderr_buf; #else # define CHECK_FILE(FILE, RET) COERCE_FILE (FILE) #endif + +static inline void +__attribute__ ((__always_inline__)) +_IO_acquire_lock_fct (_IO_FILE **p) +{ + _IO_FILE *fp = *p; + if ((fp->_flags & _IO_USER_LOCK) == 0) + _IO_funlockfile (fp); +} -- cgit v1.2.3