diff options
| author | Ulrich Drepper <drepper@redhat.com> | 2002-08-28 08:01:11 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 2002-08-28 08:01:11 +0000 |
| commit | 7a5affebe810c786bfc9ef17cdc4d0bc20a1302e (patch) | |
| tree | d461b7135c42ab5555bddfe4a5fa4b46a1c4ca94 | |
| parent | a3f9038c879c11344430169d6daa8fad30d4f379 (diff) | |
| download | glibc-7a5affebe810c786bfc9ef17cdc4d0bc20a1302e.tar.xz glibc-7a5affebe810c786bfc9ef17cdc4d0bc20a1302e.zip | |
Prepare headers for use in ISO C++ compliant implementations.
| -rw-r--r-- | ctype/ctype.h | 19 | ||||
| -rw-r--r-- | libio/stdio.h | 101 | ||||
| -rw-r--r-- | locale/locale.h | 5 | ||||
| -rw-r--r-- | math/bits/mathcalls.h | 69 | ||||
| -rw-r--r-- | math/math.h | 14 | ||||
| -rw-r--r-- | setjmp/setjmp.h | 26 | ||||
| -rw-r--r-- | signal/signal.h | 6 | ||||
| -rw-r--r-- | stdlib/stdlib.h | 56 | ||||
| -rw-r--r-- | string/string.h | 25 | ||||
| -rw-r--r-- | time/time.h | 29 | ||||
| -rw-r--r-- | wcsmbs/wchar.h | 89 | ||||
| -rw-r--r-- | wctype/wctype.h | 22 |
12 files changed, 364 insertions, 97 deletions
diff --git a/ctype/ctype.h b/ctype/ctype.h index 4a8ce30d04..47fba836ca 100644 --- a/ctype/ctype.h +++ b/ctype/ctype.h @@ -85,6 +85,8 @@ extern __const __int32_t *__ctype_toupper; /* Case conversions. */ #define __exctype(name) extern int name (int) __THROW + +__BEGIN_NAMESPACE_STD /* The following names are all functions: int isCHARACTERISTIC(int c); which return nonzero iff C has CHARACTERISTIC. @@ -101,10 +103,6 @@ __exctype (isspace); __exctype (isupper); __exctype (isxdigit); -#ifdef __USE_ISOC99 -__exctype (isblank); -#endif - /* Return the lowercase version of C. */ extern int tolower (int __c) __THROW; @@ -112,6 +110,17 @@ extern int tolower (int __c) __THROW; /* Return the uppercase version of C. */ extern int toupper (int __c) __THROW; +__END_NAMESPACE_STD + + +/* ISO C99 introduced one new function. */ +#ifdef __USE_ISOC99 +__BEGIN_NAMESPACE_C99 + +__exctype (isblank); + +__END_NAMESPACE_C99 +#endif #if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN @@ -147,7 +156,7 @@ __exctype (_tolower); __res = a[(int) (c)]; \ __res; })) -#ifndef __NO_CTYPE +#if !defined __NO_CTYPE && !defined __cplusplus # define isalnum(c) __isctype((c), _ISalnum) # define isalpha(c) __isctype((c), _ISalpha) # define iscntrl(c) __isctype((c), _IScntrl) diff --git a/libio/stdio.h b/libio/stdio.h index 10bd6e5e88..3acaa8bd97 100644 --- a/libio/stdio.h +++ b/libio/stdio.h @@ -41,8 +41,15 @@ __BEGIN_DECLS #if !defined __FILE_defined && defined __need_FILE +__BEGIN_NAMESPACE_STD /* The opaque type of streams. This is the definition used elsewhere. */ typedef struct _IO_FILE FILE; +__END_NAMESPACE_STD +#if defined __USE_LARGEFILE64 || defined __USE_SVID || defined __USE_POSIX \ + || defined __USE_BSD || defined __USE_ISOC99 || defined __USE_XOPEN \ + || defined __USE_POSIX2 +__USING_NAMESPACE_STD(FILE) +#endif # define __FILE_defined 1 #endif /* FILE not defined. */ @@ -76,11 +83,13 @@ typedef _G_va_list va_list; #endif /* The type of the second argument to `fgetpos' and `fsetpos'. */ +__BEGIN_NAMESPACE_STD #ifndef __USE_FILE_OFFSET64 typedef _G_fpos_t fpos_t; #else typedef _G_fpos64_t fpos_t; #endif +__END_NAMESPACE_STD #ifdef __USE_LARGEFILE64 typedef _G_fpos64_t fpos64_t; #endif @@ -130,20 +139,23 @@ typedef _G_fpos64_t fpos64_t; /* Standard streams. */ -extern FILE *stdin; /* Standard input stream. */ -extern FILE *stdout; /* Standard output stream. */ -extern FILE *stderr; /* Standard error output stream. */ +extern struct _IO_FILE *stdin; /* Standard input stream. */ +extern struct _IO_FILE *stdout; /* Standard output stream. */ +extern struct _IO_FILE *stderr; /* Standard error output stream. */ /* C89/C99 say they're macros. Make them happy. */ #define stdin stdin #define stdout stdout #define stderr stderr +__BEGIN_NAMESPACE_STD /* Remove file FILENAME. */ extern int remove (__const char *__filename) __THROW; /* Rename file OLD to NEW. */ extern int rename (__const char *__old, __const char *__new) __THROW; +__END_NAMESPACE_STD +__BEGIN_NAMESPACE_STD /* Create a temporary file and open it read/write. */ #ifndef __USE_FILE_OFFSET64 extern FILE *tmpfile (void) __THROW; @@ -154,11 +166,14 @@ extern FILE *__REDIRECT (tmpfile, (void) __THROW, tmpfile64); # define tmpfile tmpfile64 # endif #endif + +/* Generate a temporary filename. */ +extern char *tmpnam (char *__s) __THROW; +__END_NAMESPACE_STD + #ifdef __USE_LARGEFILE64 extern FILE *tmpfile64 (void) __THROW; #endif -/* Generate a temporary filename. */ -extern char *tmpnam (char *__s) __THROW; #ifdef __USE_MISC /* This is the reentrant variant of `tmpnam'. The only difference is @@ -180,10 +195,12 @@ extern char *tempnam (__const char *__dir, __const char *__pfx) #endif +__BEGIN_NAMESPACE_STD /* Close STREAM. */ extern int fclose (FILE *__stream) __THROW; /* Flush STREAM, or all streams if STREAM is NULL. */ extern int fflush (FILE *__stream) __THROW; +__END_NAMESPACE_STD #ifdef __USE_MISC /* Faster versions when locking is not required. */ @@ -196,6 +213,7 @@ extern int fcloseall (void) __THROW; #endif +__BEGIN_NAMESPACE_STD #ifndef __USE_FILE_OFFSET64 /* Open a file and create a new stream for it. */ extern FILE *fopen (__const char *__restrict __filename, @@ -218,6 +236,7 @@ extern FILE *__REDIRECT (freopen, (__const char *__restrict __filename, # define freopen freopen64 # endif #endif +__END_NAMESPACE_STD #ifdef __USE_LARGEFILE64 extern FILE *fopen64 (__const char *__restrict __filename, __const char *__restrict __modes) __THROW; @@ -249,6 +268,7 @@ extern FILE *open_memstream (char **__restrict __bufloc, #endif +__BEGIN_NAMESPACE_STD /* If BUF is NULL, make STREAM unbuffered. Else make it use buffer BUF, of size BUFSIZ. */ extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW; @@ -257,6 +277,7 @@ extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW; else allocate an internal buffer N bytes long. */ extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, int __modes, size_t __n) __THROW; +__END_NAMESPACE_STD #ifdef __USE_BSD /* If BUF is NULL, make STREAM unbuffered. @@ -269,6 +290,7 @@ extern void setlinebuf (FILE *__stream) __THROW; #endif +__BEGIN_NAMESPACE_STD /* Write formatted output to STREAM. */ extern int fprintf (FILE *__restrict __stream, __const char *__restrict __format, ...) __THROW; @@ -287,8 +309,10 @@ extern int vprintf (__const char *__restrict __format, _G_va_list __arg) /* Write formatted output to S from argument list ARG. */ extern int vsprintf (char *__restrict __s, __const char *__restrict __format, _G_va_list __arg) __THROW; +__END_NAMESPACE_STD #if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98 +__BEGIN_NAMESPACE_C99 /* Maximum chars of output to write in MAXLEN. */ extern int snprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, ...) @@ -297,6 +321,7 @@ extern int snprintf (char *__restrict __s, size_t __maxlen, extern int vsnprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, _G_va_list __arg) __THROW __attribute__ ((__format__ (__printf__, 3, 0))); +__END_NAMESPACE_C99 #endif #ifdef __USE_GNU @@ -321,6 +346,7 @@ extern int dprintf (int __fd, __const char *__restrict __fmt, ...) #endif +__BEGIN_NAMESPACE_STD /* Read formatted input from STREAM. */ extern int fscanf (FILE *__restrict __stream, __const char *__restrict __format, ...) __THROW; @@ -329,8 +355,10 @@ extern int scanf (__const char *__restrict __format, ...) __THROW; /* Read formatted input from S. */ extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __THROW; +__END_NAMESPACE_STD #ifdef __USE_ISOC99 +__BEGIN_NAMESPACE_C99 /* Read formatted input from S into argument list ARG. */ extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, _G_va_list __arg) @@ -344,15 +372,18 @@ extern int vscanf (__const char *__restrict __format, _G_va_list __arg) extern int vsscanf (__const char *__restrict __s, __const char *__restrict __format, _G_va_list __arg) __THROW __attribute__ ((__format__ (__scanf__, 2, 0))); +__END_NAMESPACE_C99 #endif /* Use ISO C9x. */ +__BEGIN_NAMESPACE_STD /* Read a character from STREAM. */ extern int fgetc (FILE *__stream) __THROW; extern int getc (FILE *__stream) __THROW; /* Read a character from stdin. */ extern int getchar (void) __THROW; +__END_NAMESPACE_STD /* The C standard explicitly says this is a macro, so we always do the optimization for it. */ @@ -370,12 +401,14 @@ extern int fgetc_unlocked (FILE *__stream) __THROW; #endif /* Use MISC. */ +__BEGIN_NAMESPACE_STD /* Write a character to STREAM. */ extern int fputc (int __c, FILE *__stream) __THROW; extern int putc (int __c, FILE *__stream) __THROW; /* Write a character to stdout. */ extern int putchar (int __c) __THROW; +__END_NAMESPACE_STD /* The C standard explicitly says this can be a macro, so we always do the optimization for it. */ @@ -402,20 +435,22 @@ extern int putw (int __w, FILE *__stream) __THROW; #endif +__BEGIN_NAMESPACE_STD /* Get a newline-terminated string of finite length from STREAM. */ extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) __THROW; +/* Get a newline-terminated string from stdin, removing the newline. + DO NOT USE THIS FUNCTION!! There is no limit on how much it will read. */ +extern char *gets (char *__s) __THROW; +__END_NAMESPACE_STD + #ifdef __USE_GNU /* This function does the same as `fgets' but does not lock the stream. */ extern char *fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) __THROW; #endif -/* Get a newline-terminated string from stdin, removing the newline. - DO NOT USE THIS FUNCTION!! There is no limit on how much it will read. */ -extern char *gets (char *__s) __THROW; - #ifdef __USE_GNU /* Read up to (and including) a DELIMITER from STREAM into *LINEPTR @@ -437,16 +472,11 @@ extern _IO_ssize_t getline (char **__restrict __lineptr, #endif +__BEGIN_NAMESPACE_STD /* Write a string to STREAM. */ extern int fputs (__const char *__restrict __s, FILE *__restrict __stream) __THROW; -#ifdef __USE_GNU -/* This function does the same as `fputs' but does not lock the stream. */ -extern int fputs_unlocked (__const char *__restrict __s, - FILE *__restrict __stream) __THROW; -#endif - /* Write a string, followed by a newline, to stdout. */ extern int puts (__const char *__s) __THROW; @@ -461,6 +491,13 @@ extern size_t fread (void *__restrict __ptr, size_t __size, /* Write chunks of generic data to STREAM. */ extern size_t fwrite (__const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __s) __THROW; +__END_NAMESPACE_STD + +#ifdef __USE_GNU +/* This function does the same as `fputs' but does not lock the stream. */ +extern int fputs_unlocked (__const char *__restrict __s, + FILE *__restrict __stream) __THROW; +#endif #ifdef __USE_MISC /* Faster versions when locking is not necessary. */ @@ -471,26 +508,41 @@ extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, #endif +__BEGIN_NAMESPACE_STD /* Seek to a certain position on STREAM. */ extern int fseek (FILE *__stream, long int __off, int __whence) __THROW; /* Return the current position of STREAM. */ extern long int ftell (FILE *__stream) __THROW; /* Rewind to the beginning of STREAM. */ extern void rewind (FILE *__stream) __THROW; +__END_NAMESPACE_STD /* The Single Unix Specification, Version 2, specifies an alternative, more adequate interface for the two functions above which deal with file offset. `long int' is not the right type. These definitions are originally defined in the Large File Support API. */ -#ifndef __USE_FILE_OFFSET64 -# ifdef __USE_LARGEFILE +#ifdef __USE_LARGEFILE +# ifndef __USE_FILE_OFFSET64 /* Seek to a certain position on STREAM. */ extern int fseeko (FILE *__stream, __off_t __off, int __whence) __THROW; /* Return the current position of STREAM. */ extern __off_t ftello (FILE *__stream) __THROW; +# else +# ifdef __REDIRECT +extern int __REDIRECT (fseeko, + (FILE *__stream, __off64_t __off, int __whence) __THROW, + fseeko64); +extern __off64_t __REDIRECT (ftello, (FILE *__stream) __THROW, ftello64); +# else +# define fseeko fseeko64 +# define ftello ftello64 +# endif # endif +#endif +__BEGIN_NAMESPACE_STD +#ifndef __USE_FILE_OFFSET64 /* Get STREAM's position. */ extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __THROW; @@ -498,26 +550,17 @@ extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __THROW; #else # ifdef __REDIRECT -# ifdef __USE_LARGEFILE -extern int __REDIRECT (fseeko, - (FILE *__stream, __off64_t __off, int __whence) __THROW, - fseeko64); -extern __off64_t __REDIRECT (ftello, (FILE *__stream) __THROW, ftello64); -# endif extern int __REDIRECT (fgetpos, (FILE *__restrict __stream, fpos_t *__restrict __pos) __THROW, fgetpos64); extern int __REDIRECT (fsetpos, (FILE *__stream, __const fpos_t *__pos) __THROW, fsetpos64); # else -# ifdef __USE_LARGEFILE -# define fseeko fseeko64 -# define ftello ftello64 -# endif # define fgetpos fgetpos64 # define fsetpos fsetpos64 # endif #endif +__END_NAMESPACE_STD #ifdef __USE_LARGEFILE64 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence) __THROW; @@ -527,12 +570,14 @@ extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos) extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos) __THROW; #endif +__BEGIN_NAMESPACE_STD /* Clear the error and EOF indicators for STREAM. */ extern void clearerr (FILE *__stream) __THROW; /* Return the EOF indicator for STREAM. */ extern int feof (FILE *__stream) __THROW; /* Return the error indicator for STREAM. */ extern int ferror (FILE *__stream) __THROW; +__END_NAMESPACE_STD #ifdef __USE_MISC /* Faster versions when locking is not required. */ @@ -542,8 +587,10 @@ extern int ferror_unlocked (FILE *__stream) __THROW; #endif +__BEGIN_NAMESPACE_STD /* Print a message describing the meaning of the value of errno. */ extern void perror (__const char *__s) __THROW; +__END_NAMESPACE_STD /* Provide the declarations for `sys_errlist' and `sys_nerr' if they are available on this system. Even if available, these variables diff --git a/locale/locale.h b/locale/locale.h index 57acb62cd0..1b0296ae4a 100644 --- a/locale/locale.h +++ b/locale/locale.h @@ -119,12 +119,17 @@ struct lconv }; +__BEGIN_NAMESPACE_STD + /* Set and/or return the current locale. */ extern char *setlocale (int __category, __const char *__locale) __THROW; /* Return the numeric/monetary information for the current locale. */ extern struct lconv *localeconv (void) __THROW; +__END_NAMESPACE_STD + + #ifdef __USE_GNU /* The concept of one static locale per category is not very well thought out. Many applications will need to process its data using diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h index 12fcfce022..59d4eb88f7 100644 --- a/math/bits/mathcalls.h +++ b/math/bits/mathcalls.h @@ -1,5 +1,5 @@ /* Prototype declarations for math functions; helper file for <math.h>. - Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc. + Copyright (C) 1996-2001, 2002 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 @@ -44,12 +44,13 @@ NAME, to make token pasting work with -traditional. */ #ifndef _MATH_H - #error "Never include <bits/mathcalls.h> directly; include <math.h> instead." +# error "Never include <bits/mathcalls.h> directly; include <math.h> instead." #endif /* Trigonometric functions. */ +_Mdouble_BEGIN_NAMESPACE /* Arc cosine of X. */ __MATHCALL (acos,, (_Mdouble_ __x)); /* Arc sine of X. */ @@ -66,12 +67,6 @@ __MATHCALL (sin,, (_Mdouble_ __x)); /* Tangent of X. */ __MATHCALL (tan,, (_Mdouble_ __x)); -#ifdef __USE_GNU -/* Cosine and sine of X. */ -__MATHDECL (void,sincos,, - (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); -#endif - /* Hyperbolic functions. */ /* Hyperbolic cosine of X. */ @@ -80,28 +75,31 @@ __MATHCALL (cosh,, (_Mdouble_ __x)); __MATHCALL (sinh,, (_Mdouble_ __x)); /* Hyperbolic tangent of X. */ __MATHCALL (tanh,, (_Mdouble_ __x)); +_Mdouble_END_NAMESPACE + +#ifdef __USE_GNU +/* Cosine and sine of X. */ +__MATHDECL (void,sincos,, + (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); +#endif #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 +__BEGIN_NAMESPACE_C99 /* Hyperbolic arc cosine of X. */ __MATHCALL (acosh,, (_Mdouble_ __x)); /* Hyperbolic arc sine of X. */ __MATHCALL (asinh,, (_Mdouble_ __x)); /* Hyperbolic arc tangent of X. */ __MATHCALL (atanh,, (_Mdouble_ __x)); +__END_NAMESPACE_C99 #endif /* Exponential and logarithmic functions. */ +_Mdouble_BEGIN_NAMESPACE /* Exponential function of X. */ __MATHCALL (exp,, (_Mdouble_ __x)); -#ifdef __USE_GNU -/* A function missing in all standards: compute exponent to base ten. */ -__MATHCALL (exp10,, (_Mdouble_ __x)); -/* Another name occasionally used. */ -__MATHCALL (pow10,, (_Mdouble_ __x)); -#endif - /* Break VALUE into a normalized fraction and an integral power of 2. */ __MATHCALL (frexp,, (_Mdouble_ __x, int *__exponent)); @@ -116,8 +114,17 @@ __MATHCALL (log10,, (_Mdouble_ __x)); /* Break VALUE into integral and fractional parts. */ __MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)); +_Mdouble_END_NAMESPACE + +#ifdef __USE_GNU +/* A function missing in all standards: compute exponent to base ten. */ +__MATHCALL (exp10,, (_Mdouble_ __x)); +/* Another name occasionally used. */ +__MATHCALL (pow10,, (_Mdouble_ __x)); +#endif #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 +__BEGIN_NAMESPACE_C99 /* Return exp(X) - 1. */ __MATHCALL (expm1,, (_Mdouble_ __x)); @@ -126,38 +133,48 @@ __MATHCALL (log1p,, (_Mdouble_ __x)); /* Return the base 2 signed integral exponent of X. */ __MATHCALL (logb,, (_Mdouble_ __x)); +__END_NAMESPACE_C99 #endif #ifdef __USE_ISOC99 +__BEGIN_NAMESPACE_C99 /* Compute base-2 exponential of X. */ __MATHCALL (exp2,, (_Mdouble_ __x)); /* Compute base-2 logarithm of X. */ __MATHCALL (log2,, (_Mdouble_ __x)); +__END_NAMESPACE_C99 #endif /* Power functions. */ +_Mdouble_BEGIN_NAMESPACE /* Return X to the Y power. */ __MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y)); /* Return the square root of X. */ __MATHCALL (sqrt,, (_Mdouble_ __x)); +_Mdouble_END_NAMESPACE #if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99 +__BEGIN_NAMESPACE_C99 /* Return `sqrt(X*X + Y*Y)'. */ __MATHCALL (hypot,, (_Mdouble_ __x, _Mdouble_ __y)); +__END_NAMESPACE_C99 #endif #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 +__BEGIN_NAMESPACE_C99 /* Return the cube root of X. */ __MATHCALL (cbrt,, (_Mdouble_ __x)); +__END_NAMESPACE_C99 #endif /* Nearest integer, absolute value, and remainder functions. */ +_Mdouble_BEGIN_NAMESPACE /* Smallest integral value not less than X. */ __MATHCALLX (ceil,, (_Mdouble_ __x), (__const__)); @@ -177,6 +194,7 @@ __MATHDECL_1 (int,__isinf,, (_Mdouble_ __value)) __attribute__ ((__const__)); /* Return nonzero if VALUE is finite and not NaN. */ __MATHDECL_1 (int,__finite,, (_Mdouble_ __value)) __attribute__ ((__const__)); +_Mdouble_END_NAMESPACE #ifdef __USE_MISC /* Return 0 if VALUE is finite or NaN, +1 if it @@ -195,13 +213,17 @@ __MATHCALL (significand,, (_Mdouble_ __x)); #endif /* Use misc. */ #if defined __USE_MISC || defined __USE_ISOC99 +__BEGIN_NAMESPACE_C99 /* Return X with its signed changed to Y's. */ __MATHCALLX (copysign,, (_Mdouble_ __x, _Mdouble_ __y), (__const__)); +__END_NAMESPACE_C99 #endif #ifdef __USE_ISOC99 +__BEGIN_NAMESPACE_C99 /* Return representation of NaN for double type. */ __MATHCALLX (nan,, (__const char *__tagb), (__const__)); +__END_NAMESPACE_C99 #endif @@ -223,14 +245,19 @@ __MATHCALL (yn,, (int, _Mdouble_)); #if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99 +__BEGIN_NAMESPACE_C99 /* Error and gamma functions. */ __MATHCALL (erf,, (_Mdouble_)); __MATHCALL (erfc,, (_Mdouble_)); __MATHCALL (lgamma,, (_Mdouble_)); +__END_NAMESPACE_C99 #endif #ifdef __USE_ISOC99 +__BEGIN_NAMESPACE_C99 +/* True gamma function. */ __MATHCALL (tgamma,, (_Mdouble_)); +__END_NAMESPACE_C99 #endif #if defined __USE_MISC || defined __USE_XOPEN @@ -247,6 +274,7 @@ __MATHCALL (lgamma,_r, (_Mdouble_, int *__signgamp)); #if defined __USE_MISC || defined |
