Last active
April 21, 2019 03:32
-
-
Save hkdnet/a5c845a47124acd63b2b80e7ff8876ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/readline/readline.c b/ext/readline/readline.c | |
index 3380720f47..744fadde92 100644 | |
--- a/ext/readline/readline.c | |
+++ b/ext/readline/readline.c | |
@@ -1959,6 +1959,8 @@ Init_readline(void) | |
mReadline = rb_define_module("Readline"); | |
rb_define_module_function(mReadline, "readline", | |
readline_readline, -1); | |
+ rb_define_module_function(mReadline, "readmultiline", | |
+ readline_readline, -1); | |
rb_define_singleton_method(mReadline, "input=", | |
readline_s_set_input, 1); | |
rb_define_singleton_method(mReadline, "output=", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ast.c b/ast.c | |
index 3e25c89a55..14e7fa3a82 100644 | |
--- a/ast.c | |
+++ b/ast.c | |
@@ -753,10 +753,11 @@ rb_ast_node_inspect(VALUE self) | |
str = rb_str_new2("#<"); | |
rb_str_append(str, cname); | |
- rb_str_catf(str, ":%s@%d:%d-%d:%d>", | |
+ rb_str_catf(str, ":%s@%d:%d-%d:%d,node_id = %d>", | |
node_type_to_str(data->node), | |
nd_first_lineno(data->node), nd_first_column(data->node), | |
- nd_last_lineno(data->node), nd_last_column(data->node)); | |
+ nd_last_lineno(data->node), nd_last_column(data->node), | |
+ nd_node_id(data->node)); | |
return str; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./configure optflags="-O0" debugflags="-g3" --disable-install-doc --with-openssl-dir="/usr/local/Cellar/openssl/1.0.2l" --prefix="${RBENV_ROOT}/versions/trunk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment