summaryrefslogtreecommitdiff
path: root/wcsmbs/wchar.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-13 15:12:27 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-13 15:12:27 +0000
commit99e46354d96d9dc70c7b5ae7ed1a3d7ff0dbb77f (patch)
treecc97f13ce989554a0bd4f67c1fbcb3982e99fac6 /wcsmbs/wchar.h
parent1622fda9c034eb332f27453d6458ea6d30b119c0 (diff)
Update.
1998-10-13 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include string.h to get memcpy prototype and NULL definition. 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * misc/sys/cdefs.h (__THROW): New macro. * argp/argp.h: Use it to replace the kludgey __P in inline function definitions. * sysdeps/unix/sysv/linux/bits/socket.h: Likewise. * stdlib/stdlib.h: Likewise. * wcsmbs/wchar.h: Likewise. * libio/stdio.h: Likewise. * stdio/stdio.h: Likewise. * sysdeps/wordsize-64/inttypes.h: Likewise. * sysdeps/wordsize-32/inttypes.h: Likewise. * string/argz.h: Likewise. * io/sys/stat.h: Likewise. 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * Rules (stdio_lim): New variable. ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend on Rules and config.make, use $(move-if-change) to avoid unnessary recompilations, and cleanup command. (common-generated): Add bits/stdio_lim.st.
Diffstat (limited to 'wcsmbs/wchar.h')
-rw-r--r--wcsmbs/wchar.h45
1 files changed, 21 insertions, 24 deletions
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h
index 570d4a6ce1..fddb3d626c 100644
--- a/wcsmbs/wchar.h
+++ b/wcsmbs/wchar.h
@@ -236,8 +236,8 @@ extern size_t mbrlen __P ((__const char *__restrict __s, size_t __n,
#if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \
&& defined __USE_EXTERN_INLINES
/* Define inline function as optimization. */
-extern __inline size_t mbrlen __P ((__const char *__restrict __s, size_t __n,
- mbstate_t *__restrict __ps))
+extern __inline size_t mbrlen (__const char *__restrict __s, size_t __n,
+ mbstate_t *__restrict __ps) __THROW
{ return (__ps != NULL
? mbrtowc (NULL, __s, __n, __ps) : __mbrlen (__s, __n, NULL)); }
#endif
@@ -440,40 +440,37 @@ extern unsigned long long int __wcstoull_internal __P ((__const wchar_t *
#if defined __OPTIMIZE__ && __GNUC__ >= 2
/* Define inline functions which call the internal entry points. */
-extern __inline double wcstod __P ((__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr))
+extern __inline double wcstod (__const wchar_t *__restrict __nptr,
+ wchar_t **__restrict __endptr) __THROW
{ return __wcstod_internal (__nptr, __endptr, 0); }
-extern __inline long int wcstol __P ((__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base))
+extern __inline long int wcstol (__const wchar_t *__restrict __nptr,
+ wchar_t **__restrict __endptr,
+ int __base) __THROW
{ return __wcstol_internal (__nptr, __endptr, __base, 0); }
-extern __inline unsigned long int wcstoul __P ((__const wchar_t *
- __restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base))
+extern __inline unsigned long int wcstoul (__const wchar_t *__restrict __nptr,
+ wchar_t **__restrict __endptr,
+ int __base) __THROW
{ return __wcstoul_internal (__nptr, __endptr, __base, 0); }
# ifdef __USE_GNU
-extern __inline float wcstof __P ((__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr))
+extern __inline float wcstof (__const wchar_t *__restrict __nptr,
+ wchar_t **__restrict __endptr) __THROW
{ return __wcstof_internal (__nptr, __endptr, 0); }
-extern __inline __long_double_t wcstold __P ((__const wchar_t *
- __restrict __nptr,
- wchar_t **__restrict __endptr))
+extern __inline __long_double_t wcstold (__const wchar_t *__restrict __nptr,
+ wchar_t **__restrict __endptr) __THROW
{ return __wcstold_internal (__nptr, __endptr, 0); }
__extension__
-extern __inline long long int wcstoq __P ((__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base))
+extern __inline long long int wcstoq (__const wchar_t *__restrict __nptr,
+ wchar_t **__restrict __endptr,
+ int __base) __THROW
{ return __wcstoll_internal (__nptr, __endptr, __base, 0); }
__extension__
-extern __inline unsigned long long int wcstouq __P ((__const wchar_t *
- __restrict __nptr,
- wchar_t **
- __restrict __endptr,
- int __base))
+extern __inline unsigned long long int wcstouq (__const wchar_t *
+ __restrict __nptr,
+ wchar_t **__restrict __endptr,
+ int __base) __THROW
{ return __wcstoull_internal (__nptr, __endptr, __base, 0); }
# endif /* Use GNU. */
#endif /* Optimizing GCC >=2. */