diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-21 06:46:41 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-21 06:46:41 +0000 |
commit | 73f94bb851588f04e5189d37544e87884fc489c7 (patch) | |
tree | a7555eb0dfb5990d0fbe6e2c0877e2f57aaf4815 /marshal.c | |
parent | b4236d6e71852135dd24c80da46b96ee55e1c0c4 (diff) | |
download | ruby-73f94bb851588f04e5189d37544e87884fc489c7.tar.gz |
* intern.h, struct.c (rb_struct_iv_get): constified.
* marshal.c: avoid one VC++6 warning for implicit conversion
from int to char.
* ruby.h: ANSI styled.
* bcc32/Makefile.sub (HAVE_HYPOT): added.
* ext/socket/extconf.rb: BeOS is only one platform should call
closesocket, so check __BEOS__ macro directly. (I was worried
accidently HAVE_CLOSESOCKET is defined on windows again because
it has it)
* ext/socket/{getaddrinfo.c,socket.c}: ditto.
... these are all cosmetic changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -116,7 +116,7 @@ class2path(VALUE klass) static void w_long(long, struct dump_arg*); static void -w_nbyte(char *s, int n, struct dump_arg *arg) +w_nbyte(const char *s, int n, struct dump_arg *arg) { VALUE buf = arg->str; rb_str_buf_cat(buf, s, n); @@ -134,7 +134,7 @@ w_byte(char c, struct dump_arg *arg) } static void -w_bytes(char *s, int n, struct dump_arg *arg) +w_bytes(const char *s, int n, struct dump_arg *arg) { w_long(n, arg); w_nbyte(s, n, arg); @@ -319,7 +319,7 @@ w_symbol(ID id, struct dump_arg *arg) } static void -w_unique(char *s, struct dump_arg *arg) +w_unique(const char *s, struct dump_arg *arg) { if (s[0] == '#') { rb_raise(rb_eTypeError, "can't dump anonymous class %s", s); @@ -358,7 +358,7 @@ w_extended(VALUE klass, struct dump_arg *arg, int check) } static void -w_class(int type, VALUE obj, struct dump_arg *arg, int check) +w_class(char type, VALUE obj, struct dump_arg *arg, int check) { char *path; @@ -908,7 +908,7 @@ r_ivar(VALUE obj, struct load_arg *arg) } static VALUE -path2class(char *path) +path2class(const char *path) { VALUE v = rb_path2class(path); @@ -919,7 +919,7 @@ path2class(char *path) } static VALUE -path2module(char *path) +path2module(const char *path) { VALUE v = rb_path2class(path); |