ruby-changes:16950
From: mrkn <ko1@a...>
Date: Tue, 10 Aug 2010 15:26:59 +0900 (JST)
Subject: [ruby-changes:16950] Ruby:r28946 (trunk): * ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c: add extern declaration of rb_cBigDecimal.
mrkn 2010-08-10 15:25:23 +0900 (Tue, 10 Aug 2010) New Revision: 28946 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28946 Log: * ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c: add extern declaration of rb_cBigDecimal. Modified files: trunk/ChangeLog trunk/ext/bigdecimal/bigdecimal.c trunk/ext/bigdecimal/bigdecimal.h Index: ChangeLog =================================================================== --- ChangeLog (revision 28945) +++ ChangeLog (revision 28946) @@ -1,3 +1,8 @@ +Tue Aug 10 15:19:45 2010 Kenta Murata <mrkn@m...> + + * ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c: + add extern declaration of rb_cBigDecimal. + Tue Aug 10 14:09:31 2010 NARUSE, Yui <naruse@r...> * lib/webrick/httprequest.rb (WEBrick::HTTPRequest::parse_uri): Index: ext/bigdecimal/bigdecimal.c =================================================================== --- ext/bigdecimal/bigdecimal.c (revision 28945) +++ ext/bigdecimal/bigdecimal.c (revision 28946) @@ -13,7 +13,8 @@ * */ -#include "ruby/ruby.h" +#include "bigdecimal.h" + #include <ctype.h> #include <stdio.h> #include <stdlib.h> @@ -31,8 +32,6 @@ VALUE rb_cBigDecimal; -#include "bigdecimal.h" - /* MACRO's to guard objects from GC by keeping them in stack */ #define ENTER(n) volatile VALUE vStack[n];int iStack=0 #define PUSH(x) vStack[iStack++] = (unsigned long)(x); Index: ext/bigdecimal/bigdecimal.h =================================================================== --- ext/bigdecimal/bigdecimal.h (revision 28945) +++ ext/bigdecimal/bigdecimal.h (revision 28946) @@ -16,10 +16,14 @@ #ifndef ____BIG_DECIMAL__H____ #define ____BIG_DECIMAL__H____ +#include "ruby/ruby.h" + #if defined(__cplusplus) extern "C" { #endif +extern VALUE rb_cBigDecimal; + /* * NaN & Infinity */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/