mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merge revision(s) 18211:
* bignum.c (rb_big2str0, bigsqr): made interruptible. [ruby-Bugs-20622] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c9463ec0af
commit
8f667853a3
4 changed files with 10 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Aug 4 13:49:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* bignum.c (rb_big2str0, bigsqr): made interruptible. [ruby-Bugs-20622]
|
||||||
|
|
||||||
Mon Aug 4 13:39:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Aug 4 13:39:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/openssl/openssl_missing.h (d2i_of_void): define for older
|
* ext/openssl/openssl_missing.h (d2i_of_void): define for older
|
||||||
|
|
|
||||||
3
bignum.c
3
bignum.c
|
|
@ -11,6 +11,7 @@
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include "ruby.h"
|
#include "ruby.h"
|
||||||
|
#include "rubysig.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
@ -709,6 +710,7 @@ rb_big2str0(x, base, trim)
|
||||||
s = RSTRING(ss)->ptr;
|
s = RSTRING(ss)->ptr;
|
||||||
|
|
||||||
s[0] = RBIGNUM(x)->sign ? '+' : '-';
|
s[0] = RBIGNUM(x)->sign ? '+' : '-';
|
||||||
|
TRAP_BEG;
|
||||||
while (i && j > 1) {
|
while (i && j > 1) {
|
||||||
long k = i;
|
long k = i;
|
||||||
BDIGIT_DBL num = 0;
|
BDIGIT_DBL num = 0;
|
||||||
|
|
@ -738,6 +740,7 @@ rb_big2str0(x, base, trim)
|
||||||
RSTRING(ss)->len = i;
|
RSTRING(ss)->len = i;
|
||||||
}
|
}
|
||||||
s[RSTRING(ss)->len] = '\0';
|
s[RSTRING(ss)->len] = '\0';
|
||||||
|
TRAP_END;
|
||||||
|
|
||||||
return ss;
|
return ss;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -341,7 +341,8 @@ array.$(OBJEXT): {$(VPATH)}array.c {$(VPATH)}ruby.h config.h \
|
||||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||||
{$(VPATH)}util.h {$(VPATH)}st.h
|
{$(VPATH)}util.h {$(VPATH)}st.h
|
||||||
bignum.$(OBJEXT): {$(VPATH)}bignum.c {$(VPATH)}ruby.h config.h \
|
bignum.$(OBJEXT): {$(VPATH)}bignum.c {$(VPATH)}ruby.h config.h \
|
||||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||||
|
{$(VPATH)}rubysig.h
|
||||||
class.$(OBJEXT): {$(VPATH)}class.c {$(VPATH)}ruby.h config.h \
|
class.$(OBJEXT): {$(VPATH)}class.c {$(VPATH)}ruby.h config.h \
|
||||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||||
{$(VPATH)}rubysig.h {$(VPATH)}node.h {$(VPATH)}st.h
|
{$(VPATH)}rubysig.h {$(VPATH)}node.h {$(VPATH)}st.h
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#define RUBY_RELEASE_DATE "2008-08-04"
|
#define RUBY_RELEASE_DATE "2008-08-04"
|
||||||
#define RUBY_VERSION_CODE 186
|
#define RUBY_VERSION_CODE 186
|
||||||
#define RUBY_RELEASE_CODE 20080804
|
#define RUBY_RELEASE_CODE 20080804
|
||||||
#define RUBY_PATCHLEVEL 282
|
#define RUBY_PATCHLEVEL 283
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
#define RUBY_VERSION_MINOR 8
|
#define RUBY_VERSION_MINOR 8
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue