mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
a26b7a0c82
commit
d8267b72b5
3 changed files with 10 additions and 3 deletions
|
@ -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>
|
||||
|
||||
* parse.y (lambda): need to adjust lpar_beg for both of the parser and
|
||||
|
|
|
@ -1083,7 +1083,7 @@ fmt_setup(char *buf, int c, int flags, int width, int prec)
|
|||
#undef vsnprintf
|
||||
#undef snprintf
|
||||
#define FLOATING_POINT 1
|
||||
#define BSD__dtoa dtoa
|
||||
#define BSD__dtoa ruby_dtoa
|
||||
#include "missing/vsnprintf.c"
|
||||
|
||||
static int
|
||||
|
|
4
util.c
4
util.c
|
@ -3092,7 +3092,7 @@ nrv_alloc(const char *s, char **rve, int n)
|
|||
* when MULTIPLE_THREADS is not defined.
|
||||
*/
|
||||
|
||||
void
|
||||
static void
|
||||
freedtoa(char *s)
|
||||
{
|
||||
Bigint *b = (Bigint *)((int *)s - 1);
|
||||
|
@ -3139,7 +3139,7 @@ freedtoa(char *s)
|
|||
*/
|
||||
|
||||
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
|
||||
of ecvt and fcvt; trailing zeros are suppressed from
|
||||
|
|
Loading…
Reference in a new issue