first commit

This commit is contained in:
Jose Caban
2025-06-07 11:34:38 -04:00
commit 0eb2d7c07d
4708 changed files with 1500614 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
// -*- C++ -*-
/***************************************************************************
*
* _cassert.h - C++ Standard library interface to the ANSI C header assert.h
*
* $Id: _cassert.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
_RWSTD_NAMESPACE (__rw) {
void _RWSTD_EXPORT
__rw_assert_fail (const char*, const char*, int, const char*)
_RWSTD_GNUC_ATTRIBUTE ((noreturn));
} // namespace __rw
#undef assert
#if !defined (NDEBUG)
# if defined (__GNUG__) || defined (__HP_aCC)
# define assert(expr) \
((expr) ? (void)0 : _RW::__rw_assert_fail (#expr, __FILE__, __LINE__, \
__PRETTY_FUNCTION__))
# elif !defined (_RWSTD_NO_FUNC)
# define assert(expr) \
((expr) ? (void)0 : _RW::__rw_assert_fail (#expr, __FILE__, __LINE__, \
__func__))
# else // if !__GNUG__ && _RWSTD_NO_FUNC
# define assert(expr) \
((expr) ? (void)0 : _RW::__rw_assert_fail (#expr, __FILE__, __LINE__, 0))
# endif
#else // if !defined (NDEBUG)
# define assert(ignore) ((void)0)
#endif // NDEBUG

View File

@@ -0,0 +1,59 @@
// -*- C++ -*-
/***************************************************************************
*
* _cctype.h - C++ Standard library interface to the ANSI C header ctype.h
*
* $Id: _cctype.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CCTYPE_H_INCLUDED
#define _RWSTD_CCTYPE_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
extern "C" {
int isalnum (int);
int isalpha (int);
int iscntrl (int);
int isdigit (int);
int isgraph (int);
int islower (int);
int isprint (int);
int ispunct (int);
int isspace (int);
int isupper (int);
int isxdigit (int);
int tolower (int);
int toupper (int);
}
} // namespace std
#endif // _RWSTD_CCTYPE_H_INCLUDED

View File

@@ -0,0 +1,95 @@
// -*- C++ -*-
/***************************************************************************
*
* _cerrno.h - C++ Standard library interface to the ANSI C header errno.h
*
* $Id: _cerrno.h 584948 2007-10-15 22:38:42Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 2005-2007 Rogue Wave Software, Inc.
*
**************************************************************************/
#ifndef _RWSTD_CERRNO_H_INCLUDED
#define _RWSTD_CERRNO_H_INCLUDED
#include <rw/_defs.h>
#ifdef __linux__
_RWSTD_NAMESPACE (std) {
extern "C" {
extern int* __errno_location ();
// 17.4.1.2, p5 - errno may be a macro
// lwg issue 310 - errno must be a macro
#define errno (*_STD::__errno_location ())
#define EDOM 33
#define ERANGE 34
// lwg issue 288
#define EILSEQ 84
} // extern "C"
} // namespace std
#elif defined (__sun__) || defined (__sun)
_RWSTD_NAMESPACE (std) {
extern "C" {
extern int errno;
extern int* ___errno ();
#ifdef _RWSTD_REENTRANT
// 17.4.1.2, p5 - errno may be a macro
// lwg issue 310 - errno must be a macro
# define errno (*_STD::___errno ())
#else // if !defined (_RWSTD_REENTRANT)
# define errno _STD::errno
#endif // _RWSTD_REENTRANT
#define EDOM 33
#define ERANGE 34
// lwg issue 288
#define EILSEQ 84
} // extern "C"
} // namespace std
#else // if !__linux__ && !__sun__
# include _RWSTD_ANSI_C_ERRNO_H
#endif // __linux__
#endif // _RWSTD_CERRNO_H_INCLUDED

View File

@@ -0,0 +1,70 @@
// -*- C++ -*-
/***************************************************************************
*
* _cfloat.h - C++ Standard library interface to the ANSI C header float.h
*
* $Id: _cfloat.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CFLOAT_H_INCLUDED
#define _RWSTD_CFLOAT_H_INCLUDED
#include <rw/_defs.h>
#define FLT_ROUNDS _RWSTD_FLT_ROUNDS
#define FLT_DIG _RWSTD_FLT_DIG
#define FLT_MANT_DIG _RWSTD_FLT_MANT_DIG
#define FLT_MAX_10_EXP _RWSTD_FLT_MAX_10_EXP
#define FLT_MAX_EXP _RWSTD_FLT_MAX_EXP
#define FLT_MIN_10_EXP _RWSTD_FLT_MIN_10_EXP
#define FLT_MIN_EXP _RWSTD_FLT_MIN_EXP
#define FLT_RADIX _RWSTD_FLT_RADIX
#define FLT_MAX _RWSTD_FLT_MAX
#define FLT_MIN _RWSTD_FLT_MIN
#define FLT_EPSILON _RWSTD_FLT_EPSILON
#define DBL_DIG _RWSTD_DBL_DIG
#define DBL_MANT_DIG _RWSTD_DBL_MANT_DIG
#define DBL_MAX_10_EXP _RWSTD_DBL_MAX_10_EXP
#define DBL_MAX_EXP _RWSTD_DBL_MAX_EXP
#define DBL_MIN_10_EXP _RWSTD_DBL_MIN_10_EXP
#define DBL_MIN_EXP _RWSTD_DBL_MIN_EXP
#define DBL_MAX _RWSTD_DBL_MAX
#define DBL_MIN _RWSTD_DBL_MIN
#define DBL_EPSILON _RWSTD_DBL_EPSILON
#define LDBL_DIG _RWSTD_LDBL_DIG
#define LDBL_MANT_DIG _RWSTD_LDBL_MANT_DIG
#define LDBL_MAX_10_EXP _RWSTD_LDBL_MAX_10_EXP
#define LDBL_MAX_EXP _RWSTD_LDBL_MAX_EXP
#define LDBL_MIN_10_EXP _RWSTD_LDBL_MIN_10_EXP
#define LDBL_MIN_EXP _RWSTD_LDBL_MIN_EXP
#define LDBL_MAX _RWSTD_LDBL_MAX
#define LDBL_MIN _RWSTD_LDBL_MIN
#define LDBL_EPSILON _RWSTD_LDBL_EPSILON
#endif // _RWSTD_CFLOAT_H_INCLUDED

View File

@@ -0,0 +1,82 @@
// -*- C++ -*-
/***************************************************************************
*
* _clocale.h - C++ Standard library interface to the ANSI C header locale.h
*
* $Id: _clocale.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CLOCALE_H_INCLUDED
#define _RWSTD_CLOCALE_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
#ifndef LC_ALL
# define LC_ALL _RWSTD_LC_ALL
#endif // LC_ALL
#ifndef LC_COLLATE
# define LC_COLLATE _RWSTD_LC_COLLATE
#endif // LC_COLLATE
#ifndef LC_CTYPE
# define LC_CTYPE _RWSTD_LC_CTYPE
#endif // LC_CTYPE
#ifndef LC_MONETARY
# define LC_MONETARY _RWSTD_LC_MONETARY
#endif // LC_MONETARY
#ifndef LC_NUMERIC
# define LC_NUMERIC _RWSTD_LC_NUMERIC
#endif // LC_NUMERIC
#ifndef LC_TIME
# define LC_TIME _RWSTD_LC_TIME
#endif // LC_TIME
#ifndef NULL
# define NULL 0
#endif // NULL
extern "C" {
struct lconv _RWSTD_LCONV;
char* setlocale (int, const char*);
struct lconv* localeconv ();
} // extern "C"
} // namespace std
#endif // _RWSTD_CLOCALE_H_INCLUDED

View File

@@ -0,0 +1,75 @@
// -*- C++ -*-
/***************************************************************************
*
* cmath - C++ Standard library interface to the ANSI C header math.h
*
* $Id: _cmath.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CMATH_H_INCLUDED
#define _RWSTD_CMATH_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
#ifndef HUGE_VAL
# define HUGE_VAL _RWSTD_DBL_MAX
#endif // HUGE_VAL
extern "C" {
double acos (double);
double asin (double);
double atan (double);
double atan2(double, double);
double cos (double);
double sin (double);
double tan (double);
double cosh (double);
double sinh (double);
double tanh (double);
double exp (double);
double frexp (double, int *);
double ldexp (double, int);
double log (double);
double log10 (double);
double modf (double, double*);
double pow (double, double);
double sqrt (double);
double ceil (double);
double fabs (double);
double floor (double);
double fmod (double, double);
}
} // namespace std
#endif // _RWSTD_CMATH_H_INCLUDED

View File

@@ -0,0 +1,55 @@
// -*- C++ -*-
/***************************************************************************
*
* csetjmp - C++ Standard library interface to the ANSI C header setjmp.h
*
* $Id: _csetjmp.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CSETJMP_H_INCLUDED
#define _RWSTD_CSETJMP_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
extern "C" {
typedef char jmp_buf [8];
int setjmp (jmp_buf);
void longjmp (jmp_buf, int);
} // extern "C"
} // namespace std
// 18.7, p1, Table 20
#define setjmp _RWSTD_C::setjmp
#endif // _RWSTD_CSETJMP_H_INCLUDED

View File

@@ -0,0 +1,101 @@
// -*- C++ -*-
/***************************************************************************
*
* csignal - C++ Standard library interface to the ANSI C header signal.h
*
* $Id: _csignal.h 497651 2007-01-19 00:16:30Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 2001-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CSIGNAL_H_INCLUDED
#define _RWSTD_CSIGNAL_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
#ifndef SIGABRT
# define SIGABRT _RWSTD_SIGABRT
#endif // SIGABRT
#ifndef SIGFPE
# define SIGFPE _RWSTD_SIGFPE
#endif // SIGFPE
#ifndef SIGILL
# define SIGILL _RWSTD_SIGILL
#endif // SIGILL
#ifndef SIGINT
# define SIGINT _RWSTD_SIGINT
#endif // SIGINT
#ifndef SIGSEGV
# define SIGSEGV _RWSTD_SIGSEGV
#endif // SIGSEGV
#ifndef SIGTERM
# define SIGTERM _RWSTD_SIGTERM
#endif // SIGTERM
extern "C" {
#ifdef _RWSTD_SIG_ATOMIC_T
typedef _RWSTD_SIG_ATOMIC_T sig_atomic_t;
#else
typedef long sig_atomic_t;
#endif // _RWSTD_SIG_ATOMIC_T
// helper type (necessary in order to be extern "C")
typedef void __rw_sighandler_t (int);
#ifndef SIG_DFL
# define SIG_DFL \
_RWSTD_REINTERPRET_CAST (_STD::__rw_sighandler_t*, _RWSTD_SIG_DFL)
#endif // SIG_DFL
#ifndef SIG_ERR
# define SIG_ERR \
_RWSTD_REINTERPRET_CAST (_STD::__rw_sighandler_t*, _RWSTD_SIG_ERR)
#endif // SIG_ERR
#ifndef SIG_IGN
# define SIG_IGN \
_RWSTD_REINTERPRET_CAST (_STD::__rw_sighandler_t*, _RWSTD_SIG_IGN)
#endif // SIG_IGN
void (*signal(int, void (*)(int))) (int);
int raise (int);
} // extern "C"
} // namespace std
#endif // _RWSTD_CSIGNAL_H_INCLUDED

View File

@@ -0,0 +1,62 @@
// -*- C++ -*-
/***************************************************************************
*
* _cstdarg.h - C++ Standard library interface to the ANSI C header stdarg.h
*
* $Id: _cstdarg.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CSTDARG_H_INCLUDED
#define _RWSTD_CSTDARG_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
extern "C" {
#ifdef _RWSTD_VA_LIST
typedef _RWSTD_VA_LIST va_list;
#else
typedef void* va_list;
#endif // _RWSTD_VA_LIST
#define va_arg(va, T) \
((T*)(va = (va_list)((char*)va + sizeof (T))))[-1]
#define va_start(va, name) \
(void)(va = (va_list)((char*)&name \
+ ((sizeof (name) + (sizeof (int) - 1)) & ~(sizeof (int) - 1))))
#define va_end(ignore) (void)0
} // extern "C"
} // namespace std
#endif // _RWSTD_CSTDARG_H_INCLUDED

View File

@@ -0,0 +1,69 @@
// -*- C++ -*-
/***************************************************************************
*
* _cstddef.h - C++ Standard library interface to the ANSI C header stddef.h
*
* $Id: _cstddef.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CSTDDEF_H_INCLUDED
#define _RWSTD_CSTDDEF_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
#ifndef NULL
# define NULL 0
#endif // NULL
extern "C" {
#ifdef _RWSTD_PTRDIFF_T
typedef _RWSTD_PTRDIFF_T ptrdiff_t;
#else
typedef long ptrdiff_t;
#endif // _RWSTD_PTRDIFF_T
#ifdef _RWSTD_SIZE_T
typedef _RWSTD_SIZE_T size_t;
#else
typedef unsigned long size_t;
#endif // _RWSTD_SIZE_T
#define offsetof(class, member) ((size_t)&(((class*)0)->member))
} // extern "C"
} // namespace std
#endif // _RWSTD_CSTDDEF_H_INCLUDED

View File

@@ -0,0 +1,193 @@
// -*- C++ -*-
/***************************************************************************
*
* cstdio - C++ Standard library interface to the ANSI C header stdio.h
*
* $Id: _cstdio.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CSTDIO_H_INCLUDED
#define _RWSTD_CSTDIO_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
#ifdef __linux__
// prevent multiple definitions of SEEK_XXX constants
// when Linux glibc's <unistd.h> is #included
# define _STDIO_H
#endif // __linux__
#ifndef _IOFBF
# define _IOFBF _RWSTD_IOFBF
#endif
#ifndef _IOLBF
# define _IOLBF _RWSTD_IOLBF
#endif
#ifndef _IONBF
# define _IONBF _RWSTD_IONBF
#endif
#ifndef BUFSIZ
# define BUFSIZ _RWSTD_BUFSIZ
#endif
#ifndef EOF
# define EOF _RWSTD_EOF
#endif
struct FILE;
#ifndef FILE
# define FILE FILE
#endif
#ifndef FILENAME_MAX
# define FILENAME_MAX _RWSTD_FILENAME_MAX
#endif
#ifndef FOPEN_MAX
# define FOPEN_MAX _RWSTD_FOPEN_MAX
#endif
#ifndef L_tmpnam
# define L_tmpnam _RWSTD_L_TMPNAM
#endif // L_tmpnam
#ifndef SEEK_CUR
# define SEEK_CUR _RWSTD_SEEK_CUR
#endif
#ifndef SEEK_END
# define SEEK_END _RWSTD_SEEK_END
#endif
#ifndef SEEK_SET
# define SEEK_SET _RWSTD_SEEK_SET
#endif
#ifndef stderr
# define stderr _RW::__rw_stderr
#endif
#ifndef stdin
# define stdin _RW::__rw_stdin
#endif
#ifndef stdout
# define stdout _RW::__rw_stdout
#endif
#ifndef TMP_MAX
# define TMP_MAX _RWSTD_TMP_MAX
#endif
extern "C" {
#ifdef _RWSTD_SIZE_T
typedef _RWSTD_SIZE_T size_t;
#else
typedef unsigned long size_t;
#endif // _RWSTD_SIZE_T
#ifdef _RWSTD_FPOS_T
typedef _RWSTD_FPOS_T fpos_t;
#elif defined (_RWSTD_FPOS_T_SIZE)
struct fpos_t
{
char _C_fill [_RWSTD_FPOS_T_SIZE];
};
#else
typedef long fpos_t;
#endif // _RWSTD_FPOS_T
int remove (const char*);
int rename (const char*, const char*);
FILE* tmpfile (void);
char* tmpnam (char*);
int fclose (FILE*);
int fflush (FILE*);
FILE* fopen (const char*, const char*);
FILE* freopen (const char*, const char*, FILE*);
void setbuf (FILE*, char*);
int setvbuf (FILE*, char*, int, size_t);
int fprintf (FILE*, const char*, ...);
int fscanf (FILE*, const char*, ...);
int printf (const char*, ...);
int scanf (const char*, ...);
int sprintf (char*, const char*, ...);
int sscanf (const char*, const char*, ...);
int vfprintf (FILE*, const char*, _RWSTD_VA_LIST);
int vprintf (const char*, _RWSTD_VA_LIST);
int vsprintf (char*, const char*, _RWSTD_VA_LIST);
int fgetc (FILE*);
char* fgets (char*, int , FILE*);
int fputc (int, FILE*);
int fputs (const char*, FILE*);
int getc (FILE*);
int getchar (void);
char* gets (char*);
int putc (int, FILE*);
int putchar (int);
int puts (const char*);
int ungetc (int c, FILE*);
size_t fread (void*, size_t size, size_t, FILE*);
size_t fwrite (const void*, size_t, size_t, FILE*);
int fgetpos (FILE*, fpos_t*);
int fseek (FILE*, long, int);
int fsetpos (FILE*, const fpos_t*);
long ftell (FILE*);
void rewind (FILE*);
void clearerr (FILE*);
int feof (FILE*);
int ferror (FILE*);
void perror (const char*);
} // extern "C"
} // namespace std
_RWSTD_NAMESPACE (__rw) {
extern _STD::FILE* __rw_stdin;
extern _STD::FILE* __rw_stdout;
extern _STD::FILE* __rw_stderr;
} // namespace __rw
#endif // _RWSTD_CSTDIO_H_INCLUDED

View File

@@ -0,0 +1,167 @@
// -*- C++ -*-
/***************************************************************************
*
* cstdlib - C++ Standard library interface to the ANSI C header stdlib.h
*
* $Id: _cstdlib.h 497905 2007-01-19 18:51:23Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 2001-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CSTDLIB_H_INCLUDED
#define _RWSTD_CSTDLIB_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
#ifndef EXIT_FAILURE
# define EXIT_FAILURE 1
#endif
#ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
#endif
#ifndef MB_CUR_MAX
# define MB_CUR_MAX _RWSTD_MB_CUR_MAX
#endif
#ifndef NULL
# define NULL 0
#endif
#ifndef RAND_MAX
# define RAND_MAX _RWSTD_RAND_MAX
#endif
extern "C" {
struct div_t
{
// traditional layout (e.g., HP-UX, Linux, Solaris)
int quot;
int rem;
};
struct ldiv_t
{
// traditional layout (e.g., HP-UX, Linux, Solaris)
long quot;
long rem;
};
#ifdef _RWSTD_SIZE_T
typedef _RWSTD_SIZE_T size_t;
#else
typedef unsigned long size_t;
#endif // _RWSTD_SIZE_T
double atof (const char*);
int atoi (const char*);
long int atol (const char*);
double strtod (const char*, char**);
long int strtol (const char*, char**, int);
unsigned long int strtoul (const char*, char**, int);
int rand (void);
void srand (unsigned int);
void* calloc (size_t, size_t);
void free (void*);
void* malloc (size_t) ;
void* realloc (void*, size_t);
void abort (void);
int atexit (void (*) (void));
void exit (int);
char* getenv (const char*);
int system (const char*);
void* bsearch (const void*, const void*, size_t, size_t,
int (*) (const void*, const void*));
void qsort (void*, size_t, size_t, int (*) (const void *, const void *));
int abs (int);
div_t div (int, int);
long int labs (long int);
ldiv_t ldiv (long int, long int);
int mblen (const char*, size_t);
int mbtowc (wchar_t*, const char*, size_t);
int wctomb (char*, wchar_t);
size_t mbstowcs (wchar_t*, const char*, size_t);
size_t wcstombs (char*, const wchar_t*, size_t);
} // extern "C"
#ifndef _RWSTD_NO_EXTERN_C_COMPATIBILITY
# ifndef _RWSTD_NO_EXTERN_C_OVERLOAD
extern "C" {
typedef int (*__rw_compar_t)(const void*, const void*);
}
extern "C++" {
// 25.4, p3 of ISO/IEC 14882:1998
inline void*
bsearch (const void *__key, const void *__base, size_t __n, size_t __size,
int (*__cmp)(const void*, const void*))
{
return bsearch (__key, __base, __n, __size,
_RWSTD_REINTERPRET_CAST (__rw_compar_t, __cmp));
}
// 25.4, p4 of ISO/IEC 14882:1998
inline void
qsort (void *__base, size_t __n, size_t __size,
int (*__cmp)(const void*, const void*))
{
return _RWSTD_C::qsort (__base, __n, __size,
_RWSTD_REINTERPRET_CAST (__rw_compar_t, __cmp));
}
inline long
abs (long __x)
{
return labs (__x);
}
inline ldiv_t
div (long __x, long __y)
{
return ldiv (__x, __y);
}
} // extern "C++"
# endif // _RWSTD_NO_EXTERN_C_OVERLOAD
#endif // _RWSTD_NO_EXTERN_C_COMPATIBILITY
} // namespace std
#endif // _RWSTD_CSTDLIB_H_INCLUDED

View File

@@ -0,0 +1,114 @@
// -*- C++ -*-
/***************************************************************************
*
* cstring - C++ Standard library interface to the ANSI C header string.h
*
* $Id: _cstring.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CSTRING_H_INCLUDED
#define _RWSTD_CSTRING_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
#ifndef NULL
# define NULL 0
#endif // NULL
extern "C" {
#ifdef _RWSTD_SIZE_T
typedef _RWSTD_SIZE_T size_t;
#else
typedef unsigned long size_t;
#endif // _RWSTD_SIZE_T
void* memcpy (void*, const void*, size_t);
void* memmove (void*, const void*, size_t);
char* strcpy (char*, const char*);
char* strncpy (char*, const char*, size_t);
char* strcat (char*, const char*);
char* strncat (char*, const char*, size_t);
int memcmp (const void*, const void*, size_t);
int strcmp (const char*, const char*);
int strcoll (const char*, const char*);
int strncmp (const char*, const char*, size_t);
size_t strxfrm (char*, const char*, size_t);
void* memchr (void*, int, size_t); // 21.4, p12 of ISO/IEC 14882:1998
char* strchr (char*, int); // 21.4, p4 of ISO/IEC 14882:1998
size_t strcspn (const char*, const char*);
char* strpbrk (char*, const char*); // 21.4, p6 of ISO/IEC 14882:1998
char* strrchr (char*, int); // 21.4, p8 of ISO/IEC 14882:1998
size_t strspn (const char*, const char*);
char* strstr (char*, const char*); // 21.4, p10 of ISO/IEC 14882:1998
char* strtok (char*, const char*);
void* memset (void*, int, size_t);
char* strerror (int);
size_t strlen (const char*);
} // extern "C"
// 21.4, p12 of ISO/IEC 14882:1998
inline const void* memchr (const void *__p, int __c, size_t __n)
{
return memchr (_RWSTD_CONST_CAST (void*, __p), __c, __n);
}
// 21.4, p4 of ISO/IEC 14882:1998
inline const char* strchr (const char *__s, int __c)
{
return strchr (_RWSTD_CONST_CAST (char*, __s), __c);
}
// 21.4, p6 of ISO/IEC 14882:1998
inline const char* strpbrk (const char *__s1, const char *__s2)
{
return strpbrk (_RWSTD_CONST_CAST (char*, __s1), __s2);
}
// 21.4, p8 of ISO/IEC 14882:1998
inline const char* strrchr (const char *__s, int __c)
{
return strrchr (_RWSTD_CONST_CAST (char*, __s), __c);
}
// 21.4, p10 of ISO/IEC 14882:1998
inline const char* strstr (const char *__s1, const char *__s2)
{
return strstr (_RWSTD_CONST_CAST (char*, __s1), __s2);
}
} // namespace std
#endif // _RWSTD_CSTRING_H_INCLUDED

View File

@@ -0,0 +1,91 @@
// -*- C++ -*-
/***************************************************************************
*
* ctime - C++ Standard library interface to the ANSI C header time.h
*
* $Id: _ctime.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CTIME_H_INCLUDED
#define _RWSTD_CTIME_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
extern "C" {
#ifndef CLOCKS_PER_SEC
# define CLOCKS_PER_SEC _RWSTD_CLOCKS_PER_SEC
#endif
#ifndef NULL
# define NULL 0
#endif
#ifdef _RWSTD_CLOCK_T
typedef _RWSTD_CLOCK_T clock_t;
#else
typedef long clock_t;
#endif // _RWSTD_CLOCK_T
#ifdef _RWSTD_TIME_T
typedef _RWSTD_TIME_T time_t;
#else
typedef long time_t;
#endif // _RWSTD_TIME_T
#ifdef _RWSTD_SIZE_T
typedef _RWSTD_SIZE_T size_t;
#else
typedef unsigned long size_t;
#endif // _RWSTD_SIZE_T
struct tm _RWSTD_STRUCT_TM;
clock_t clock ();
double difftime (time_t, time_t);
time_t mktime (struct tm*);
time_t time (time_t*);
char* asctime (const struct tm*);
char* ctime (const time_t*);
struct tm* gmtime (const time_t*);
struct tm* localtime (const time_t*);
size_t strftime (char*, size_t, const char*, const struct tm*);
} // extern "C"
} // namespace std
#endif // _RWSTD_CTIME_H_INCLUDED

View File

@@ -0,0 +1,176 @@
// -*- C++ -*-
/***************************************************************************
*
* cwchar - C++ Standard library interface to the ANSI C header wchar.h
*
* $Id: _cwchar.h 580483 2007-09-28 20:55:52Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CWCHAR_H_INCLUDED
#define _RWSTD_CWCHAR_H_INCLUDED
#include <rw/_mbstate.h> // for _RWSTD_MBSTATE_T
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
#ifndef NULL
# define NULL 0
#endif // NULL
#ifdef _RWSTD_SIZE_T
typedef _RWSTD_SIZE_T size_t;
#else
typedef unsigned long size_t;
#endif // _RWSTD_SIZE_T
extern "C" {
// _RWSTD_MBSTATE_T is defined in <rw/_mbstate.h>
typedef _RWSTD_MBSTATE_T mbstate_t;
struct tm;
#ifndef WCHAR_MIN
# define WCHAR_MIN _RWSTD_WCHAR_MIN
#endif // WCHAR_MIN
#ifndef WCHAR_MAX
# define WCHAR_MAX _RWSTD_WCHAR_MAX
#endif // WCHAR_MAX
#ifndef WEOF
# define WEOF _RWSTD_WEOF
#endif // WEOF
#ifndef _RWSTD_NO_WINT_T
typedef _RWSTD_WINT_T wint_t;
#else
typedef int wint_t;
#endif // _RWSTD_NO_WINT_T
// declared, not defined (FILE need not be a complete type)
struct FILE;
int fwprintf (FILE*, const wchar_t*, ...);
int fwscanf (FILE*, const wchar_t*, ...);
int wprintf (const wchar_t*, ...);
int wscanf (const wchar_t*, ...);
int swprintf (wchar_t*, size_t, const wchar_t*, ...);
int swscanf (const wchar_t*, const wchar_t*, ...);
int vfwprintf (FILE*, const wchar_t *format, _RWSTD_VA_LIST);
int vwprintf (const wchar_t*, _RWSTD_VA_LIST);
int vswprintf (wchar_t*, size_t, const wchar_t*, _RWSTD_VA_LIST);
wint_t fgetwc (FILE*);
wchar_t* fgetws (wchar_t*, int, FILE*);
wint_t fputwc (wchar_t, FILE*);
int fputws (const wchar_t*, FILE*);
wint_t getwc (FILE*);
wint_t getwchar();
wint_t putwc (wchar_t, FILE*);
wint_t putwchar (wchar_t);
wint_t ungetwc (wint_t, FILE*);
int fwide (FILE*, int);
double wcstod (const wchar_t*, wchar_t**);
long int wcstol (const wchar_t*, wchar_t**, int);
unsigned long int wcstoul (const wchar_t*, wchar_t**, int);
wchar_t* wcscpy (wchar_t*, const wchar_t*);
wchar_t* wcsncpy (wchar_t*, const wchar_t*, size_t);
wchar_t* wcscat (wchar_t*, const wchar_t*);
wchar_t* wcsncat (wchar_t*, const wchar_t*, size_t);
int wcscmp (const wchar_t*, const wchar_t*);
int wcscoll (const wchar_t*, const wchar_t*);
int wcsncmp (const wchar_t*, const wchar_t*, size_t);
size_t wcsxfrm (wchar_t*, const wchar_t*, size_t);
wchar_t* wcschr (wchar_t*, wchar_t);
size_t wcscspn (const wchar_t*, const wchar_t*);
wchar_t* wcspbrk (wchar_t*, const wchar_t*);
wchar_t* wcsrchr (wchar_t*, wchar_t);
size_t wcsspn (const wchar_t*, const wchar_t*);
wchar_t* wcsstr (wchar_t*, const wchar_t*);
wchar_t* wcstok (wchar_t*, const wchar_t*, wchar_t**);
size_t wcslen (const wchar_t*);
wchar_t* wmemchr (wchar_t*, wchar_t, size_t);
int wmemcmp (const wchar_t*, const wchar_t*, size_t);
wchar_t* wmemcpy (wchar_t*, const wchar_t*, size_t);
wchar_t* wmemmove (wchar_t*, const wchar_t*, size_t);
wchar_t* wmemset (wchar_t*, wchar_t, size_t);
size_t wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*);
wint_t btowc (int);
int wctob (wint_t);
int mbsinit (const mbstate_t*);
size_t mbrlen (const char*, size_t, mbstate_t*);
size_t mbrtowc (wchar_t*, const char*, size_t, mbstate_t*);
size_t wcrtomb (char*, wchar_t, mbstate_t*);
size_t mbsrtowcs (wchar_t*, const char**, size_t, mbstate_t*);
size_t wcsrtombs (char*, const wchar_t**, size_t, mbstate_t*);
} // extern "C"
// 21.4, p14 of ISO/IEC 14882:1998
inline const wchar_t* wcschr (const wchar_t *__s, wchar_t __c)
{
return wcschr (_RWSTD_CONST_CAST (wchar_t*, __s), __c);
}
// 21.4, p16 of ISO/IEC 14882:1998
inline const wchar_t* wcspbrk (const wchar_t *__s1, const wchar_t *__s2)
{
return wcspbrk (_RWSTD_CONST_CAST (wchar_t*, __s1), __s2);
}
// 21.4, p18 of ISO/IEC 14882:1998
inline const wchar_t* wcsrchr (const wchar_t *__s, wchar_t __c)
{
return wcsrchr (_RWSTD_CONST_CAST (wchar_t*, __s), __c);
}
// 21.4, p20 of ISO/IEC 14882:1998
inline const wchar_t* wcsstr (const wchar_t *__s1, const wchar_t *__s2)
{
return wcsstr (_RWSTD_CONST_CAST (wchar_t*, __s1), __s2);
}
// 21.4, p22 of ISO/IEC 14882:1998
inline const wchar_t* wmemchr (const wchar_t *__p, wchar_t __c, size_t __n)
{
return wmemchr (_RWSTD_CONST_CAST (wchar_t*, __p), __c, __n);
}
} // namespace std
#endif // _RWSTD_CWCHAR_H_INCLUDED

View File

@@ -0,0 +1,91 @@
// -*- C++ -*-
/***************************************************************************
*
* cwctype - C++ Standard library interface to the ANSI C header wctype.h
*
* $Id: _cwctype.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_CWCTYPE_H_INCLUDED
#define _RWSTD_CWCTYPE_H_INCLUDED
#include <rw/_defs.h>
_RWSTD_NAMESPACE (std) {
#ifndef WEOF
# define WEOF _RWSTD_WEOF
#endif // WEOF
extern "C" {
#ifdef _RWSTD_WCTRANS_T
typedef _RWSTD_WCTRANS_T wctrans_t;
#else
typedef int wctrans_t;
#endif // _RWSTD_WCTRANS_T
#ifdef _RWSTD_WCTYPE_T
typedef _RWSTD_WCTYPE_T wctype_t;
#else
typedef int wctype_t;
#endif // _RWSTD_WCTYPE_T
#ifdef _RWSTD_WINT_T
typedef _RWSTD_WINT_T wint_t;
#else
typedef long wint_t;
#endif // _RWSTD_WINT_T
int iswalnum (wint_t);
int iswalpha (wint_t);
int iswcntrl (wint_t);
int iswdigit (wint_t);
int iswgraph (wint_t);
int iswlower (wint_t);
int iswprint (wint_t);
int iswpunct (wint_t);
int iswspace (wint_t);
int iswupper (wint_t);
int iswxdigit (wint_t);
wctype_t wctype (const char*);
int iswctype (wint_t, wctype_t);
wint_t towlower (wint_t);
wint_t towupper (wint_t);
wctrans_t wctrans (const char*);
wint_t towctrans (wint_t, wctrans_t);
} // extern "C"
} // namespace std
#endif // _RWSTD_CWCTYPE_H_INCLUDED

View File

@@ -0,0 +1,35 @@
/***************************************************************************
*
* assert.h
*
* $Id: assert.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# include <cassert>
#else
# include _RWSTD_ANSI_C_ASSERT_H
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

View File

@@ -0,0 +1,36 @@
// -*- C++ -*-
/***************************************************************************
*
* cassert - C++ Standard library interface to the ANSI C header assert.h
*
* $Id: cassert 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cassert.h>
#else
# include _RWSTD_ANSI_C_ASSERT_H
#endif // _RWSTD_NO_PURE_C_HEADERS

121
extern/stdcxx/4.2.1/include/ansi/cctype vendored Normal file
View File

@@ -0,0 +1,121 @@
// -*- C++ -*-
/***************************************************************************
*
* cctype - C++ Standard library interface to the ANSI C header ctype.h
*
* $Id: cctype 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cctype.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 2
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_CTYPE_H
// 17.4.1.2, p6 - masking macros are not allowed
#undef isalnum
#undef isalpha
#undef iscntrl
#undef isdigit
#undef isgraph
#undef islower
#undef isprint
#undef ispunct
#undef isspace
#undef isupper
#undef isxdigit
#undef tolower
#undef toupper
#if _RWSTD_NAMESPACE_STD_OPEN == 2
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 2
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CCTYPE_INCLUDED
#define _RWSTD_CCTYPE_INCLUDED
#include _RWSTD_ANSI_C_CTYPE_H
// 17.4.1.2, p6 - masking macros are not allowed
#undef isalnum
#undef isalpha
#undef iscntrl
#undef isdigit
#undef isgraph
#undef islower
#undef isprint
#undef ispunct
#undef isspace
#undef isupper
#undef isxdigit
#undef tolower
#undef toupper
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \
!defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
// 7.3 of C89
using ::isalnum;
using ::isalpha;
using ::iscntrl;
using ::isdigit;
using ::isgraph;
using ::islower;
using ::isprint;
using ::ispunct;
using ::isspace;
using ::isupper;
using ::isxdigit;
using ::tolower;
using ::toupper;
} // std
#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CCTYPE_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

86
extern/stdcxx/4.2.1/include/ansi/cerrno vendored Normal file
View File

@@ -0,0 +1,86 @@
// -*- C++ -*-
/***************************************************************************
*
* cerrno - C++ Standard library interface to the ANSI C header errno.h
*
* $Id: cerrno 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cerrno.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 3
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_ERRNO_H
#if _RWSTD_NAMESPACE_STD_OPEN == 3
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 3
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CERRNO_INCLUDED
#define _RWSTD_CERRNO_INCLUDED
#if !defined (errno) \
|| !defined (EDOM) || !defined (ERANGE) || !defined (EAGAIN)
# include _RWSTD_ANSI_C_ERRNO_H
#endif // errno ...
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
// 17.4.1.2, p5 - errno may be a macro
#ifndef errno
using ::errno;
// lwg issue 310 - errno shall be a macro
# define errno errno
#endif // errno
} // std
#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CERRNO_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

77
extern/stdcxx/4.2.1/include/ansi/cfloat vendored Normal file
View File

@@ -0,0 +1,77 @@
// -*- C++ -*-
/***************************************************************************
*
* cfloat - C++ Standard library interface to the ANSI C header float.h
*
* $Id: cfloat 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cfloat.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 4
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_FLOAT_H
#if _RWSTD_NAMESPACE_STD_OPEN == 4
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 4
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
# ifndef _RWSTD_CFLOAT_INCLUDED
# define _RWSTD_CFLOAT_INCLUDED
#include _RWSTD_ANSI_C_FLOAT_H
# endif // _RWSTD_CFLOAT_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
# if defined (__EDG__) && defined (__linux__) && !defined (__INTEL_COMPILER)
// avoid relying on dubious gcc extensions
# undef LDBL_MIN
# undef LDBL_MAX
# define LDBL_MIN _RWSTD_LDBL_MIN
# define LDBL_MAX _RWSTD_LDBL_MAX
# endif // __EDG__ && __linux__ && !__INTEL_COMPILER
#endif // _RWSTD_NO_PURE_C_HEADERS

View File

@@ -0,0 +1,32 @@
// -*- C++ -*-
/***************************************************************************
*
* ciso646 - C++ Standard library interface to the ANSI C header iso646.h
*
* $Id: ciso646 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#include _RWSTD_ANSI_C_ISO646_H

124
extern/stdcxx/4.2.1/include/ansi/climits vendored Normal file
View File

@@ -0,0 +1,124 @@
// -*- C++ -*-
/***************************************************************************
*
* climits - C++ Standard library interface to the ANSI C header limits.h
*
* $Id: climits 648752 2008-04-16 17:01:56Z faridz $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2008 Rogue Wave Software, Inc.
*
**************************************************************************/
#ifndef _RWSTD_CLIMITS_INCLUDED
#define _RWSTD_CLIMITS_INCLUDED
#include <rw/_defs.h>
#if !defined (_RWSTD_NO_PURE_C_HEADERS) || defined (_RWSTD_NO_LIMITS_H)
// 18.2.2, p1
#ifndef CHAR_BIT
# define CHAR_BIT _RWSTD_CHAR_BIT
#endif // CHAR_BIT
#ifndef CHAR_MAX
# define CHAR_MAX _RWSTD_CHAR_MAX
#endif // CHAR_MAX
#ifndef CHAR_MIN
# define CHAR_MIN _RWSTD_CHAR_MIN
#endif // CHAR_MIN
#ifndef SCHAR_MAX
# define SCHAR_MAX _RWSTD_SCHAR_MAX
#endif // SCHAR_MAX
#ifndef SCHAR_MIN
# define SCHAR_MIN _RWSTD_SCHAR_MIN
#endif // SCHAR_MIN
#ifndef UCHAR_MAX
# define UCHAR_MAX _RWSTD_UCHAR_MAX
#endif // UCHAR_MAX
#ifndef SHRT_MAX
# define SHRT_MAX _RWSTD_SHRT_MAX
#endif // SHRT_MAX
#ifndef SHRT_MIN
# define SHRT_MIN _RWSTD_SHRT_MIN
#endif // SHRT_MIN
#ifndef USHRT_MAX
# define USHRT_MAX _RWSTD_USHRT_MAX
#endif // USHRT_MAX
#ifndef INT_MAX
# define INT_MAX _RWSTD_INT_MAX
#endif // INT_MAX
#ifndef INT_MIN
# define INT_MIN _RWSTD_INT_MIN
#endif // INT_MIN
#ifndef UINT_MAX
# define UINT_MAX _RWSTD_UINT_MAX
#endif // UINT_MAX
#ifndef LONG_MAX
# define LONG_MAX _RWSTD_LONG_MAX
#endif // LONG_MAX
#ifndef LONG_MIN
# define LONG_MIN _RWSTD_LONG_MIN
#endif // LONG_MIN
#ifndef ULONG_MAX
# define ULONG_MAX _RWSTD_ULONG_MAX
#endif // ULONG_MAX
#ifndef MB_LEN_MAX
# define MB_LEN_MAX _RWSTD_MB_LEN_MAX
#endif // MB_LEN_MAX
#else // if defined (_RWSTD_NO_PURE_C_HEADERS)
# ifdef __GNUC__
# if __GNUC__ >= 3
// silence gcc warnings about #include_next below
# pragma GCC system_header
# endif // gcc >= 3
// use the gcc extension to #include the compiler's limits.h
# include_next <limits.h>
# else
# include _RWSTD_ANSI_C_LIMITS_H
# endif // gcc
#endif // _RWSTD_NO_PURE_C_HEADERS
#if (MB_LEN_MAX != _RWSTD_MB_LEN_MAX)
# undef MB_LEN_MAX
# define MB_LEN_MAX _RWSTD_MB_LEN_MAX
#endif // MB_LEN_MAX
#endif // _RWSTD_CLIMITS_INCLUDED

View File

@@ -0,0 +1,82 @@
// -*- C++ -*-
/***************************************************************************
*
* clocale - C++ Standard library interface to the ANSI C header locale.h
*
* $Id: clocale 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_clocale.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 7
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_LOCALE_H
#if _RWSTD_NAMESPACE_STD_OPEN == 7
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 7
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CLOCALE_INCLUDED
#define _RWSTD_CLOCALE_INCLUDED
#include _RWSTD_ANSI_C_LOCALE_H
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \
!defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
// 7.4 of C89
using ::lconv;
using ::localeconv;
using ::setlocale;
} // std
#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CLOCALE_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

1053
extern/stdcxx/4.2.1/include/ansi/cmath vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,84 @@
// -*- C++ -*-
/***************************************************************************
*
* csetjmp - C++ Standard library interface to the ANSI C header stddef.h
*
* $Id: csetjmp 580483 2007-09-28 20:55:52Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_csetjmp.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 9
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_SETJMP_H
#if _RWSTD_NAMESPACE_STD_OPEN == 9
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 9
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CSETJMP_INCLUDED
#define _RWSTD_CSETJMP_INCLUDED
#include _RWSTD_ANSI_C_SETJMP_H
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \
!defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
using ::jmp_buf;
using ::longjmp;
} // std
#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CSETJMP_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef setjmp
# define setjmp(env) setjmp (env)
#endif
#endif // _RWSTD_NO_PURE_C_HEADERS

View File

@@ -0,0 +1,80 @@
// -*- C++ -*-
/***************************************************************************
*
* csignal - C++ Standard library interface to the ANSI C header signal.h
*
* $Id: csignal 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_csignal.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 10
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_SIGNAL_H
#if _RWSTD_NAMESPACE_STD_OPEN == 10
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 10
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CSIGNAL_INCLUDED
#define _RWSTD_CSIGNAL_INCLUDED
#include _RWSTD_ANSI_C_SIGNAL_H
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \
!defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
using ::sig_atomic_t;
using ::raise;
using ::signal;
} // std
#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CSIGNAL_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

View File

@@ -0,0 +1,77 @@
// -*- C++ -*-
/***************************************************************************
*
* cstdarg - C++ Standard library interface to the ANSI C header stdarg.h
*
* $Id: cstdarg 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cstdarg.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 11
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_STDARG_H
#if _RWSTD_NAMESPACE_STD_OPEN == 11
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 11
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CSTDARG_INCLUDED
#define _RWSTD_CSTDARG_INCLUDED
#include _RWSTD_ANSI_C_STDARG_H
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
using ::va_list;
} // std
#endif // !_RWSTD_NO_NAMESPACE && !defined (_RWSTD_NO_USING_LIBC_IN_STD)
#endif // _RWSTD_CSTDARG_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

View File

@@ -0,0 +1,78 @@
// -*- C++ -*-
/***************************************************************************
*
* cstddef - C++ Standard library interface to the ANSI C header stddef.h
*
* $Id: cstddef 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cstddef.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 12
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_STDDEF_H
#if _RWSTD_NAMESPACE_STD_OPEN == 12
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 12
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CSTDDEF_INCLUDED
#define _RWSTD_CSTDDEF_INCLUDED
#include _RWSTD_ANSI_C_STDDEF_H
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
using ::size_t;
using ::ptrdiff_t;
} // std
#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CSTDDEF_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

313
extern/stdcxx/4.2.1/include/ansi/cstdio vendored Normal file
View File

@@ -0,0 +1,313 @@
// -*- C++ -*-
/***************************************************************************
*
* cstdio - C++ Standard library interface to the ANSI C header stdio.h
*
* $Id: cstdio 609466 2008-01-06 23:18:56Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2007 Rogue Wave Software, Inc.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cstdio.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 14
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_STDIO_H
#if _RWSTD_NAMESPACE_STD_OPEN == 14
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 14
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CSTDIO_INCLUDED
#define _RWSTD_CSTDIO_INCLUDED
#include _RWSTD_ANSI_C_STDIO_H
// 27.8.2, p1, Table 94
#ifndef stdin
# define stdin stdin
#endif
#ifndef stdout
# define stdout stdout
#endif
#ifndef stderr
# define stderr stderr
#endif
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \
!defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
using ::size_t;
using ::FILE;
#ifndef _RWSTD_NO_FPOS_T
using ::fpos_t;
#endif // _RWSTD_NO_FPOS_T
#ifndef _RWSTD_NO_CLEARERR
using ::clearerr;
#endif // _RWSTD_NO_CLEARERR
#ifndef _RWSTD_NO_FCLOSE
using ::fclose;
#endif // _RWSTD_NO_FCLOSE
#ifndef _RWSTD_NO_FEOF
using ::feof;
#endif // _RWSTD_NO_FEOF
#ifndef _RWSTD_NO_FERROR
using ::ferror;
#endif // _RWSTD_NO_FERROR
#ifndef _RWSTD_NO_FFLUSH
using ::fflush;
#endif // _RWSTD_NO_FFLUSH
#ifndef _RWSTD_NO_FGETC
using ::fgetc;
#endif // _RWSTD_NO_FGETC
#ifndef _RWSTD_NO_FGETPOS
using ::fgetpos;
#endif // _RWSTD_NO_FGETPOS
#ifndef _RWSTD_NO_FGETS
using ::fgets;
#endif // _RWSTD_NO_FGETS
#ifndef _RWSTD_NO_FOPEN
using ::fopen;
#endif // _RWSTD_NO_FOPEN
#ifndef _RWSTD_NO_FPRINTF
using ::fprintf;
#endif // _RWSTD_NO_FPRINTF
#ifndef _RWSTD_NO_FPUTC
using ::fputc;
#endif // _RWSTD_NO_FPUTC
#ifndef _RWSTD_NO_FPUTS
using ::fputs;
#endif // _RWSTD_NO_FPUTS
#ifndef _RWSTD_NO_FREAD
using ::fread;
#endif // _RWSTD_NO_FREAD
#ifndef _RWSTD_NO_FREOPEN
using ::freopen;
#endif // _RWSTD_NO_FREOPEN
#ifndef _RWSTD_NO_FSCANF
using ::fscanf;
#endif // _RWSTD_NO_FSCANF
#ifndef _RWSTD_NO_FSEEK
using ::fseek;
#endif // _RWSTD_NO_FSEEK
#ifndef _RWSTD_NO_FSETPOS
using ::fsetpos;
#endif // _RWSTD_NO_FSETPOS
#ifndef _RWSTD_NO_FTELL
using ::ftell;
#endif // _RWSTD_NO_FTELL
#ifndef _RWSTD_NO_FWRITE
using ::fwrite;
#endif // _RWSTD_NO_FWRITE
#ifndef _RWSTD_NO_GETC
using ::getc;
#endif // _RWSTD_NO_GETC
#ifndef _RWSTD_NO_GETCHAR
using ::getchar;
#endif // _RWSTD_NO_GETCHAR
#ifndef _RWSTD_NO_GETS
using ::gets;
#endif // _RWSTD_NO_GETS
#ifndef _RWSTD_NO_PERROR
using ::perror;
#endif // _RWSTD_NO_PERROR
#ifndef _RWSTD_NO_PRINTF
using ::printf;
#endif // _RWSTD_NO_PRINTF
#ifndef _RWSTD_NO_PUTC
using ::putc;
#endif // _RWSTD_NO_PUTC
#ifndef _RWSTD_NO_PUTCHAR
using ::putchar;
#endif // _RWSTD_NO_PUTCHAR
#ifndef _RWSTD_NO_PUTS
using ::puts;
#endif // _RWSTD_NO_PUTS
#ifndef _RWSTD_NO_REMOVE
using ::remove;
#endif // _RWSTD_NO_REMOVE
#ifndef _RWSTD_NO_RENAME
using ::rename;
#endif // _RWSTD_NO_RENAME
#ifndef _RWSTD_NO_REWIND
using ::rewind;
#endif // _RWSTD_NO_REWIND
#ifndef _RWSTD_NO_SCANF
using ::scanf;
#endif // _RWSTD_NO_SCANF
#ifndef _RWSTD_NO_SETBUF
using ::setbuf;
#endif // _RWSTD_NO_SETBUF
#ifndef _RWSTD_NO_SETVBUF
using ::setvbuf;
#endif // _RWSTD_NO_SETVBUF
#ifndef _RWSTD_NO_SPRINTF
using ::sprintf;
#endif // _RWSTD_NO_SPRINTF
#ifndef _RWSTD_NO_SSCANF
using ::sscanf;
#endif // _RWSTD_NO_SSCANF
#ifndef _RWSTD_NO_TMPFILE
using ::tmpfile;
#endif // _RWSTD_NO_TMPFILE
#ifndef _RWSTD_NO_TMPNAM
using ::tmpnam;
#else
# ifndef _RWSTD_NO_TMPNAM_IN_LIBC
extern "C" char *tmpnam (char *);
# endif // _RWSTD_NO_TMPNAM_IN_LIBC
#endif // _RWSTD_NO_TMPNAM
#ifndef _RWSTD_NO_UNGETC
using ::ungetc;
#endif // _RWSTD_NO_UNGETC
#ifndef _RWSTD_NO_VFPRINTF
using ::vfprintf;
#endif // _RWSTD_NO_VFPRINTF
#ifndef _RWSTD_NO_VPRINTF
using ::vprintf;
#endif // _RWSTD_NO_VPRINTF
#ifndef _RWSTD_NO_VSPRINTF
using ::vsprintf;
#endif // _RWSTD_NO_VSPRINTF
} // std
#ifdef _RWSTD_STRICT_ANSI
// undefine shadow macros in strict mode
# undef fpos_t
# undef remove
# undef rename
# undef tmpfile
# undef tmpnam
# undef fclose
# undef fflush
# undef fopen
# undef freopen
# undef setbuf
# undef setvbuf
# undef fprintf
# undef fscanf
# undef printf
# undef scanf
# undef sprintf
# undef sscanf
# undef vfprintf
# undef vprintf
# undef vsprintf
# undef fgetc
# undef fgets
# undef fputc
# undef fputs
# undef getc
# undef getchar
# undef gets
# undef putc
# undef putchar
# undef puts
# undef ungetc
# undef fread
# undef fwrite
# undef fgetpos
# undef fseek
# undef fsetpos
# undef ftell
# undef rewind
# undef clearerr
# undef feof
# undef ferror
# undef perror
#endif
#endif // !_NO_NAMESPACE && !__NO_HONOR_STD && !_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CSTDIO_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

263
extern/stdcxx/4.2.1/include/ansi/cstdlib vendored Normal file
View File

@@ -0,0 +1,263 @@
// -*- C++ -*-
/***************************************************************************
*
* cstdlib - C++ Standard library interface to the ANSI C header stdlib.h
*
* $Id: cstdlib 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cstdlib.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 15
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_STDLIB_H
#ifndef _RWSTD_CSTDLIB_INCLUDED
#define _RWSTD_CSTDLIB_INCLUDED
#ifdef _RWSTD_NO_ABS_LONG
inline long abs (long __x)
{
return __x < 0L ? -__x : __x;
}
#endif // _RWSTD_NO_ABS_LONG
#ifdef _RWSTD_NO_DIV_LONG
# ifndef _RWSTD_NO_LDIV
inline ldiv_t div (long __x, long __y)
{
return ldiv (__x, __y);
}
# endif // _RWSTD_NO_LDIV
#endif // _RWSTD_NO_DIV_LONG
#endif // _RWSTD_CSTDLIB_INCLUDED
#if _RWSTD_NAMESPACE_STD_OPEN == 15
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 15
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CSTDLIB_INCLUDED
#define _RWSTD_CSTDLIB_INCLUDED
#include _RWSTD_ANSI_C_STDLIB_H
#undef ldiv
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \
!defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
#ifdef _RWSTD_NO_ABS_UINT
inline unsigned abs (unsigned __x)
{
return __x;
}
#endif // _RWSTD_NO_ABS_UINT
#ifdef _RWSTD_NO_ABS_LONG
inline long abs (long __x)
{
return __x < 0L ? -__x : __x;
}
#endif // _RWSTD_NO_ABS_LONG
#ifdef _RWSTD_NO_ABS_ULONG
inline unsigned long abs (unsigned long __x)
{
return __x;
}
#endif // _RWSTD_NO_ABS_ULONG
#ifdef _RWSTD_LONG_LONG
# ifdef _RWSTD_NO_ABS_LLONG
inline _RWSTD_LONG_LONG abs (_RWSTD_LONG_LONG __x)
{
return __x < (_RWSTD_LONG_LONG)0 ? -__x : __x;
}
# endif // _RWSTD_NO_ABS_LLONG
# ifdef _RWSTD_NO_ABS_ULLONG
inline unsigned _RWSTD_LONG_LONG abs (unsigned _RWSTD_LONG_LONG __x)
{
return __x;
}
# endif // _RWSTD_NO_ABS_ULLONG
#endif // _RWSTD_LONG_LONG
#ifdef _RWSTD_NO_DIV_LONG
# ifndef _RWSTD_NO_LDIV
inline ldiv_t div (long __x, long __y)
{
return ldiv (__x, __y);
}
# endif // _RWSTD_NO_LDIV
#endif // _RWSTD_NO_DIV_LONG
#ifndef _RWSTD_NO_EXTERN_C_COMPATIBILITY
# ifndef _RWSTD_NO_EXTERN_C_OVERLOAD
extern "C" {
typedef int (*__rw_compar_t)(const void*, const void*);
}
extern "C++" {
// 25.4, p3
inline void*
bsearch (const void *__key, const void *__base, size_t __n, size_t __size,
int (*__cmp)(const void*, const void*))
{
return ::bsearch (__key, __base, __n, __size,
_RWSTD_REINTERPRET_CAST (__rw_compar_t, __cmp));
}
// 25.4, p4
inline void
qsort (void *__base, size_t __n, size_t __size,
int (*__cmp)(const void*, const void*))
{
return ::qsort (__base, __n, __size,
_RWSTD_REINTERPRET_CAST (__rw_compar_t, __cmp));
}
} // extern "C++"
# endif // _RWSTD_NO_EXTERN_C_OVERLOAD
#endif // _RWSTD_NO_EXTERN_C_COMPATIBILITY
// using statements must come after the overloads.
// working around MSVC6 PR# 27677
using ::size_t;
using ::div_t;
#ifndef _RWSTD_NO_LDIV
using ::ldiv_t;
#endif // _RWSTD_NO_LDIV
using ::abort;
#if defined (_RWSTD_NO_ABS) && defined (_RWSTD_NO_ABS_INT) \
|| defined (__HP_aCC) \
&& defined (_MATH_INCLUDED) && !defined (__MATH_INCLUDED)
// hacking around an HP aCC quirk when using system headers
// in /usr/include without the compiler's wrappers (i.e.,
// when -I/usr/include is on the command line)
} // namespace std
extern "C" {
inline int abs (int __x)
{
return __x < 0 ? -__x : __x;
}
} // extern "C"
namespace std {
#endif // _RWSTD_NO_ABS && _RWSTD_NO_ABS_INT ...
using ::abs;
using ::atexit;
using ::atof;
using ::atoi;
using ::atol;
using ::bsearch;
using ::calloc;
using ::div;
using ::exit;
using ::free;
using ::getenv;
using ::labs;
using ::ldiv;
using ::malloc;
using ::mblen;
using ::mbstowcs;
#ifndef _RWSTD_NO_MBTOWC
using ::mbtowc;
#endif // _RWSTD_NO_MBTOWC
using ::qsort;
using ::rand;
using ::realloc;
using ::srand;
using ::strtod;
using ::strtol;
using ::strtoul;
using ::system;
using ::wcstombs;
using ::wctomb;
} // namespace std
#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CSTDLIB_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

447
extern/stdcxx/4.2.1/include/ansi/cstring vendored Normal file
View File

@@ -0,0 +1,447 @@
// -*- C++ -*-
/***************************************************************************
*
* cstring - C++ Standard library interface to the ANSI C header string.h
*
* $Id: cstring 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cstring.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NO_NAMESPACE
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 15
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_STRING_H
#if _RWSTD_NAMESPACE_STD_OPEN == 15
#undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 15
_RWSTD_NAMESPACE (std) {
#if 0
const char* strchr (const char *__s, int __c);
const char* strpbrk (const char *__s1, const char *__s2);
const char* strrchr (const char *__s, int __c);
const char* strstr (const char *__s1, const char *__s2);
const void* memchr (const void *__p, int __c, size_t __n);
#endif // 0/1
#ifndef _RWSTD_CSTRING_INCLUDED
#define _RWSTD_CSTRING_INCLUDED
inline char* strchr (char *__s, int __c)
{
return strchr ((const char*)__s, __c);
}
inline char* strpbrk (char *__s1, const char *__s2)
{
return strpbrk ((const char*)__s1, __s2);
}
inline char* strrchr (char *__s, int __c)
{
return strrchr ((const char*)__s, __c);
}
inline char* strstr (char *__s1, const char *__s2)
{
return strstr ((const char*)__s1, __s2);
}
inline void* memchr (void *__p, int __c, size_t __n)
{
return memchr ((const void*)__p, __c, __n);
}
#endif // _RWSTD_CSTRING_INCLUDED
} // namespace std
#else // if defined (_RWSTD_NO_NAMESPACE)
#include _RWSTD_ANSI_C_STRING_H
#endif // _RWSTD_NO_NAMESPACE
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CSTRING_INCLUDED
#define _RWSTD_CSTRING_INCLUDED
#include _RWSTD_ANSI_C_STRING_H
# undef index
# undef rindex
# undef strcpy
# undef strcmp
# undef strlen
# undef strchr
# undef strrchr
# undef strcat
# undef memchr
# undef memcpy
# undef memmove
# undef memcmp
# undef memset
# undef memccpy
# undef strncat
# undef strncmp
# undef strncpy
#ifndef NULL
# define NULL 0
#endif // NULL
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \
!defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
using ::size_t;
#ifndef _RWSTD_NO_MEMCHR
using ::memchr;
#elif !defined (_RWSTD_NO_MEMCHR_IN_LIBC)
} // namespace std
extern "C" void* memchr (void*, int, size_t);
inline const void* memchr (const void *__p, int __c, size_t __n)
{
return memchr (_RWSTD_CONST_CAST (void*, __p), __c, __n);
}
namespace std {
using ::memchr;
# undef _RWSTD_NO_MEMCHR
#else // if defined (_RWSTD_NO_MEMCHR)
#endif // _RWSTD_NO_MEMCHR
#ifndef _RWSTD_NO_MEMCMP
using ::memcmp;
#elif !defined (_RWSTD_NO_MEMCMP_IN_LIBC)
} // namespace std
extern "C" int memcmp (const void*, const void*, size_t);
namespace std {
using ::memcmp;
# undef _RWSTD_NO_MEMCMP
#else // if defined (_RWSTD_NO_MEMCMP)
} // namespace std
extern "C" {
inline int memcmp (const void *__s1, const void *__s2, size_t __n)
{
const char *__ss1 = _RWSTD_REINTERPRET_CAST (const char*, __s1);
const char *__ss2 = _RWSTD_REINTERPRET_CAST (const char*, __s2);
for (; __n; --__n, ++__ss1, ++__ss2)
if (*__ss1 != *__ss2)
return *__ss1 - *__ss2;
return 0;
}
} // extern "C"
namespace std {
using ::memcmp;
# undef _RWSTD_NO_MEMCMP
#endif // _RWSTD_NO_MEMCMP
#ifndef _RWSTD_NO_MEMCPY
using ::memcpy;
#elif !defined (_RWSTD_NO_MEMCPY_IN_LIBC)
} // namespace std
extern "C" void* memcpy (void*, const void*, size_t);
namespace std {
using ::memcpy;
# undef _RWSTD_NO_MEMCPY
#else
#endif // _RWSTD_NO_MEMCPY
#ifndef _RWSTD_NO_MEMMOVE
using ::memmove;
#elif !defined (_RWSTD_NO_MEMMOVE_IN_LIBC)
} // namespace std
extern "C" void* memmove (void*, const void*, size_t);
namespace std {
using ::memmove;
# undef _RWSTD_NO_MEMMOVE
#else // if defined (_RWSTD_NO_MEMMOVE)
} // namespace std
extern "C" {
inline void* memmove (void *__dest, const void *__src, size_t __n)
{
char *__d = _RWSTD_REINTERPRET_CAST (char*, __dest);
const char *__s = _RWSTD_REINTERPRET_CAST (const char*, __src);
if (__d < __s || __d >= __s + __n)
memcpy (__d, __s, __n);
else {
// regions overlap
__d += __n;
__s += __n;
while (__n--)
*--__d = *--__s;
}
return __dest;
}
} // extern "C"
namespace std {
using ::memmove;
# undef _RWSTD_NO_MEMMOVE
#endif // _RWSTD_NO_MEMMOVE
#ifndef _RWSTD_NO_MEMSET
using ::memset;
#else // if defined (_RWSTD_NO_MEMSET)
#endif // _RWSTD_NO_MEMSET
#ifndef _RWSTD_NO_STRCAT
using ::strcat;
#else // if defined (_RWSTD_NO_STRCAT)
#endif // _RWSTD_NO_STRCAT
#ifndef _RWSTD_NO_STRCHR
using ::strchr;
#elif !defined (_RWSTD_NO_STRCHR_IN_LIBC)
} // namespace std
extern "C" char* strchr (char*, int);
inline const char* strchr (const char *__s, int __c)
{
return strchr (_RWSTD_CONST_CAST (char*, __s), __c);
}
namespace std {
using ::strchr;
# undef _RWSTD_NO_STRCHR
#else // if defined (_RWSTD_NO_STRCHR)
#endif // _RWSTD_NO_STRCHR
#ifndef _RWSTD_NO_STRCMP
using ::strcmp;
#elif !defined (_RWSTD_NO_STRCMP_IN_LIBC)
#else // if defined (_RWSTD_NO_STRCMP)
#endif // _RWSTD_NO_STRCMP
#ifndef _RWSTD_NO_STRCOLL
using ::strcoll;
#else // if defined (_RWSTD_NO_STRCOLL)
#endif // _RWSTD_NO_STRCOLL
#ifndef _RWSTD_NO_STRCPY
using ::strcpy;
#else // if defined (_RWSTD_NO_STRCPY)
#endif // _RWSTD_NO_STRCPY
#ifndef _RWSTD_NO_STRCSPN
using ::strcspn;
#else // if defined (_RWSTD_NO_STRCSPN)
#endif // _RWSTD_NO_STRCSPN
#ifndef _RWSTD_NO_STRERROR
using ::strerror;
#else // if defined (_RWSTD_NO_STRERROR)
#endif // _RWSTD_NO_STRERROR
#ifndef _RWSTD_NO_STRLEN
using ::strlen;
#else // if defined (_RWSTD_NO_STRLEN)
#endif // _RWSTD_NO_STRLEN
#ifndef _RWSTD_NO_STRNCAT
using ::strncat;
#else // if defined (_RWSTD_NO_STRNCAT)
#endif // _RWSTD_NO_STRNCAT
#ifndef _RWSTD_NO_STRNCMP
using ::strncmp;
#else // if defined (_RWSTD_NO_STRNCMP)
#endif // _RWSTD_NO_STRNCMP
#ifndef _RWSTD_NO_STRNCPY
using ::strncpy;
#else // if defined (_RWSTD_NO_STRNCPY)
#endif // _RWSTD_NO_STRNCPY
#ifndef _RWSTD_NO_STRPBRK
using ::strpbrk;
#elif !defined (_RWSTD_NO_STRPBRK_IN_LIBC)
} // namespace std
extern "C" char* strpbrk (char*, const char*);
inline const char* strpbrk (const char *__s, const char *__pat)
{
return strpbrk (_RWSTD_CONST_CAST (char*, __s), __pat);
}
namespace std {
using ::strpbrk;
# undef _RWSTD_NO_STRPBRK
#else
#endif // _RWSTD_NO_STRPBRK
#ifndef _RWSTD_NO_STRRCHR
using ::strrchr;
#elif !defined (_RWSTD_NO_STRRCHR_IN_LIBC)
} // namespace std
extern "C" char* strrchr (char*, int);
inline const char* strrchr (const char *__s, int __c)
{
return strrchr (_RWSTD_CONST_CAST (char*, __s), __c);
}
namespace std {
using ::strrchr;
# undef _RWSTD_NO_STRRCHR
#else // if defined (_RWSTD_NO_STRRCHR)
#endif // _RWSTD_NO_STRRCHR
#ifndef _RWSTD_NO_STRSPN
using ::strspn;
#else // if defined (_RWSTD_NO_STRSPN)
#endif // _RWSTD_NO_STRSPN
#ifndef _RWSTD_NO_STRSTR
using ::strstr;
#elif !defined (_RWSTD_NO_STRSTR_IN_LIBC)
} // namespace std
extern "C" char* strstr (char*, const char*);
inline const char* strstr (const char *__s1, const char *__s2)
{
return strstr (_RWSTD_CONST_CAST (char*, __s1), __s2);
}
namespace std {
using ::strstr;
# undef _RWSTD_NO_STRSTR
#else // if defined (_RWSTD_NO_STRSTR)
#endif // _RWSTD_NO_STRSTR
#ifndef _RWSTD_NO_STRTOK
using ::strtok;
#else // if defined (_RWSTD_NO_STRTOK)
#endif // _RWSTD_NO_STRTOK
#ifndef _RWSTD_NO_STRXFRM
using ::strxfrm;
#else // if defined (_RWSTD_NO_STRXFRM)
#endif // _RWSTD_NO_STRXFRM
} // std
#endif // !NO_NAMESPACE && !NO_HONOR_STD && !NO_USING_LIBC_IN_STD
#endif // _RWSTD_CSTRING_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

91
extern/stdcxx/4.2.1/include/ansi/ctime vendored Normal file
View File

@@ -0,0 +1,91 @@
// -*- C++ -*-
/***************************************************************************
*
* ctime - C++ Standard library interface to the ANSI C header time.h
*
* $Id: ctime 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_ctime.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 16
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_TIME_H
#if _RWSTD_NAMESPACE_STD_OPEN == 16
# undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 16
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CTIME_INCLUDED
#define _RWSTD_CTIME_INCLUDED
#include _RWSTD_ANSI_C_TIME_H
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \
!defined (_RWSTD_NO_USING_LIBC_IN_STD)
namespace std {
using ::size_t;
using ::clock_t;
using ::time_t;
using ::tm;
using ::asctime;
using ::clock;
using ::ctime;
using ::difftime;
using ::gmtime;
using ::localtime;
using ::mktime;
using ::strftime;
using ::time;
} // std
#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CTIME_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

View File

@@ -0,0 +1,58 @@
/***************************************************************************
*
* ctype.h
*
* $Id: ctype.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_CTYPE_H_INCLUDED
# define _RWSTD_CTYPE_H_INCLUDED
# include <cctype>
# ifndef _RWSTD_NO_NAMESPACE
using std::isalnum;
using std::isalpha;
using std::iscntrl;
using std::isdigit;
using std::isgraph;
using std::islower;
using std::isprint;
using std::ispunct;
using std::isspace;
using std::isupper;
using std::isxdigit;
using std::tolower;
using std::toupper;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_CTYPE_H_INCLUDED
#else
# include _RWSTD_ANSI_C_CTYPE_H
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

1372
extern/stdcxx/4.2.1/include/ansi/cwchar vendored Normal file

File diff suppressed because it is too large Load Diff

263
extern/stdcxx/4.2.1/include/ansi/cwctype vendored Normal file
View File

@@ -0,0 +1,263 @@
// -*- C++ -*-
/***************************************************************************
*
* cwctype - C++ Standard library interface to the ANSI C header wctype.h
*
* $Id: cwctype 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_PURE_C_HEADERS
# include <ansi/_cwctype.h>
#else
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
#ifndef _RWSTD_NAMESPACE_STD_OPEN
#define _RWSTD_NAMESPACE_STD_OPEN 18
_RWSTD_NAMESPACE (std) {
#endif // _RWSTD_NAMESPACE_STD_OPEN
#include _RWSTD_ANSI_C_WCTYPE_H
#if _RWSTD_NAMESPACE_STD_OPEN == 18
#undef _RWSTD_NAMESPACE_STD_OPEN
} // namespace std
#endif // _RWSTD_NAMESPACE_STD_OPEN == 18
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
#ifndef _RWSTD_CWCTYPE_INCLUDED
#define _RWSTD_CWCTYPE_INCLUDED
#include _RWSTD_ANSI_C_WCTYPE_H
#ifdef __hpux
# include _RWSTD_ANSI_C_WCHAR_H
#endif // __hpux
// #define WEOF when not #defined (see also <cwchar>)
#if !defined WEOF
# ifndef _RWSTD_NO_WINT_T
# define WEOF _RWSTD_STATIC_CAST (_RWSTD_WINT_T, -1)
# else
# define WEOF (-1)
# endif
#endif // WEOF
#if !defined (_RWSTD_NO_NAMESPACE) && !defined (_RWSTD_NO_HONOR_STD) && \
!defined (_RWSTD_NO_USING_LIBC_IN_STD)
# ifndef _RWSTD_NO_WCTYPE_H
namespace std {
#ifndef _RWSTD_NO_WCTRANS_T
using ::wctrans_t;
#else
typedef int wctrans_t;
#endif // _RWSTD_NO_WCTRANS_T
#ifndef _RWSTD_NO_WCTYPE_T
using ::wctype_t;
#else
typedef unsigned wctype_t;
#endif // _RWSTD_NO_WCTYPE_T
#ifndef _RWSTD_NO_WINT_T
using ::wint_t;
#else
typedef unsigned wint_t;
#endif // _RWSTD_NO_WINT_T
#ifndef _RWSTD_NO_ISWALNUM
using ::iswalnum;
#elif !defined (_RWSTD_NO_ISWALNUM_IN_LIBC)
extern "C" int iswalnum (wint_t);
#else
#endif // _RWSTD_NO_ISWALNUM
#ifndef _RWSTD_NO_ISWALPHA
using ::iswalpha;
#elif !defined (_RWSTD_NO_ISWALPHA_IN_LIBC)
extern "C" int iswalpha (wint_t);
#else
#endif // _RWSTD_NO_ISWALPHA
#ifndef _RWSTD_NO_ISWCNTRL
using ::iswcntrl;
#elif !defined (_RWSTD_NO_ISWCNTRL_IN_LIBC)
extern "C" int iswcntrl (wint_t);
#else
#endif // _RWSTD_NO_ISWCNTRL
#ifndef _RWSTD_NO_ISWCTYPE
using ::iswctype;
#elif !defined (_RWSTD_NO_ISWCTYPE_IN_LIBC)
extern "C" int iswctype (wint_t, wctype_t);
#else
#endif // _RWSTD_NO_ISWCTYPE
#ifndef _RWSTD_NO_ISWDIGIT
using ::iswdigit;
#elif !defined (_RWSTD_NO_ISWDIGIT_IN_LIBC)
extern "C" int iswdigit (wint_t);
#else
#endif // _RWSTD_NO_ISWDIGIT
#ifndef _RWSTD_NO_ISWGRAPH
using ::iswgraph;
#elif !defined (_RWSTD_NO_ISWGRAPH_IN_LIBC)
extern "C" int iswgraph (wint_t);
#else
#endif // _RWSTD_NO_ISWGRAPH
#ifndef _RWSTD_NO_ISWLOWER
using ::iswlower;
#elif !defined (_RWSTD_NO_ISWLOWER_IN_LIBC)
extern "C" int iswlower (wint_t);
#else
#endif // _RWSTD_NO_ISWLOWER
#ifndef _RWSTD_NO_ISWPRINT
using ::iswprint;
#elif !defined (_RWSTD_NO_ISWPRINT_IN_LIBC)
extern "C" int iswprint (wint_t);
#else
#endif // _RWSTD_NO_ISWPRINT
#ifndef _RWSTD_NO_ISWPUNCT
using ::iswpunct;
#elif !defined (_RWSTD_NO_ISWPUNCT_IN_LIBC)
extern "C" int iswpunct (wint_t);
#else
#endif // _RWSTD_NO_ISWPUNCT
#ifndef _RWSTD_NO_ISWSPACE
using ::iswspace;
#elif !defined (_RWSTD_NO_ISWSPACE_IN_LIBC)
extern "C" int iswspace (wint_t);
#else
#endif // _RWSTD_NO_ISWSPACE
#ifndef _RWSTD_NO_ISWUPPER
using ::iswupper;
#elif !defined (_RWSTD_NO_ISWUPPER_IN_LIBC)
extern "C" int iswupper (wint_t);
#else
#endif // _RWSTD_NO_ISWUPPER
#ifndef _RWSTD_NO_ISWXDIGIT
using ::iswxdigit;
#elif !defined (_RWSTD_NO_ISWXDIGIT_IN_LIBC)
extern "C" int iswxdigit (wint_t);
#else
#endif // _RWSTD_NO_ISWXDIGIT
#ifndef _RWSTD_NO_TOWCTRANS
using ::towctrans;
#elif !defined (_RWSTD_NO_TOWCTRANS_IN_LIBC)
extern "C" wint_t towctrans (wint_t, wctrans_t);
#else
#endif // _RWSTD_NO_TOWCTRANS
#ifndef _RWSTD_NO_TOWLOWER
using ::towlower;
#elif !defined (_RWSTD_NO_TOWLOWER_IN_LIBC)
extern "C" wint_t towlower (wint_t);
#else
#endif // _RWSTD_NO_TOWLOWER
#ifndef _RWSTD_NO_TOWUPPER
using ::towupper;
#elif !defined (_RWSTD_NO_TOWUPPER_IN_LIBC)
extern "C" wint_t towupper (wint_t);
#else
#endif // _RWSTD_NO_TOWUPPER
#ifndef _RWSTD_NO_WCTRANS
using ::wctrans;
#elif !defined (_RWSTD_NO_WCTRANS_IN_LIBC)
extern "C" wctrans_t wctrans (const char*);
#else
#endif // _RWSTD_NO_WCTRANS
#ifndef _RWSTD_NO_WCTYPE
using ::wctype;
#elif !defined (_RWSTD_NO_WCTYPE_IN_LIBC)
extern "C" wctype_t wctype (const char*);
#else
#endif // _RWSTD_NO_WCTYPE
} // std
# endif // _RWSTD_NO_WCTYPE_H
#endif // !_RWSTD_NO_NAMESPACE && !_RWSTD_NO_HONOR_STD && !_RWSTD_NO_USING_LIBC_IN_STD
#endif // _RWSTD_CWCTYPE_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_NO_PURE_C_HEADERS

View File

@@ -0,0 +1,60 @@
/***************************************************************************
*
* errno.h
*
* $Id: errno.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_ERRNO_H_INCLUDED
# define _RWSTD_ERRNO_H_INCLUDED
# include <cerrno>
# ifndef _RWSTD_NO_NAMESPACE
# ifndef errno
// be prepared to handle 17.4.1.2, p5 and lwg issue 310
// which say that errno may and must be a macro, respectively
using std::errno;
# endif // errno
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_ERRNO_H_INCLUDED
#else
# if !defined (errno) \
|| !defined (EDOM) || !defined (ERANGE) || !defined (EAGAIN)
# include _RWSTD_ANSI_C_ERRNO_H
# endif // errno ...
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

View File

@@ -0,0 +1,46 @@
/***************************************************************************
*
* float.h - C++ Standard library wrapper for the ANSI C library header
*
* $Id: float.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# include <cfloat>
#else
# include _RWSTD_ANSI_C_FLOAT_H
# if defined (__EDG__) && defined (__linux__) && !defined (__INTEL_COMPILER)
// avoid relying on dubious gcc extensions
# undef LDBL_MIN
# undef LDBL_MAX
# define LDBL_MIN _RWSTD_LDBL_MIN
# define LDBL_MAX _RWSTD_LDBL_MAX
# endif // __EDG__ && __linux__ && !__INTEL_COMPILER
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

View File

@@ -0,0 +1,129 @@
/***************************************************************************
*
* limits.h
*
* $Id: limits.h 648752 2008-04-16 17:01:56Z faridz $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2008 Rogue Wave Software, Inc.
*
**************************************************************************/
#ifndef _RWSTD_LIMITS_H_INCLUDED
#define _RWSTD_LIMITS_H_INCLUDED
#include <rw/_defs.h>
#if !defined (_RWSTD_NO_PURE_C_HEADERS) || defined (_RWSTD_NO_LIMITS_H)
// 18.2.2, p2
#ifndef CHAR_BIT
# define CHAR_BIT _RWSTD_CHAR_BIT
#endif // CHAR_BIT
#ifndef CHAR_MAX
# define CHAR_MAX _RWSTD_CHAR_MAX
#endif // CHAR_MAX
#ifndef CHAR_MIN
# define CHAR_MIN _RWSTD_CHAR_MIN
#endif // CHAR_MIN
#ifndef SCHAR_MAX
# define SCHAR_MAX _RWSTD_SCHAR_MAX
#endif // SCHAR_MAX
#ifndef SCHAR_MIN
# define SCHAR_MIN _RWSTD_SCHAR_MIN
#endif // SCHAR_MIN
#ifndef UCHAR_MAX
# define UCHAR_MAX _RWSTD_UCHAR_MAX
#endif // UCHAR_MAX
#ifndef SHRT_MAX
# define SHRT_MAX _RWSTD_SHRT_MAX
#endif // SHRT_MAX
#ifndef SHRT_MIN
# define SHRT_MIN _RWSTD_SHRT_MIN
#endif // SHRT_MIN
#ifndef USHRT_MAX
# define USHRT_MAX _RWSTD_USHRT_MAX
#endif // USHRT_MAX
#ifndef INT_MAX
# define INT_MAX _RWSTD_INT_MAX
#endif // INT_MAX
#ifndef INT_MIN
# define INT_MIN _RWSTD_INT_MIN
#endif // INT_MIN
#ifndef UINT_MAX
# define UINT_MAX _RWSTD_UINT_MAX
#endif // UINT_MAX
#ifndef LONG_MAX
# define LONG_MAX _RWSTD_LONG_MAX
#endif // LONG_MAX
#ifndef LONG_MIN
# define LONG_MIN _RWSTD_LONG_MIN
#endif // LONG_MIN
#ifndef ULONG_MAX
# define ULONG_MAX _RWSTD_ULONG_MAX
#endif // ULONG_MAX
#ifndef MB_LEN_MAX
# define MB_LEN_MAX _RWSTD_MB_LEN_MAX
#endif // MB_LEN_MAX
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
# if __GNUC__ > 2
# pragma GCC system_header
# endif
# ifdef __GNUC__
// use the gcc extension to #include the compiler's limits.h
# include_next <limits.h>
# else
# include _RWSTD_ANSI_C_LIMITS_H
# endif // gcc
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#if defined (__hpux__) || defined (__hpux) || defined (hpux)
# ifndef _POSIX_PATH_MAX
# define _POSIX_PATH_MAX 255
# endif // _POSIX_PATH_MAX
#endif // HP-UX
#if (MB_LEN_MAX != _RWSTD_MB_LEN_MAX)
# undef MB_LEN_MAX
# define MB_LEN_MAX _RWSTD_MB_LEN_MAX
#endif // MB_LEN_MAX
#endif // _RWSTD_LIMITS_H_INCLUDED

View File

@@ -0,0 +1,47 @@
/***************************************************************************
*
* locale.h
*
* $Id: locale.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_LOCALE_H_INCLUDED
# define _RWSTD_LOCALE_H_INCLUDED
# include <clocale>
# ifndef _RWSTD_NO_NAMESPACE
using std::lconv;
using std::localeconv;
using std::setlocale;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_LOCALE_H_INCLUDED
#else
# include _RWSTD_ANSI_C_LOCALE_H
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

82
extern/stdcxx/4.2.1/include/ansi/math.h vendored Normal file
View File

@@ -0,0 +1,82 @@
/***************************************************************************
*
* math.h - C++ Standard library wrapper for the ANSI C library header
*
* $Id: math.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_MATH_H_INCLUDED
# define _RWSTD_MATH_H_INCLUDED
# include <cmath>
# ifndef _RWSTD_NO_NAMESPACE
using std::acos;
using std::asin;
using std::atan2;
using std::atan;
using std::ceil;
using std::cos;
using std::cosh;
using std::exp;
using std::fabs;
using std::floor;
using std::fmod;
using std::frexp;
using std::ldexp;
using std::log10;
using std::log;
using std::modf;
using std::pow;
using std::sin;
using std::sinh;
using std::sqrt;
using std::tan;
using std::tanh;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_MATH_H_INCLUDED
#else
# include _RWSTD_ANSI_C_MATH_H
#undef exception
#undef abs
#undef acos
#undef asin
#undef atan
#undef atan2
#undef cos
#undef exp
#undef fabs
#undef log
#undef log10
#undef sin
#undef sqrt
#undef tan
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

View File

@@ -0,0 +1,51 @@
/***************************************************************************
*
* setjmp.h
*
* $Id: setjmp.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#ifndef _RWSTD_SETJMP_H_INCLUDED
#define _RWSTD_SETJMP_H_INCLUDED
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# include <csetjmp>
# ifndef _RWSTD_NO_NAMESPACE
using std::jmp_buf;
using std::longjmp;
# endif // _RWSTD_NO_NAMESPACE
#else
# include _RWSTD_ANSI_C_SETJMP_H
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS
#endif // _RWSTD_SETJMP_H_INCLUDED

View File

@@ -0,0 +1,67 @@
/***************************************************************************
*
* signal.h
*
* $Id: signal.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_SIGNAL_H_INCLUDED
# define _RWSTD_SIGNAL_H_INCLUDED
# include <csignal>
# ifndef _RWSTD_NO_NAMESPACE
using std::sig_atomic_t;
using std::raise;
using std::signal;
# ifdef __linux__
// hackery needed by <pthread.h>
# ifndef _SIGSET_H_types
# define _SIGSET_H_types 1
typedef int __sig_atomic_t;
# define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int)))
typedef struct {
unsigned long int __val[_SIGSET_NWORDS];
} __sigset_t;
# endif // _SIGSET_H_types
# endif // __linux__
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_SIGNAL_H_INCLUDED
#else
# include _RWSTD_ANSI_C_SIGNAL_H
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

View File

@@ -0,0 +1,56 @@
/***************************************************************************
*
* stdarg.h
*
* $Id: stdarg.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_STDARG_H_INCLUDED
# define _RWSTD_STDARG_H_INCLUDED
# include <cstdarg>
# ifndef _RWSTD_NO_NAMESPACE
// not implemented - va_list is declared in the global namespace
// see <ansi/_cstdarg.h>
// using std::va_list;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_STDARG_H_INCLUDED
#else
#if !defined (__EDG__) || defined (__DECCXX) || defined (__INTEL_COMPILER)
# include _RWSTD_ANSI_C_STDARG_H
#else // vanilla EDG eccp
# include <../include/stdarg.h>
#endif
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

View File

@@ -0,0 +1,46 @@
/***************************************************************************
*
* stddef.h
*
* $Id: stddef.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_STDDEF_H_INCLUDED
# define _RWSTD_STDDEF_H_INCLUDED
# include <cstddef>
# ifndef _RWSTD_NO_NAMESPACE
using std::ptrdiff_t;
using std::size_t;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_STDDEF_H_INCLUDED
#else
# include _RWSTD_ANSI_C_STDDEF_H
#endif // _RWSTD_STDDEF_H_INCLUDED

View File

@@ -0,0 +1,93 @@
/***************************************************************************
*
* stdio.h
*
* $Id: stdio.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_STDIO_H_INCLUDED
# define _RWSTD_STDIO_H_INCLUDED
# include <cstdio>
# ifndef _RWSTD_NO_NAMESPACE
using std::FILE;
#ifndef _RWSTD_NO_FPOS_T
using std::fpos_t;
#endif // _RWSTD_NO_FPOS_T
using std::size_t;
using std::clearerr;
using std::fclose;
using std::feof;
using std::ferror;
using std::fflush;
using std::fgetc;
using std::fgetpos;
using std::fgets;
using std::fopen;
using std::fprintf;
using std::fputc;
using std::fputs;
using std::fread;
using std::freopen;
using std::fscanf;
using std::fseek;
using std::fsetpos;
using std::ftell;
using std::fwrite;
using std::getc;
using std::getchar;
using std::gets;
using std::perror;
using std::printf;
using std::putc;
using std::putchar;
using std::puts;
using std::remove;
using std::rename;
using std::rewind;
using std::scanf;
using std::setbuf;
using std::setvbuf;
using std::sprintf;
using std::sscanf;
using std::tmpfile;
using std::tmpnam;
using std::ungetc;
using std::vfprintf;
using std::vprintf;
using std::vsprintf;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_STDIO_H_INCLUDED
#else
# include _RWSTD_ANSI_C_STDIO_H
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

View File

@@ -0,0 +1,121 @@
/***************************************************************************
*
* stdlib.h
*
* $Id: stdlib.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_STDLIB_H_INCLUDED
# define _RWSTD_STDLIB_H_INCLUDED
# include <cstdlib>
# ifndef _RWSTD_NO_NAMESPACE
using std::div_t;
using std::ldiv_t;
using std::size_t;
#if !defined (__GNUG__) || __GNUG__ > 2
// prevent collisions with gcc's intrinsic functions
using std::abort;
using std::abs;
using std::exit;
using std::labs;
#endif // gcc > 2
using std::atexit;
using std::atof;
using std::atoi;
using std::atol;
using std::bsearch;
using std::calloc;
using std::div;
using std::free;
using std::getenv;
using std::ldiv;
using std::malloc;
using std::mblen;
using std::mbstowcs;
#ifndef _RWSTD_NO_MBTOWC
using std::mbtowc;
#elif !defined (_RWSTD_NO_MBTOWC_IN_LIBC)
# ifndef _RWSTD_NO_WCHAR_T
extern "C" int mbtowc (wchar_t*, const char*, size_t);
# undef _RWSTD_NO_MBTOWC
# endif // _RWSTD_NO_WCHAR_T
#endif // _RWSTD_NO_MBTOWC
using std::qsort;
using std::rand;
using std::realloc;
using std::srand;
using std::strtod;
using std::strtol;
using std::strtoul;
using std::system;
using std::wcstombs;
using std::wctomb;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_STDLIB_H_INCLUDED
#else
# include _RWSTD_ANSI_C_STDLIB_H
# if defined (__HP_aCC) \
&& defined (_MATH_INCLUDED) && !defined (__MATH_INCLUDED)
// hacking around an HP aCC quirk when using system headers
// in /usr/include without the compiler's wrappers (i.e.,
// when -I/usr/include is on the command line)
extern "C" {
inline int abs (int __x)
{
return __x < 0 ? -__x : __x;
}
} // extern "C"
# endif // HP aCC && /usr/include/math.h included
# undef ldiv
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

View File

@@ -0,0 +1,172 @@
/***************************************************************************
*
* string.h
*
* $Id: string.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2005 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_STRING_H_INCLUDED
# define _RWSTD_STRING_H_INCLUDED
# include <cstring>
# ifndef _RWSTD_NO_NAMESPACE
using std::size_t;
using std::memchr;
#if !defined (__GNUG__) || __GNUG__ > 2
// predeclared intrinsic functions cannot be redeclared
using std::memcmp;
using std::memcpy;
using std::strcmp;
using std::strcpy;
using std::strlen;
#endif // < gcc 3.0
using std::memmove;
using std::memset;
using std::strcat;
using std::strchr;
using std::strcoll;
using std::strcspn;
using std::strerror;
using std::strncat;
using std::strncmp;
using std::strncpy;
using std::strpbrk;
using std::strrchr;
using std::strspn;
using std::strstr;
using std::strtok;
using std::strxfrm;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_STRING_H_INCLUDED
#else
#ifndef _RWSTD_STRING_H_INCLUDED
#define _RWSTD_STRING_H_INCLUDED
# include _RWSTD_ANSI_C_STRING_H
# undef index
# undef rindex
# undef strcpy
# undef strcmp
# undef strlen
# undef strchr
# undef strrchr
# undef strcat
# undef memchr
# undef memcpy
# undef memmove
# undef memcmp
# undef memset
# undef memccpy
# undef strncat
# undef strncmp
# undef strncpy
#if defined (_RWSTD_NO_MEMCHR) && !defined (_RWSTD_NO_MEMCHR_IN_LIBC)
extern "C" void* memchr (void*, int, _RWSTD_SIZE_T);
inline const void* memchr (const void *__s, int __c, _RWSTD_SIZE_T __n)
{
return memchr (_RWSTD_CONST_CAST (void*, __s), __c, __n);
}
# undef _RWSTD_NO_MEMCHR
#endif // _RWSTD_NO_MEMCHR && !_RWSTD_NO_MEMCHR_IN_LIBC
#if defined (_RWSTD_NO_STRPBRK) && !defined (_RWSTD_NO_STRPBRK_IN_LIBC)
extern "C" char* strpbrk (char*, const char*);
inline const char* strpbrk (const char *__s, const char *__pat)
{
return strpbrk (_RWSTD_CONST_CAST (char*, __s), __pat);
}
# undef _RWSTD_NO_STRPBRK
#endif // _RWSTD_NO_STRPBRK && !_RWSTD_NO_STRPBRK_IN_LIBC
#if defined (_RWSTD_NO_STRCHR) && !defined (_RWSTD_NO_STRCHR_IN_LIBC)
extern "C" char* strchr (char*, int);
inline const char* strchr (const char *__s, int __c)
{
return strchr (_RWSTD_CONST_CAST (char*, __s), __c);
}
# undef _RWSTD_NO_STRCHR
#endif // _RWSTD_NO_STRCHR && !_RWSTD_NO_STRCHR_IN_LIBC
#if defined (_RWSTD_NO_STRRCHR) && !defined (_RWSTD_NO_STRRCHR_IN_LIBC)
extern "C" char* strrchr (char*, int);
inline const char* strrchr (const char *__s, int __c)
{
return strrchr (_RWSTD_CONST_CAST (char*, __s), __c);
}
# undef _RWSTD_NO_STRRCHR
#endif // _RWSTD_NO_STRRCHR && !_RWSTD_NO_STRRCHR_IN_LIBC
#if defined (_RWSTD_NO_STRSTR) && !defined (_RWSTD_NO_STRSTR_IN_LIBC)
extern "C" char* strstr (char*, const char*);
inline const char* strstr (const char *__s1, const char *__s2)
{
return strstr (_RWSTD_CONST_CAST (char*, __s1), __s2);
}
# undef _RWSTD_NO_STRSTR
#endif // _RWSTD_NO_STRSTR && !_RWSTD_NO_STRSTR_IN_LIBC
# endif // _RWSTD_STRING_H_INCLUDED
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

63
extern/stdcxx/4.2.1/include/ansi/time.h vendored Normal file
View File

@@ -0,0 +1,63 @@
/***************************************************************************
*
* time.h
*
* $Id: time.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_TIME_H_INCLUDED
# define _RWSTD_TIME_H_INCLUDED
# include <ctime>
# ifndef _RWSTD_NO_NAMESPACE
using std::clock_t;
using std::size_t;
using std::time_t;
using std::tm;
using std::asctime;
using std::clock;
using std::ctime;
using std::difftime;
using std::gmtime;
using std::localtime;
using std::mktime;
using std::strftime;
using std::time;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_TIME_H_INCLUDED
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
# include _RWSTD_ANSI_C_TIME_H
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

410
extern/stdcxx/4.2.1/include/ansi/wchar.h vendored Normal file
View File

@@ -0,0 +1,410 @@
/***************************************************************************
*
* wchar.h
*
* $Id: wchar.h 580483 2007-09-28 20:55:52Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_WCHAR_H_INCLUDED
# define _RWSTD_WCHAR_H_INCLUDED
# include <cwchar>
# ifndef _RWSTD_NO_NAMESPACE
#ifndef _RWSTD_NO_MBSTATE_T
using std::mbstate_t;
#endif
#ifndef _RWSTD_NO_WINT_T
using std::wint_t;
#endif
using std::size_t;
#ifndef _RWSTD_NO_BTOWC
using std::btowc;
#endif
#ifndef _RWSTD_NO_FGETWC
using std::fgetwc;
#endif
#ifndef _RWSTD_NO_FGETWS
using std::fgetws;
#endif
#ifndef _RWSTD_NO_FPUTWC
using std::fputwc;
#endif
#ifndef _RWSTD_NO_FPUTWS
using std::fputws;
#endif
#ifndef _RWSTD_NO_FWPRINTF
using std::fwprintf;
#endif
#ifndef _RWSTD_NO_FWSCANF
using std::fwscanf;
#endif
#ifndef _RWSTD_NO_GETWC
using std::getwc;
#endif
#ifndef _RWSTD_NO_GETWCHAR
using std::getwchar;
#endif
#ifndef _RWSTD_NO_MBRLEN
using std::mbrlen;
#endif
#ifndef _RWSTD_NO_MBRTOWC
using std::mbrtowc;
#endif
#ifndef _RWSTD_NO_MBSINIT
using std::mbsinit;
#endif
#ifndef _RWSTD_NO_MBSRTOWCS
using std::mbsrtowcs;
#endif
#ifndef _RWSTD_NO_PUTWC
using std::putwc;
#endif
#ifndef _RWSTD_NO_PUTWCHAR
using std::putwchar;
#endif
#ifndef _RWSTD_NO_SWPRINTF
using std::swprintf;
#endif
#ifndef _RWSTD_NO_SWSCANF
using std::swscanf;
#endif
#ifndef _RWSTD_NO_UNGETWC
using std::ungetwc;
#endif
#ifndef _RWSTD_NO_VFWPRINTF
using std::vfwprintf;
#endif
#ifndef _RWSTD_NO_VWPRINTF
using std::vwprintf;
#endif
#ifndef _RWSTD_NO_WCRTOMB
using std::wcrtomb;
#endif
#ifndef _RWSTD_NO_WCSCAT
using std::wcscat;
#endif
#ifndef _RWSTD_NO_WCSCHR
using std::wcschr;
#endif
#ifndef _RWSTD_NO_WCSCMP
using std::wcscmp;
#endif
#ifndef _RWSTD_NO_WCSCOLL
using std::wcscoll;
#endif
#ifndef _RWSTD_NO_WCSCPY
using std::wcscpy;
#endif
#ifndef _RWSTD_NO_WCSCSPN
using std::wcscspn;
#endif
#ifndef _RWSTD_NO_WCSLEN
using std::wcslen;
#endif
#ifndef _RWSTD_NO_WCSNCAT
using std::wcsncat;
#endif
#ifndef _RWSTD_NO_WCSNCMP
using std::wcsncmp;
#endif
#ifndef _RWSTD_NO_WCSNCPY
using std::wcsncpy;
#endif
#ifndef _RWSTD_NO_WCSPBRK
using std::wcspbrk;
#endif
#ifndef _RWSTD_NO_WCSRCHR
using std::wcsrchr;
#endif
#ifndef _RWSTD_NO_WCSRTOMBS
using std::wcsrtombs;
#endif
#ifndef _RWSTD_NO_WCSSPN
using std::wcsspn;
#endif
#ifndef _RWSTD_NO_WCSSTR
using std::wcsstr;
#endif
#ifndef _RWSTD_NO_WCSTOD
using std::wcstod;
#endif
#ifndef _RWSTD_NO_WCSTOK
using std::wcstok;
#endif
#ifndef _RWSTD_NO_WCSTOL
using std::wcstol;
#endif
#ifndef _RWSTD_NO_WCSTOUL
using std::wcstoul;
#endif
#ifndef _RWSTD_NO_WCSXFRM
using std::wcsxfrm;
#endif
#ifndef _RWSTD_NO_WCTOB
using std::wctob;
#endif
#ifndef _RWSTD_NO_WMEMCHR
using std::wmemchr;
#endif
#ifndef _RWSTD_NO_WMEMCMP
using std::wmemcmp;
#endif
#ifndef _RWSTD_NO_WMEMCPY
using std::wmemcpy;
#endif
#ifndef _RWSTD_NO_WMEMMOVE
using std::wmemmove;
#endif
#ifndef _RWSTD_NO_WMEMSET
using std::wmemset;
#endif
#ifndef _RWSTD_NO_WPRINTF
using std::wprintf;
#endif
#ifndef _RWSTD_NO_WSCANF
using std::wscanf;
#endif
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_WCHAR_H_INCLUDED
#else // if defined (_RWSTD_NO_DEPRECATED_C_HEADERS)
# include _RWSTD_ANSI_C_WCHAR_H
# include <rw/_mbstate.h>
# ifndef WCHAR_MAX
# define WCHAR_MAX _RWSTD_WCHAR_MAX
# endif
# ifndef WCHAR_MIN
# define WCHAR_MIN _RWSTD_WCHAR_MIN
# endif
extern "C" {
// add missing declarations for functions known to be defined
// in the system libc
# if defined (_RWSTD_NO_MBSTATE_T) && defined (_RWSTD_MBSTATE_T)
typedef _RWSTD_MBSTATE_T mbstate_t;
# endif // _RWSTD_NO_MBSTATE_T && _RWSTD_MBSTATE_T
# if defined (_RWSTD_NO_FWPRINTF) && !defined (_RWSTD_NO_FWPRINTF_IN_LIBC)
int fwprintf (FILE*, const wchar_t*, ...);
# undef _RWSTD_NO_FWPRINTF
# endif // _RWSTD_NO_FWPRINTF && !_RWSTD_NO_FWPRINTF_IN_LIBC
# if defined (_RWSTD_NO_FWSCANF) && !defined (_RWSTD_NO_FWSCANF_IN_LIBC)
int fwscanf (FILE*, const wchar_t*, ...);
# undef _RWSTD_NO_FWSCANF
# endif // _RWSTD_NO_FWSCANF && !_RWSTD_NO_FWSCANF_IN_LIBC
# if defined (_RWSTD_NO_SWPRINTF) && !defined (_RWSTD_NO_SWPRINTF_IN_LIBC)
# if !defined (_MSC_VER)
// disabled for MSVC to avoid running into its awful declaration hackery
int swprintf (wchar_t*, _RWSTD_SIZE_T, const wchar_t*, ...);
# endif // !MSVC
# undef _RWSTD_NO_SWPRINTF
# endif // _RWSTD_NO_SWPRINTF && !_RWSTD_NO_SWPRINTF_IN_LIBC
# if defined (_RWSTD_NO_SWSCANF) && !defined (_RWSTD_NO_SWSCANF_IN_LIBC)
int swscanf (const wchar_t*, const wchar_t*, ...);
# undef _RWSTD_NO_SWSCANF
# endif // _RWSTD_NO_SWSCANF && !_RWSTD_NO_SWSCANF_IN_LIBC
# ifdef _RWSTD_VA_LIST
# if defined (_RWSTD_NO_VFWPRINTF) && !defined (_RWSTD_NO_VFWPRINTF_IN_LIBC)
int vfwprintf (FILE*, const wchar_t*, _RWSTD_VA_LIST);
# undef _RWSTD_NO_VFWPRINTF
# endif // _RWSTD_NO_VFWPRINTF && !_RWSTD_NO_VFWPRINTF_IN_LIBC
# if defined (_RWSTD_NO_VFWSCANF) && !defined (_RWSTD_NO_VFWSCANF_IN_LIBC)
int vfwscanf (FILE*, const wchar_t*, _RWSTD_VA_LIST);
# undef _RWSTD_NO_VFWSCANF
# endif // _RWSTD_NO_VFWSCANF && !_RWSTD_NO_VFWSCANF_IN_LIBC
# if defined (_RWSTD_NO_VWPRINTF) && !defined (_RWSTD_NO_VWPRINTF_IN_LIBC)
int vwprintf (const wchar_t*, _RWSTD_VA_LIST);
# undef _RWSTD_NO_VWPRINTF
# endif // _RWSTD_NO_VWPRINTF && !_RWSTD_NO_VWPRINTF_IN_LIBC
# if defined (_RWSTD_NO_VWSCANF) && !defined (_RWSTD_NO_VWSCANF_IN_LIBC)
int vwscanf (const wchar_t*, _RWSTD_VA_LIST);
# undef _RWSTD_NO_VWSCANF
# endif // _RWSTD_NO_VWSCANF && !_RWSTD_NO_VWSCANF_IN_LIBC
# endif // _RWSTD_VA_LIST
# if defined (_RWSTD_NO_MBRLEN) && !defined (_RWSTD_NO_MBRLEN_IN_LIBC)
_RWSTD_SIZE_T mbrlen (const char*, _RWSTD_SIZE_T, _RWSTD_MBSTATE_T*);
# undef _RWSTD_NO_MBRLEN
# endif // _RWSTD_NO_MBRLEN && !_RWSTD_NO_MBRLEN_IN_LIBC
# if defined (_RWSTD_NO_MBRTOWC) && !defined (_RWSTD_NO_MBRTOWC_IN_LIBC)
_RWSTD_SIZE_T mbrtowc (wchar_t*, const char*, _RWSTD_SIZE_T, _RWSTD_MBSTATE_T*);
# undef _RWSTD_NO_MBRTOWC
# endif // _RWSTD_NO_MBRTOWC && !_RWSTD_NO_MBRTOWC_IN_LIBC
# if defined (_RWSTD_NO_MBSINIT) && !defined (_RWSTD_NO_MBSINIT_IN_LIBC)
int mbsinit (const _RWSTD_MBSTATE_T*);
# undef _RWSTD_NO_MBSINIT
# endif // _RWSTD_NO_MBSINIT && !_RWSTD_NO_MBSINIT_IN_LIBC
# if defined (_RWSTD_NO_MBSRTOWCS) && !defined (_RWSTD_NO_MBSRTOWCS_IN_LIBC)
_RWSTD_SIZE_T mbsrtowcs (const wchar_t*, const char**, _RWSTD_SIZE_T,
_RWSTD_MBSTATE_T*);
# undef _RWSTD_NO_MBSRTOWCS
# endif // _RWSTD_NO_MBSRTOWCS && !_RWSTD_NO_MBSRTOWCS_IN_LIBC
# if defined (_RWSTD_NO_WCRTOMB) && !defined (_RWSTD_NO_WCRTOMB_IN_LIBC)
_RWSTD_SIZE_T wcrtomb (char*, wchar_t, _RWSTD_MBSTATE_T*);
# undef _RWSTD_NO_WCRTOMB
# endif // _RWSTD_NO_WCRTOMB && !_RWSTD_NO_WCRTOMB_IN_LIBC
# if defined (_RWSTD_NO_WCSRTOMBS) && !defined (_RWSTD_NO_WCSRTOMBS_IN_LIBC)
_RWSTD_SIZE_T wcsrtombs (char*, const char**, _RWSTD_SIZE_T,
_RWSTD_MBSTATE_T*);
# undef _RWSTD_NO_WCSRTOMBS
# endif // _RWSTD_NO_WCSRTOMBS && !_RWSTD_NO_WCSRTOMBS_IN_LIBC
# if defined (_RWSTD_NO_WCSCHR) && !defined (_RWSTD_NO_WCSCHR_IN_LIBC)
wchar_t* wcschr (wchar_t*, wchar_t);
} // extern "C"
inline const wchar_t*
wcschr (const wchar_t *__s, wchar_t __c)
{
return wcschr (_RWSTD_CONST_CAST (wchar_t*, __s), __c);
}
extern "C" {
# undef _RWSTD_NO_WCSCHR
# endif // _RWSTD_NO_WCSCHR && !_RWSTD_NO_WCSCHR_IN_LIBC
# if defined (_RWSTD_NO_WCSRCHR) && !defined (_RWSTD_NO_WCSRCHR_IN_LIBC)
wchar_t* wcsrchr (wchar_t*, wchar_t);
} // extern "C"
inline const wchar_t*
wcsrchr (const wchar_t *__s, wchar_t __c)
{
return wcsrchr (_RWSTD_CONST_CAST (wchar_t*, __s), __c);
}
extern "C" {
# undef _RWSTD_NO_WCSCHR
# endif // _RWSTD_NO_WCSCHR && !_RWSTD_NO_WCSCHR_IN_LIBC
# if defined (_RWSTD_NO_WCSSTR) && !defined (_RWSTD_NO_WCSSTR_IN_LIBC)
wchar_t* wcsstr (wchar_t*, const wchar_t*);
} // extern "C"
inline const wchar_t*
wcsstr (const wchar_t *__s1, const wchar_t *__s2)
{
return wcsstr (_RWSTD_CONST_CAST (wchar_t*, __s1), __s2);
}
extern "C" {
# undef _RWSTD_NO_WCSSTR
# endif // _RWSTD_NO_WCSSTR && !_RWSTD_NO_WCSSTR_IN_LIBC
# if defined (_RWSTD_NO_WMEMCHR) && !defined (_RWSTD_NO_WMEMCHR_IN_LIBC)
wchar_t* wmemchr (wchar_t*, wchar_t, _RWSTD_SIZE_T);
} // extern "C"
inline const wchar_t*
wmemchr (const wchar_t *__s, wchar_t __c, _RWSTD_SIZE_T __n)
{
return wmemchr (_RWSTD_CONST_CAST (wchar_t*, __s), __c, __n);
}
extern "C" {
# undef _RWSTD_NO_WMEMCHR
# endif // _RWSTD_NO_WMEMCHR && !_RWSTD_NO_WMEMCHR_IN_LIBC
# if defined (_RWSTD_NO_WMEMCMP) && !defined (_RWSTD_NO_WMEMCMP_IN_LIBC)
int wmemcmp (const wchar_t*, const wchar_t*, _RWSTD_SIZE_T);
# undef _RWSTD_NO_WMEMCMP
# endif // _RWSTD_NO_WMEMCMP && !_RWSTD_NO_WMEMCMP_IN_LIBC
# if defined (_RWSTD_NO_WMEMCPY) && !defined (_RWSTD_NO_WMEMCPY_IN_LIBC)
wchar_t* wmemcpy (wchar_t*, const wchar_t*, _RWSTD_SIZE_T);
# undef _RWSTD_NO_WMEMCPY
# endif // _RWSTD_NO_WMEMCPY && !_RWSTD_NO_WMEMCPY_IN_LIBC
# if defined (_RWSTD_NO_WMEMMOVE) && !defined (_RWSTD_NO_WMEMMOVE_IN_LIBC)
wchar_t* wmemmove (wchar_t*, const wchar_t*, _RWSTD_SIZE_T);
# undef _RWSTD_NO_WMEMMOVE
# endif // _RWSTD_NO_WMEMMOVE && !_RWSTD_NO_WMEMMOVE_IN_LIBC
# if defined (_RWSTD_NO_WMEMSET) && !defined (_RWSTD_NO_WMEMSET_IN_LIBC)
wchar_t* wmemset (wchar_t*, wchar_t, _RWSTD_SIZE_T);
# undef _RWSTD_NO_WMEMSET
# endif // _RWSTD_NO_WMEMSET && !_RWSTD_NO_WMEMSET_IN_LIBC
# if defined (_RWSTD_NO_WPRINTF) && !defined (_RWSTD_NO_WPRINTF_IN_LIBC)
int wprintf (const wchar_t*, ...);
# undef _RWSTD_NO_WPRINTF
# endif // _RWSTD_NO_WPRINTF && !_RWSTD_NO_WPRINTF_IN_LIBC
# if defined (_RWSTD_NO_WSCANF) && !defined (_RWSTD_NO_WSCANF_IN_LIBC)
int wscanf (const wchar_t*, ...);
# undef _RWSTD_NO_WSCANF
# endif // _RWSTD_NO_WSCANF && !_RWSTD_NO_WSCANF_IN_LIBC
# if defined (_RWSTD_NO_WCTOB) && !defined (_RWSTD_NO_WCTOB_IN_LIBC)
int wctob (_RWSTD_WINT_T);
# undef _RWSTD_NO_WCTOB
# endif // _RWSTD_NO_WCTOB && !_RWSTD_NO_WCTOB_IN_LIBC
} // extern "C"
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS

View File

@@ -0,0 +1,66 @@
/***************************************************************************
*
* wctype.h
*
* $Id: wctype.h 550991 2007-06-26 23:58:07Z sebor $
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* Copyright 1994-2006 Rogue Wave Software.
*
**************************************************************************/
#include <rw/_defs.h>
#ifndef _RWSTD_NO_DEPRECATED_C_HEADERS
# ifndef _RWSTD_WCTYPE_H_INCLUDED
# define _RWSTD_WCTYPE_H_INCLUDED
# include <cwctype>
# ifndef _RWSTD_NO_NAMESPACE
using std::wctrans_t;
using std::wctype_t;
using std::wint_t;
using std::iswalnum;
using std::iswalpha;
using std::iswcntrl;
using std::iswctype;
using std::iswdigit;
using std::iswgraph;
using std::iswlower;
using std::iswprint;
using std::iswpunct;
using std::iswspace;
using std::iswupper;
using std::iswxdigit;
using std::towctrans;
using std::towlower;
using std::towupper;
using std::wctrans;
using std::wctype;
# endif // _RWSTD_NO_NAMESPACE
# endif // _RWSTD_WCTYPE_H_INCLUDED
#else
# include _RWSTD_ANSI_C_WCTYPE_H
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS