Граф коммитов

65 Коммитов

Автор SHA1 Сообщение Дата
akr 3cd16b43eb * README.EXT, README.EXT.ja: Mention rb_integer_pack and
rb_integer_unpack.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-03 22:15:26 +00:00
knu bccf874ceb Elaborate on side-effects of mkmf functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-12 06:41:11 +00:00
knu b7597efb48 Update documentation for pkg_config().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-11 08:25:40 +00:00
nobu 0544c09761 vm_eval.c: new names of rb_funcall family
* vm_eval.c (rb_funcallv): add better names of rb_funcall2.
* vm_eval.c (rb_funcallv_public): ditto for rb_funcall3.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-31 08:27:06 +00:00
nobu 2339191c39 array.c: aliases to rb_ary_new family
* README.EXT.ja: add new names.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-31 08:08:42 +00:00
ktsj edb98f8b91 fix typos. Patch by k_takata.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-19 03:10:21 +00:00
nobu 66c0e01220 README.EXT: update note
* README.EXT: correct method name to be used.  [Bug #7982]
* README.EXT.ja: add notes too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 03:38:27 +00:00
nobu 17817e9da6 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-19 13:06:06 +00:00
kou 46e17f4c4d * README.EXT.ja (Data_Wrap_Struct): Remove a description about
orphan argument. Oh, I renamed the argument name without
  changing description at r36180... Sorry....
  Patch by Makoto Kishimoto. Thanks!!! [ruby-dev:47269] [Bug #8292]
* README.EXT.ja (Data_Make_Struct): Add a sample code that describes
  how it works.
  Patch by Makoto Kishimoto. Thanks!!! [ruby-dev:47269] [Bug #8292]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-19 13:02:33 +00:00
drbrain 56fca7f141 * README.EXT: Converted to RDoc format
* README.EXT.ja:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 23:34:17 +00:00
ayumin 0de52e155a * README.EXT.ja: fixed args, same as r35977. [Bug #6597]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-01 18:43:59 +00:00
kou 7b036a8ea7 * README.EXT, README.EXT.ja: use "sval" for the third argument
name of Data_Wrap_Struct().
  Suggested by @satoh_fumiyasu. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-22 09:52:32 +00:00
nobu db5265a82c * parse.y (rb_check_id_cstr): new function to check if ID is
registered with NUL-terminated C string.
* sprintf.c (rb_str_format): avoid inadvertent symbol creation.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-11 13:31:23 +00:00
nobu e78ff08968 * array.c (rb_ary_cat): new function to concat objects into array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-08 15:25:04 +00:00
nobu e187c4ca1f * README.EXT, README.EXT.ja: rb_iter_break() and rb_iter_break_value().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 06:28:26 +00:00
nobu 3772335ae6 * README.EXT, README.EXT.ja (rb_protect): add a note when ignoring the caught exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-14 12:47:06 +00:00
nobu b4bc086a1f * README.ja, README.EXT.ja: remove garbage spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-25 13:40:25 +00:00
nobu 4705fcc3c0 * README.EXT, README.EXT.ja (2.2.2), parse.y (rb_check_id): add
documents for rb_check_id().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12 04:38:15 +00:00
shyouhei 48cd6cb153 README.ja, README.EXT.ja: resolve conflicts. [ruby-dev:44459]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05 01:06:25 +00:00
shyouhei 60c8455253 Change encoding from EUC-JP to UTF-8. [Feature #5128]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-04 12:22:46 +00:00
kazu a6e30a8714 * README*: remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-25 21:00:03 +00:00
shyouhei 79fdc67835 * README.EXT: fix typo. Patch by William Blackerby.
https://github.com/ruby/ruby/pull/19

	* README.EXT.ja: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-13 09:59:16 +00:00
mrkn 74535bd643 * README.EXT, README.EXT.ja: You shouldn't choose ``conftest.c'' as a
name of a source file.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-20 07:13:58 +00:00
usa 596872f21d * README.EXT.ja (rb_ensure): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-12 06:54:09 +00:00
knu bed2696508 Make punctuation consistent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-13 07:58:47 +00:00
knu 82abe79b9f * class.c (rb_scan_args): Add support for optional keyword
argument hash.

* README.EXT, README.EXT.ja: Update documentation accordingly.

* dir.c (dir_initialize): Make use of the new rb_scan_args()
  feature.

* io.c (rb_io_s_popen, rb_scan_open_args, rb_io_initialize)
  (rb_io_s_pipe, open_key_args, io_s_foreach, io_s_readlines)
  (rb_io_s_read, rb_io_set_encoding): Ditto.

* transcode.c (str_transcode, econv_args)
  (econv_primitive_convert): Ditto.

* ext/zlib/zlib.c (rb_gzreader_initialize): Ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-10 07:51:58 +00:00
usa d4c63f862b * README.EXT.ja: rb_tainted_str_new_cstr() is an alias of
rb_tainted_str_new2().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-10 08:25:23 +00:00
nobu 3a32ef53aa * README.EXT, README.EXT.ja (String functions): mention
rb_str_resize and rb_str_set_len.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-05 11:14:05 +00:00
nobu c6820cc3be * README.EXT{,.ja} (rb_block_call): fixed about third/fourth
arguments to the block.  based on [ruby-core:31192] by Asher
  Haig.  [Bug #3558]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-11 12:20:28 +00:00
ko1 554e9a83e0 * blockinlining.c: removed.
* README.EXT: ditto.
* README.EXT.ja: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-17 06:03:39 +00:00
nobu 43be7b67c8 * README.EXT, README.EXT.ja (rb_protect, rb_jump_tag): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 01:14:56 +00:00
mame cb46d98caa * enumerator.c (yielder_yield_i): use rb_proc_new instead of
rb_iterate.  [ruby-dev:38518]
 
* README.EXT: rb_iterate is obsolete since 1.9; use rb_block_call
  instead.
 
* README.EXT.ja: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-13 16:07:43 +00:00
nobu c6a24c45f8 * include/ruby/ruby.h (RB_EVENT_HOOKS_HAVE_CALLBACK_DATA):
new macro for compatibility check.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-21 03:07:45 +00:00
akr 015821d17e describe more conversion functions between integer and VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-09 05:04:25 +00:00
nobu 5b35cbf5d3 * README.EXT, README.EXT.ja (Macros): added HAVE_RUBY_*_H.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 07:40:13 +00:00
knu 400ded9338 * class.c (rb_scan_args): Allow specifying the number of trailing
mandatory arguments right after the number of optional arguments
  only if the number of leading mandatory arguments is not omitted.

* ext/socket/tcpserver.c (tcp_svr_init): Make use of it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-24 15:41:39 +00:00
nobu 15700ff0be * include/ruby/ruby.h (USE_SYMBOL_AS_METHOD_NAME): Module#methods,
#singleton_methods and so on return Symbols.  [ruby-talk:328775]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-23 01:19:43 +00:00
nobu 7e162b150d * README.EXT, README.EXT.ja: added macros for the Compatibilities.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-23 01:15:37 +00:00
knu 678adc8714 * README.EXT, README.EXT.ja: Improve the document about
rb_scan_args() even more.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-18 18:34:38 +00:00
knu f98759935c * README.EXT, README.EXT.ja: Improve the document about
rb_scan_args().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-18 18:02:02 +00:00
knu f5ca95ee10 * class.c (rb_scan_args), README.EXT, README.EXT.ja: Add support
for specifying the number of the trailing mandatory arguments.
  Update the documents accordingly. [ruby-dev:37995]




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-16 08:04:56 +00:00
knu 2b206be6ac Improve documentation of rb_scan_args().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-16 05:54:17 +00:00
akr 074a374c86 * include/ruby/ruby.h (STR2CSTR): removed.
(rb_str2cstr): removed.

* object.c (rb_str2cstr): removed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31 13:30:17 +00:00
mame e1a2fec2bb * README.EXT, README.EXT.ja, vm_exec.c, vm_insnhelper.c: update
filenames.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-14 11:31:10 +00:00
yugui bdd70c6109 Updated README.EXT and README.EXT.ja.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:34:35 +00:00
yugui d7cffe9768 * README.EXT (Appendix A): fixed the name of class
Enumerator. Enumerable::Enumerator was renamed just
  Enumerator at revision 18564.

* README.EXT (Appendix A): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 05:45:06 +00:00
yugui a4ee7c2c3b * README.EXT (Data-types): fixed for current status.
(Manipulating Ruby data): mentioned some more functions.
  (Class/module definition): ditto.
  (Global variables shared between C and Ruby):
    fixed prototypes for the getter/setter's of global variables.
  (Appendix A): mentioned some more files.

* README.EXT.ja: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 05:08:44 +00:00
usa 818e1de104 * README.EXT, README.EXT.ja: mention about FIX2LONG and NUM2LONG.
see [ruby-dev:35197]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22 09:09:41 +00:00
nobu 70b317b9da * include/ruby/intern.h, sprintf.c (rb_str_catf, rb_str_vcatf): new
functions.  [ruby-dev:35597]

* string.c (rb_str_capacity): new function to return the capacity.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22 07:48:00 +00:00
nobu 791bdf07b5 * README.EXT, README.EXT.ja (1.5 Manipulating Ruby data): fix the
prototype of rb_vsprintf, and added rb_str_cat2.  [ruby-dev:35622]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-21 17:50:52 +00:00