From f9a4d5717c2cc4eddb44439f7d85d6840e928127 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 21 Dec 2011 03:35:27 +0000 Subject: * ext/bigdecimal/bigdecimal.c (BigDecimal_s_allocate): follow Allocation Framework. [Bug #5775] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/bigdecimal/bigdecimal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext/bigdecimal/bigdecimal.h') diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h index 80d2af20d7..b1dfd9c371 100644 --- a/ext/bigdecimal/bigdecimal.h +++ b/ext/bigdecimal/bigdecimal.h @@ -21,6 +21,9 @@ #if defined(__cplusplus) extern "C" { +#if 0 +} +#endif #endif #ifndef HAVE_LABS @@ -197,6 +200,7 @@ VP_EXPORT int VpIsNegDoubleZero(double v); VP_EXPORT size_t VpNumOfChars(Real *vp,const char *pszFmt); VP_EXPORT size_t VpInit(BDIGIT BaseVal); VP_EXPORT void *VpMemAlloc(size_t mb); +VP_EXPORT void *VpMemRealloc(void *ptr, size_t mb); VP_EXPORT void VpFree(Real *pv); VP_EXPORT Real *VpAlloc(size_t mx, const char *szVal); VP_EXPORT size_t VpAsgn(Real *c, Real *a, int isw); @@ -279,6 +283,9 @@ VP_EXPORT int VPrint(FILE *fp,const char *cntl_chr,Real *a); #endif /* BIGDECIMAL_DEBUG */ #if defined(__cplusplus) +#if 0 +{ +#endif } /* extern "C" { */ #endif #endif /* RUBY_BIG_DECIMAL_H */ -- cgit v1.2.3