mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* st.c (malloc): use xmalloc/xcalloc instead of plain
malloc/calloc, to detect memory allocation failure. see <http://www.nongnu.org/failmalloc/>. * gc.c (rb_memerror): should not raise nomem_error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d024c9f5de
commit
17c3319958
2 changed files with 13 additions and 0 deletions
|
@ -3,6 +3,14 @@ Sat Jul 15 01:27:13 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
* dir.c (has_magic): glob names contain alphabets to enable case fold
|
* dir.c (has_magic): glob names contain alphabets to enable case fold
|
||||||
search also for directories. fixed: [ruby-talk:201917]
|
search also for directories. fixed: [ruby-talk:201917]
|
||||||
|
|
||||||
|
Sat Jul 15 01:09:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* st.c (malloc): use xmalloc/xcalloc instead of plain
|
||||||
|
malloc/calloc, to detect memory allocation failure. see
|
||||||
|
<http://www.nongnu.org/failmalloc/>.
|
||||||
|
|
||||||
|
* gc.c (rb_memerror): should not raise nomem_error.
|
||||||
|
|
||||||
Fri Jul 14 13:08:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Fri Jul 14 13:08:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/lib/tk.rb: add methods for new features of latest Tcl/Tk8.5.
|
* ext/tk/lib/tk.rb: add methods for new features of latest Tcl/Tk8.5.
|
||||||
|
|
5
st.c
5
st.c
|
@ -48,6 +48,11 @@ static struct st_hash_type type_strhash = {
|
||||||
|
|
||||||
static void rehash(st_table *);
|
static void rehash(st_table *);
|
||||||
|
|
||||||
|
#ifdef RUBY
|
||||||
|
#define malloc xmalloc
|
||||||
|
#define calloc xcalloc
|
||||||
|
#endif
|
||||||
|
|
||||||
#define alloc(type) (type*)malloc((unsigned)sizeof(type))
|
#define alloc(type) (type*)malloc((unsigned)sizeof(type))
|
||||||
#define Calloc(n,s) (char*)calloc((n),(s))
|
#define Calloc(n,s) (char*)calloc((n),(s))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue