mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c:
get rid of warnings. fixed: [ruby-core:06247] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bb13380822
commit
9401edfe22
6 changed files with 14 additions and 3 deletions
|
@ -1,8 +1,11 @@
|
||||||
Thu Oct 13 23:25:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Oct 13 23:29:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (HEAPCNT): bison allocates indivisible size.
|
* parse.y (HEAPCNT): bison allocates indivisible size.
|
||||||
fixed: [ruby-core:06261]
|
fixed: [ruby-core:06261]
|
||||||
|
|
||||||
|
* io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c:
|
||||||
|
get rid of warnings. fixed: [ruby-core:06247]
|
||||||
|
|
||||||
Wed Oct 12 12:52:57 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
Wed Oct 12 12:52:57 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* ext/openssl/ossl.c (Init_openssl): should call
|
* ext/openssl/ossl.c (Init_openssl): should call
|
||||||
|
|
|
@ -1339,7 +1339,7 @@ syck_badalias_cmp( alias1, alias2 )
|
||||||
*/
|
*/
|
||||||
VALUE
|
VALUE
|
||||||
syck_domaintype_initialize( self, domain, type_id, val )
|
syck_domaintype_initialize( self, domain, type_id, val )
|
||||||
VALUE self, type_id, val;
|
VALUE self, domain, type_id, val;
|
||||||
{
|
{
|
||||||
rb_iv_set( self, "@domain", domain );
|
rb_iv_set( self, "@domain", domain );
|
||||||
rb_iv_set( self, "@type_id", type_id );
|
rb_iv_set( self, "@type_id", type_id );
|
||||||
|
|
|
@ -445,6 +445,9 @@ long syck_seq_count( SyckNode * );
|
||||||
* Lexer prototypes
|
* Lexer prototypes
|
||||||
*/
|
*/
|
||||||
void syckerror( char * );
|
void syckerror( char * );
|
||||||
|
int syckparse( void * );
|
||||||
|
union YYSTYPE;
|
||||||
|
int sycklex( union YYSTYPE *, SyckParser * );
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
} /* extern "C" { */
|
} /* extern "C" { */
|
||||||
|
|
4
io.c
4
io.c
|
@ -72,6 +72,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
|
#ifdef HAVE_SYSCALL_H
|
||||||
|
#include <syscall.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ isinf(n)
|
||||||
|
|
||||||
#if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
|
#if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
#ifdef HAVE_IEEEFP_H
|
#ifdef HAVE_IEEEFP_H
|
||||||
#include <ieeefp.h>
|
#include <ieeefp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
2
pack.c
2
pack.c
|
@ -2036,7 +2036,7 @@ uv_to_utf8(buf, uv)
|
||||||
rb_raise(rb_eRangeError, "pack(U): value out of range");
|
rb_raise(rb_eRangeError, "pack(U): value out of range");
|
||||||
}
|
}
|
||||||
|
|
||||||
static const long utf8_limits[] = {
|
static const unsigned long utf8_limits[] = {
|
||||||
0x0, /* 1 */
|
0x0, /* 1 */
|
||||||
0x80, /* 2 */
|
0x80, /* 2 */
|
||||||
0x800, /* 3 */
|
0x800, /* 3 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue