1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c: add extern declaration of rb_cBigDecimal.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mrkn 2010-08-10 06:25:23 +00:00
parent 6434e1e690
commit 678af70ce8
3 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Tue Aug 10 15:19:45 2010 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c:
add extern declaration of rb_cBigDecimal.
Tue Aug 10 14:09:31 2010 NARUSE, Yui <naruse@ruby-lang.org>
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest::parse_uri):

View file

@ -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);

View file

@ -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
*/