Skip to content

Commit d412a0a

Browse files
committed
[GR-18163] Implement rb_xmalloc_mul_add(), needed by Ripper
PullRequest: truffleruby/2151
2 parents e237d8d + dd6c6ab commit d412a0a

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

src/main/c/cext/alloc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ void *ruby_xmalloc2(size_t n, size_t size) {
2828
return malloc(xmalloc2_size(n, total_size));
2929
}
3030

31+
void* rb_xmalloc_mul_add(size_t x, size_t y, size_t z) {
32+
return ruby_xmalloc(x * y + z);
33+
}
34+
3135
void *ruby_xcalloc(size_t n, size_t size) {
3236
return calloc(n, size);
3337
}

test/mri/excludes/TestRipper/Filter.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
exclude :test_regexp_enc_error, "needs investigation"
21
exclude :test_yydebug_ident, "needs investigation"

test/mri/excludes/TestRipper/ScannerEvents.rb

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)