1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* array.c (ary_alloc), dir.c (dir_s_alloc), eval.c (thgroup_s_alloc),

file.c (rb_stat_s_alloc), hash.c (hash_alloc), io.c (io_alloc),
  object.c (rb_module_s_alloc, rb_class_allocate_instance),
  re.c (match_alloc, rb_reg_s_alloc), string.c (str_alloc),
  time.c (time_s_alloc), ext/digest/digest.c (rb_digest_base_alloc),
  ext/tcltklib/tcltklib.c (ip_alloc),
  ext/win32ole/win32ole.c (fole_s_allocate, fev_s_allocate)
  : add prototype to get rid of VC++ warnings.

* ext/sdbm/init.c (fsdbm_alloc): allocator takes only one argument.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2002-12-21 18:02:01 +00:00
parent a36b7eea8a
commit b469f3155a
15 changed files with 32 additions and 4 deletions

View file

@ -1,3 +1,16 @@
Sun Dec 22 02:49:25 2002 NAKAMURA Usaku <usa@ruby-lang.org>
* array.c (ary_alloc), dir.c (dir_s_alloc), eval.c (thgroup_s_alloc),
file.c (rb_stat_s_alloc), hash.c (hash_alloc), io.c (io_alloc),
object.c (rb_module_s_alloc, rb_class_allocate_instance),
re.c (match_alloc, rb_reg_s_alloc), string.c (str_alloc),
time.c (time_s_alloc), ext/digest/digest.c (rb_digest_base_alloc),
ext/tcltklib/tcltklib.c (ip_alloc),
ext/win32ole/win32ole.c (fole_s_allocate, fev_s_allocate)
: add prototype to get rid of VC++ warnings.
* ext/sdbm/init.c (fsdbm_alloc): allocator takes only one argument.
Sun Dec 22 00:36:43 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* lib/mkmf.rb (create_makefile): accept pure ruby libraries.

View file

@ -86,6 +86,7 @@ rb_ary_frozen_p(ary)
return Qfalse;
}
static VALUE ary_alloc _((VALUE));
static VALUE
ary_alloc(klass)
VALUE klass;

1
dir.c
View file

@ -248,6 +248,7 @@ free_dir(dir)
static VALUE dir_close _((VALUE));
static VALUE dir_s_alloc _((VALUE));
static VALUE
dir_s_alloc(klass)
VALUE klass;

1
eval.c
View file

@ -9408,6 +9408,7 @@ struct thgroup {
int gid;
};
static VALUE thgroup_s_alloc _((VALUE));
static VALUE
thgroup_s_alloc(klass)
VALUE klass;

View file

@ -57,7 +57,8 @@ get_digest_base_metadata(klass)
return algo;
}
static VALUE rb_digest_base_alloc _((VALUE));
static VALUE
rb_digest_base_alloc(klass)
VALUE klass;

View file

@ -56,10 +56,9 @@ fsdbm_close(obj)
return Qnil;
}
static VALUE fsdbm_alloc _((VALUE));
static VALUE
fsdbm_alloc(argc, argv, klass)
int argc;
VALUE *argv;
fsdbm_alloc(klass)
VALUE klass;
{
return Data_Wrap_Struct(klass, 0, free_sdbm, 0);

View file

@ -469,6 +469,7 @@ ip_free(ptr)
}
/* create and initialize interpreter */
static VALUE ip_alloc _((VALUE));
static VALUE
ip_alloc(self)
VALUE self;

View file

@ -715,6 +715,7 @@ ole_set_member(self, dispatch)
return self;
}
static VALUE fole_s_allocate _((VALUE));
static VALUE
fole_s_allocate(klass)
VALUE klass;
@ -5071,6 +5072,7 @@ ole_event_free(poleev)
}
}
static VALUE fev_s_allocate _((VALUE));
static VALUE
fev_s_allocate(klass)
VALUE klass;

1
file.c
View file

@ -1973,6 +1973,7 @@ rb_f_test(argc, argv)
return Qnil; /* not reached */
}
static VALUE rb_stat_s_alloc _((VALUE));
static VALUE
rb_stat_s_alloc(klass)
VALUE klass;

1
hash.c
View file

@ -178,6 +178,7 @@ rb_hash_foreach(hash, func, farg)
return rb_ensure(rb_hash_foreach_call, (VALUE)&arg, rb_hash_foreach_ensure, hash);
}
static VALUE hash_alloc _((VALUE));
static VALUE
hash_alloc(klass)
VALUE klass;

1
io.c
View file

@ -275,6 +275,7 @@ ruby_dup(orig)
return fd;
}
static VALUE io_alloc _((VALUE));
static VALUE
io_alloc(klass)
VALUE klass;

View file

@ -684,6 +684,7 @@ rb_class_initialize(argc, argv, klass)
return rb_mod_initialize(klass);
}
static VALUE rb_module_s_alloc _((VALUE));
static VALUE
rb_module_s_alloc(klass)
VALUE klass;
@ -724,6 +725,7 @@ rb_obj_alloc(klass)
return obj;
}
static VALUE rb_class_allocate_instance _((VALUE));
static VALUE
rb_class_allocate_instance(klass)
VALUE klass;

2
re.c
View file

@ -511,6 +511,7 @@ make_regexp(s, len, flags)
static VALUE rb_cMatch;
static VALUE match_alloc _((VALUE));
static VALUE
match_alloc(klass)
VALUE klass;
@ -1002,6 +1003,7 @@ rb_reg_initialize(obj, s, len, options)
}
}
static VALUE rb_reg_s_alloc _((VALUE));
static VALUE
rb_reg_s_alloc(klass)
VALUE klass;

View file

@ -36,6 +36,7 @@ VALUE rb_cString;
VALUE rb_fs;
static VALUE str_alloc _((VALUE));
static VALUE
str_alloc(klass)
VALUE klass;

1
time.c
View file

@ -41,6 +41,7 @@ time_free(tobj)
if (tobj) free(tobj);
}
static VALUE time_s_alloc _((VALUE));
static VALUE
time_s_alloc(klass)
VALUE klass;