>>>>> "D" == Dmitry Antipov <dmitry.antipov / mail.ru> writes:

D> I do (RUBY_VERSION "1.7.2", RUBY_RELEASE_DATE "2002-06-04"
D> in version.h). The same magic numbers :-( - should I look into CVS ?

 Well, here what I've

void *
ruby_xmalloc(size)
    long size;
{
    void *mem;

    if (size < 0) {
	rb_raise(rb_eNoMemError, "negative allocation size (or too big)");
    }
    if (size == 0) size = 1;
    malloc_memories += size;

    if (malloc_memories > GC_MALLOC_LIMIT) {
	rb_gc();
    }
    RUBY_CRITICAL(mem = malloc(size));
    if (!mem) {
	rb_gc();
	RUBY_CRITICAL(mem = malloc(size));
	if (!mem) {
	    rb_memerror();
	}
    }

    return mem;
}


 Seems that the constant are not used here


Guy Decoux