* util.c (freedtoa): made static to get rid of name clash. a patch by

Tadashi Saito <shiba AT mail2.accsnet.ne.jp> at [ruby-dev:36913]

* util.c (ruby_dtoa): added prefix, ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-10-24 18:56:31 +00:00
parent a26b7a0c82
commit d8267b72b5
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
Sat Oct 25 03:56:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* util.c (freedtoa): made static to get rid of name clash. a patch by
Tadashi Saito <shiba AT mail2.accsnet.ne.jp> at [ruby-dev:36913]
* util.c (ruby_dtoa): added prefix, ditto.
Sat Oct 25 03:43:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat Oct 25 03:43:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (lambda): need to adjust lpar_beg for both of the parser and * parse.y (lambda): need to adjust lpar_beg for both of the parser and

View File

@ -1083,7 +1083,7 @@ fmt_setup(char *buf, int c, int flags, int width, int prec)
#undef vsnprintf #undef vsnprintf
#undef snprintf #undef snprintf
#define FLOATING_POINT 1 #define FLOATING_POINT 1
#define BSD__dtoa dtoa #define BSD__dtoa ruby_dtoa
#include "missing/vsnprintf.c" #include "missing/vsnprintf.c"
static int static int

4
util.c
View File

@ -3092,7 +3092,7 @@ nrv_alloc(const char *s, char **rve, int n)
* when MULTIPLE_THREADS is not defined. * when MULTIPLE_THREADS is not defined.
*/ */
void static void
freedtoa(char *s) freedtoa(char *s)
{ {
Bigint *b = (Bigint *)((int *)s - 1); Bigint *b = (Bigint *)((int *)s - 1);
@ -3139,7 +3139,7 @@ freedtoa(char *s)
*/ */
char * char *
dtoa(double d, int mode, int ndigits, int *decpt, int *sign, char **rve) ruby_dtoa(double d, int mode, int ndigits, int *decpt, int *sign, char **rve)
{ {
/* Arguments ndigits, decpt, sign are similar to those /* Arguments ndigits, decpt, sign are similar to those
of ecvt and fcvt; trailing zeros are suppressed from of ecvt and fcvt; trailing zeros are suppressed from