1
0
Fork 0
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/trunk@9383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-10-13 14:30:54 +00:00
parent ee499a8745
commit 0ccc5dbe83
6 changed files with 14 additions and 3 deletions

View file

@ -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.
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:51:56 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/ossl.c (Init_openssl): should call

View file

@ -1339,7 +1339,7 @@ syck_badalias_cmp( alias1, alias2 )
*/
VALUE
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, "@type_id", type_id );

View file

@ -445,6 +445,9 @@ long syck_seq_count( SyckNode * );
* Lexer prototypes
*/
void syckerror( char * );
int syckparse( void * );
union YYSTYPE;
int sycklex( union YYSTYPE *, SyckParser * );
#if defined(__cplusplus)
} /* extern "C" { */

4
io.c
View file

@ -72,6 +72,10 @@
#include <unistd.h>
#endif
#ifdef HAVE_SYSCALL_H
#include <syscall.h>
#endif
extern void Init_File(void);
#ifdef __BEOS__

View file

@ -23,6 +23,7 @@ isinf(n)
#if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
#include <math.h>
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

2
pack.c
View file

@ -2020,7 +2020,7 @@ uv_to_utf8(char *buf, unsigned long uv)
rb_raise(rb_eRangeError, "pack(U): value out of range");
}
static const long utf8_limits[] = {
static const unsigned long utf8_limits[] = {
0x0, /* 1 */
0x80, /* 2 */
0x800, /* 3 */