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

41 Коммитов

Автор SHA1 Сообщение Дата
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
nobu 2bd1599caf * README.EXT, README.EXT.ja (1.5 Manipulating Ruby data): mentioned
rb_sprintf and rb_vsprintf.  [ruby-dev:35611]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-21 04:55:40 +00:00
usa d8bac55788 * README.EXT.ja: add note about mark and free.
(now we are testing auto version.h updating.)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 15:40:59 +00:00
usa 074a876df5 * README.EXT.ja: update about Fixnum. reported in
<http://www.tmtm.org/ja/tdiary/?date=20080611#p01>

	* README.EXT.ja: describe about StringValueCStr().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 05:46:48 +00:00
matz 3410fd6812 * README.EXT.ja, dir.c, eval.c, eval_intern.h, lex.c.src,
lex.c.blt, keywords, load.c, thread.c: more ANSI'ize.
  a patch from Tadashi Saito <shiba AT mail2.accsnet.ne.jp>
  in [ruby-dev:32725]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-25 04:17:06 +00:00
akr fbc00c8772 * README.EXT: explain --vendor option for extconf.rb
* README.EXT.ja: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 13:41:52 +00:00
matz f208b3ad51 * README.EXT: should mention new macros: RSTRING_PTR, RSTRING_LEN,
RARRAY_PTR, RARRAY_LEN.

* README.EXT.ja: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 10:51:35 +00:00
nobu 7f249811e1 * README.EXT, README.EXT.ja: add new features.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-20 23:20:58 +00:00
nobu 0f52655b06 * lib/mkmf.rb (SRC_EXT): exclude just case different suffixes on case
insensitive file system platforms.

* README.EXT, README.EXT.ja (Appendix C): utility functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-31 13:24:27 +00:00
shugo 1aeb9b93c2 * eval.c (rb_add_event_hook): new function to add a hook function for
interpreter events.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-16 13:05:46 +00:00
eban 0aeea1ad38 * README.EXT, README.EXT.ja: remove MANIFEST stuff.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-01 10:41:08 +00:00
nobu aeae3aa4bb * README.EXT, README.EXT.ja: fixed wrong function signature.
[ruby-talk:98349]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-26 14:56:58 +00:00
nobu 153f513f49 * README.EXT, README.EXT.ja (3.3): clarified -1 as free for
Data_Wrap_Struct().  [ruby-dev:19881]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-02 06:11:28 +00:00
matz e9b5878c41 * eval.c (avalue_splat): new function to do unary * (splat)
operator.

* eval.c (avalue_to_svalue,svalue_to_avalue,svalue_to_mrhs): do
  not use implicit "to_ary" conversion.

* ext/curses/curses.c (GetWINDOW,GetMOUSE): add taint check.

* ext/curses/curses.c (curses_init_screen): ditto.

* ext/curses/curses.c (window_initialize): ditto.

* gc.c (os_each_obj): prohibit ObjectSpace#each_object in safe
  mode ($SAFE >= 4).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-26 07:01:14 +00:00
usa 080aa35bba * README.EXT: Appendix B is duplicated.
* README.EXT.ja: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-29 15:30:54 +00:00
knu eaddc4a94b Rename *.jp to *.ja, since jp is a region code and ja is a language
code.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-19 05:44:26 +00:00