merge from gcc
This commit is contained in:
parent
c141c6961a
commit
52d6785fd9
11 changed files with 102 additions and 5 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2009-05-31 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* ansidecl.h: Add extern "C" when compiling with C++. Treat C++
|
||||||
|
the way we treat an ISO C compiler. Don't define inline as a
|
||||||
|
macdro when compiling with C++.
|
||||||
|
* dyn-string.h: Add header guard DYN_STRING_H. Add extern "C"
|
||||||
|
when compiling with C++.
|
||||||
|
* fibheap.h: Add extern "C" when compiling with C++.
|
||||||
|
|
||||||
2009-05-25 Tristan Gingold <gingold@adacore.com>
|
2009-05-25 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* fopen-vms.h (FOPEN_RB, FOPEN_WB, FOPEN_AB, FOPEN_RUB, FOPEN_WUB,
|
* fopen-vms.h (FOPEN_RB, FOPEN_WB, FOPEN_AB, FOPEN_RUB, FOPEN_WUB,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* ANSI and traditional C compatability macros
|
/* ANSI and traditional C compatability macros
|
||||||
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
||||||
|
2002, 2003, 2004, 2005, 2006, 2007, 2009
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
|
@ -114,6 +115,10 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#ifndef _ANSIDECL_H
|
#ifndef _ANSIDECL_H
|
||||||
#define _ANSIDECL_H 1
|
#define _ANSIDECL_H 1
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Every source file includes this file,
|
/* Every source file includes this file,
|
||||||
so they will all get the switch for lint. */
|
so they will all get the switch for lint. */
|
||||||
/* LINTLIBRARY */
|
/* LINTLIBRARY */
|
||||||
|
@ -136,7 +141,7 @@ So instead we use the macro below and test it against specific values. */
|
||||||
#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
|
#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
|
||||||
#endif /* GCC_VERSION */
|
#endif /* GCC_VERSION */
|
||||||
|
|
||||||
#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) || (defined(__alpha) && defined(__cplusplus))
|
#if defined (__STDC__) || defined(__cplusplus) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32)
|
||||||
/* All known AIX compilers implement these things (but don't always
|
/* All known AIX compilers implement these things (but don't always
|
||||||
define __STDC__). The RISC/OS MIPS compiler defines these things
|
define __STDC__). The RISC/OS MIPS compiler defines these things
|
||||||
in SVR4 mode, but does not define __STDC__. */
|
in SVR4 mode, but does not define __STDC__. */
|
||||||
|
@ -173,7 +178,7 @@ So instead we use the macro below and test it against specific values. */
|
||||||
/* inline requires special treatment; it's in C99, and GCC >=2.7 supports
|
/* inline requires special treatment; it's in C99, and GCC >=2.7 supports
|
||||||
it too, but it's not in C89. */
|
it too, but it's not in C89. */
|
||||||
#undef inline
|
#undef inline
|
||||||
#if __STDC_VERSION__ > 199901L
|
#if __STDC_VERSION__ > 199901L || defined(__cplusplus)
|
||||||
/* it's a keyword */
|
/* it's a keyword */
|
||||||
#else
|
#else
|
||||||
# if GCC_VERSION >= 2007
|
# if GCC_VERSION >= 2007
|
||||||
|
@ -390,4 +395,8 @@ So instead we use the macro below and test it against specific values. */
|
||||||
#define __extension__
|
#define __extension__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* ansidecl.h */
|
#endif /* ansidecl.h */
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* An abstract string datatype.
|
/* An abstract string datatype.
|
||||||
Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
|
Copyright (C) 1998, 1999, 2000, 2002, 2004, 2005, 2009
|
||||||
|
Free Software Foundation, Inc.
|
||||||
Contributed by Mark Mitchell (mark@markmitchell.com).
|
Contributed by Mark Mitchell (mark@markmitchell.com).
|
||||||
|
|
||||||
This file is part of GCC.
|
This file is part of GCC.
|
||||||
|
@ -19,6 +20,12 @@ along with GCC; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
|
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
|
||||||
Boston, MA 02110-1301, USA. */
|
Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
|
#ifndef DYN_STRING_H
|
||||||
|
#define DYN_STRING_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct dyn_string
|
typedef struct dyn_string
|
||||||
{
|
{
|
||||||
|
@ -58,3 +65,9 @@ extern int dyn_string_append_cstr (dyn_string_t, const char *);
|
||||||
extern int dyn_string_append_char (dyn_string_t, int);
|
extern int dyn_string_append_char (dyn_string_t, int);
|
||||||
extern int dyn_string_substring (dyn_string_t, dyn_string_t, int, int);
|
extern int dyn_string_substring (dyn_string_t, dyn_string_t, int, int);
|
||||||
extern int dyn_string_eq (dyn_string_t, dyn_string_t);
|
extern int dyn_string_eq (dyn_string_t, dyn_string_t);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* !defined (DYN_STRING_H) */
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* A Fibonacci heap datatype.
|
/* A Fibonacci heap datatype.
|
||||||
Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2009
|
||||||
|
Free Software Foundation, Inc.
|
||||||
Contributed by Daniel Berlin (dan@cgsoftware.com).
|
Contributed by Daniel Berlin (dan@cgsoftware.com).
|
||||||
|
|
||||||
This file is part of GCC.
|
This file is part of GCC.
|
||||||
|
@ -42,6 +43,10 @@ Boston, MA 02110-1301, USA. */
|
||||||
|
|
||||||
#include "ansidecl.h"
|
#include "ansidecl.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef long fibheapkey_t;
|
typedef long fibheapkey_t;
|
||||||
|
|
||||||
typedef struct fibheap
|
typedef struct fibheap
|
||||||
|
@ -83,4 +88,8 @@ extern void *fibheap_delete_node (fibheap_t, fibnode_t);
|
||||||
extern void fibheap_delete (fibheap_t);
|
extern void fibheap_delete (fibheap_t);
|
||||||
extern fibheap_t fibheap_union (fibheap_t, fibheap_t);
|
extern fibheap_t fibheap_union (fibheap_t, fibheap_t);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _FIBHEAP_H_ */
|
#endif /* _FIBHEAP_H_ */
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
2009-05-31 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* decContext.h: Add extern "C" if compiling with C++.
|
||||||
|
* decDPD.h: Likewise.
|
||||||
|
* decNumber.h: Likewise.
|
||||||
|
* dpd/decimal32.h: Likewise.
|
||||||
|
* dpd/decimal64.h: Likewise.
|
||||||
|
* dpd/decimal128.h: Likewise.
|
||||||
|
|
||||||
2009-04-09 Nick Clifton <nickc@redhat.com>
|
2009-04-09 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* decRound.c: Change copyright header to refer to version 3 of
|
* decRound.c: Change copyright header to refer to version 3 of
|
||||||
|
|
|
@ -245,6 +245,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
|
|
||||||
#include "decContextSymbols.h"
|
#include "decContextSymbols.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
extern decContext * decContextClearStatus(decContext *, uint32_t);
|
extern decContext * decContextClearStatus(decContext *, uint32_t);
|
||||||
extern decContext * decContextDefault(decContext *, int32_t);
|
extern decContext * decContextDefault(decContext *, int32_t);
|
||||||
extern enum rounding decContextGetRounding(decContext *);
|
extern enum rounding decContextGetRounding(decContext *);
|
||||||
|
@ -262,4 +266,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
extern uint32_t decContextTestStatus(decContext *, uint32_t);
|
extern uint32_t decContextTestStatus(decContext *, uint32_t);
|
||||||
extern decContext * decContextZeroStatus(decContext *);
|
extern decContext * decContextZeroStatus(decContext *);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -59,6 +59,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
#if defined(DEC_BCD2DPD) && DEC_BCD2DPD==1 && !defined(DECBCD2DPD)
|
#if defined(DEC_BCD2DPD) && DEC_BCD2DPD==1 && !defined(DECBCD2DPD)
|
||||||
#define DECBCD2DPD
|
#define DECBCD2DPD
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
const uint16_t BCD2DPD[2458]={ 0, 1, 2, 3, 4, 5, 6, 7,
|
const uint16_t BCD2DPD[2458]={ 0, 1, 2, 3, 4, 5, 6, 7,
|
||||||
8, 9, 0, 0, 0, 0, 0, 0, 16, 17, 18, 19, 20,
|
8, 9, 0, 0, 0, 0, 0, 0, 16, 17, 18, 19, 20,
|
||||||
21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 32, 33,
|
21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 32, 33,
|
||||||
|
@ -1206,5 +1210,9 @@ const uint8_t BIN2BCD8[4000]={
|
||||||
9,8,1,3, 9,8,2,3, 9,8,3,3, 9,8,4,3, 9,8,5,3, 9,8,6,3, 9,8,7,3, 9,8,8,3, 9,8,9,3,
|
9,8,1,3, 9,8,2,3, 9,8,3,3, 9,8,4,3, 9,8,5,3, 9,8,6,3, 9,8,7,3, 9,8,8,3, 9,8,9,3,
|
||||||
9,9,0,3, 9,9,1,3, 9,9,2,3, 9,9,3,3, 9,9,4,3, 9,9,5,3, 9,9,6,3, 9,9,7,3, 9,9,8,3,
|
9,9,0,3, 9,9,1,3, 9,9,2,3, 9,9,3,3, 9,9,4,3, 9,9,5,3, 9,9,6,3, 9,9,7,3, 9,9,8,3,
|
||||||
9,9,9,3};
|
9,9,9,3};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -108,6 +108,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
|
|
||||||
#include "decNumberSymbols.h"
|
#include "decNumberSymbols.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Conversions */
|
/* Conversions */
|
||||||
decNumber * decNumberFromInt32(decNumber *, int32_t);
|
decNumber * decNumberFromInt32(decNumber *, int32_t);
|
||||||
decNumber * decNumberFromUInt32(decNumber *, uint32_t);
|
decNumber * decNumberFromUInt32(decNumber *, uint32_t);
|
||||||
|
@ -192,4 +196,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
&& (((dn)->bits&DECSPECIAL)==0))
|
&& (((dn)->bits&DECSPECIAL)==0))
|
||||||
#define decNumberRadix(dn) (10)
|
#define decNumberRadix(dn) (10)
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -79,6 +79,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
|
|
||||||
#include "decimal128Symbols.h"
|
#include "decimal128Symbols.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* String conversions */
|
/* String conversions */
|
||||||
decimal128 * decimal128FromString(decimal128 *, const char *, decContext *);
|
decimal128 * decimal128FromString(decimal128 *, const char *, decContext *);
|
||||||
char * decimal128ToString(const decimal128 *, char *);
|
char * decimal128ToString(const decimal128 *, char *);
|
||||||
|
@ -93,4 +97,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
uint32_t decimal128IsCanonical(const decimal128 *);
|
uint32_t decimal128IsCanonical(const decimal128 *);
|
||||||
decimal128 * decimal128Canonical(decimal128 *, const decimal128 *);
|
decimal128 * decimal128Canonical(decimal128 *, const decimal128 *);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -77,6 +77,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
|
|
||||||
#include "decimal32Symbols.h"
|
#include "decimal32Symbols.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* String conversions */
|
/* String conversions */
|
||||||
decimal32 * decimal32FromString(decimal32 *, const char *, decContext *);
|
decimal32 * decimal32FromString(decimal32 *, const char *, decContext *);
|
||||||
char * decimal32ToString(const decimal32 *, char *);
|
char * decimal32ToString(const decimal32 *, char *);
|
||||||
|
@ -91,4 +95,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
uint32_t decimal32IsCanonical(const decimal32 *);
|
uint32_t decimal32IsCanonical(const decimal32 *);
|
||||||
decimal32 * decimal32Canonical(decimal32 *, const decimal32 *);
|
decimal32 * decimal32Canonical(decimal32 *, const decimal32 *);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -79,6 +79,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
|
|
||||||
#include "decimal64Symbols.h"
|
#include "decimal64Symbols.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* String conversions */
|
/* String conversions */
|
||||||
decimal64 * decimal64FromString(decimal64 *, const char *, decContext *);
|
decimal64 * decimal64FromString(decimal64 *, const char *, decContext *);
|
||||||
char * decimal64ToString(const decimal64 *, char *);
|
char * decimal64ToString(const decimal64 *, char *);
|
||||||
|
@ -93,4 +97,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
uint32_t decimal64IsCanonical(const decimal64 *);
|
uint32_t decimal64IsCanonical(const decimal64 *);
|
||||||
decimal64 * decimal64Canonical(decimal64 *, const decimal64 *);
|
decimal64 * decimal64Canonical(decimal64 *, const decimal64 *);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue