зеркало из https://github.com/github/ruby.git
* 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:
Родитель
6434e1e690
Коммит
678af70ce8
|
@ -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):
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче