summaryrefslogtreecommitdiff
path: root/README.EXT
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-11 01:55:15 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-11 01:55:15 (GMT)
commitaf59443ab6d5c06648e47d5ff58eedd28239339a (patch)
treeebf54d16a79d7ac5195038dd86f433bf0f11a944 /README.EXT
parent89dff2712d44b0e9111ff9324af46068f2d2a58e (diff)
README.EXT{,.ja}: update ruby_options and ruby_run_node
* README.EXT{,.ja} (Appendix B): update contents of `ruby_options` and replace `ruby_run` with `ruby_run_node`. based on the patch by Kaneko Yuichiro at [ruby-dev:48030] [Bug #9619]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r--README.EXT11
1 files changed, 8 insertions, 3 deletions
diff --git a/README.EXT b/README.EXT
index ecc9693..c1a9913 100644
--- a/README.EXT
+++ b/README.EXT
@@ -1405,13 +1405,18 @@ void ruby_init() ::
Initializes the interpreter.
-void ruby_options(int argc, char **argv) ::
+void *ruby_options(int argc, char **argv) ::
Process command line arguments for the interpreter.
+ And compiles the Ruby source to execute.
+ It returns an opaque pointer to the compiled source
+ or an internal special value.
-void ruby_run() ::
+int ruby_run_node(void *n) ::
- Starts execution of the interpreter.
+ Runs the given compiled source and exits this process.
+ It returns EXIT_SUCCESS if successfully runs the source.
+ Otherwise, it returns other value.
void ruby_script(char *name) ::