mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed by [Bug #18964] --- file.c | 3 --- 1 file changed, 3 deletions(-) [Bug #18964] Update the code range of appended portion --- ext/-test-/econv/append.c | 15 +++++++++++++++ ext/-test-/econv/extconf.rb | 3 +++ ext/-test-/econv/init.c | 11 +++++++++++ transcode.c | 34 ++++++++++++++++++++++++++++++---- 4 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 ext/-test-/econv/append.c create mode 100644 ext/-test-/econv/extconf.rb create mode 100644 ext/-test-/econv/init.c [Bug #18964] Add test for `rb_econv_append` --- test/-ext-/econv/test_append.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/-ext-/econv/test_append.rb
11 lines
284 B
C
11 lines
284 B
C
#include "ruby.h"
|
|
|
|
#define init(n) {void Init_econv_##n(VALUE klass); Init_econv_##n(klass);}
|
|
|
|
void
|
|
Init_econv(void)
|
|
{
|
|
VALUE mBug = rb_define_module("Bug");
|
|
VALUE klass = rb_define_class_under(mBug, "EConv", rb_path2class("Encoding::Converter"));
|
|
TEST_INIT_FUNCS(init);
|
|
}
|