Commit graph

4291 commits

Author SHA1 Message Date
ko1
a9026242f2 * thread.c, thread_pthread.ci, thread_win32.ci (thread_start_func_1):
move cleanup function to thread_start_func_2().
* thread.c, thread_pthread.ci, thread_win32.ci:
  add more destruct functions.
  (native_thread_destroy() and native_mutex_destroy())
* thread_pthread.ci, thread_pthread.h: make native_mutex_* functions
  (check error, etc), it's not macro any more.
* thread_win32.ci (thread_start_func_1): store some values before
  running thread (to release these after running thread).
* thread_win32.ci (native_thread_create): fix spaces.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-08 20:24:55 +00:00
ko1
9c574383a4 * blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,
eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c,
  thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h,
  vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
  fix typo (rb_thead_t -> rb_thread_t).

* eval_intern.h: remove unused definitions.

* common.mk: fix around vm_opts.h path
  and remove harmful argument passed to insns2vm.rb.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-08 06:37:46 +00:00
usa
b1c6339b0c * 2007-02-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-06 15:13:18 +00:00
ko1
27172b8e6f * intern.h: prepare rb_last_status_get() and rb_last_status_set().
Use these functions instead of rb_last_status ([ruby-dev:30264]).
* process.c: define above functions.
* ext/pty/pty.c: use above functins.
* io.c (pipe_finalize): ditto.
* process.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-05 16:22:38 +00:00
matz
cbee6e017d * eval.c (rb_frame_callee): check if prev_cfp can be accessible.
a patch from Yoshinori Sano <yoshinori.sano at gmail.com> in
  [ruby-dev:30252].  solves [ruby-dev:30200] and [ruby-core:9856].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-04 19:12:52 +00:00
eban
900ff1276f * 2007-02-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-03 18:01:58 +00:00
eban
497220616a * 2007-02-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-02 15:24:35 +00:00
matz
0cd337b1f0 * eval.c: remove duplicated global variables rb_cProc and
rb_cBinding.  [ruby-dev:30242]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-02 09:32:28 +00:00
eban
f5883fbe87 * 2007-01-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 05:43:47 +00:00
eban
c93ca8ee38 * 2007-01-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 15:42:23 +00:00
matz
024c694c95 * tool/parse.rb: replace YARVCore by VM class.
http://d.hatena.ne.jp/ysano2005/20070128

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 05:16:38 +00:00
eban
f74039ec51 * 2007-01-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-28 03:54:19 +00:00
eban
c91a817032 * 2007-01-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-26 15:09:43 +00:00
matz
369b098721 * enumerator.c (enumerator_init_copy): need to copy internal
structure on clone and dup.  [ruby-dev:30192]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-25 22:52:38 +00:00
usa
b696420526 * Makefile.in, common.mk, configure.in, */{Makefile.sub, configure.bat,
setup.mak}: add --with-baseruby configure option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-23 06:41:22 +00:00
matz
06720d45c7 * ext/socket/socket.c: fix errors in socket sample code.
[ruby-core:09992]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-22 06:01:17 +00:00
suke
e16e6a66ae modify WIN32OLERuntimeError message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-20 02:28:49 +00:00
suke
72cc74655f IN32OLE_VARIANT.new accepts nil as first argument for some VARIANT TYPE. fix memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-18 22:08:29 +00:00
ko1
dbee678630 * some refactoring around yarvcore and proc.
* eval_proc.c: renamed to proc.c.
* common.mk: ditto.
* yarvcore.h, yarvcore.c: rename or remove some global variables
  removed: mYarvCore, mYarvInsns
  renamed: cYarvISeq -> rb_cISeq,
           cYarvProc -> rb_cProc, cYarvBinding -> rb_cBinding
  ::YarvCore module is removed and ::YarvCore::VM class becomes ::VM.
  And change/remove some functions which added with YARV.
* compile.c: ditto.
* eval.c: ditto.
* iseq.c: ditto.
* vm.c: ditto.
* inits.c: rename Init_yarvcore to Init_vm.
* yarvcore.c, proc.c: move some functions and initialization
  from yarvcore.c to proc.c.
* intern.h, proc.c: add global function rb_binding_new(void).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-17 08:48:52 +00:00
ko1
7eb928624f * eval_proc.c (rb_proc_new): added.
* string.c (sym_to_proc): supported.
* vm.c (invoke_block, th_invoke_yield, th_invoke_proc): fix to support
  rb_proc_new.
* yarvcore.c: add a test code.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-16 03:06:01 +00:00
suke
d2907d42be fix memory leak of win32ole.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-13 14:40:54 +00:00
nobu
82e937f511 * array.c (rb_ary_replace): use ptr and len of orig instead of
shared.  fixed: [ruby-dev:30116]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-09 15:11:01 +00:00
eban
ef05955d2f * 2007-01-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-09 02:43:17 +00:00
ko1
4e4eec7016 * common.mk: add a "compare" rule and fix MATZRUBY variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-07 09:36:30 +00:00
ko1
384cfd3871 * benchmark/run.rb : change option format
* common.mk : ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-05 18:54:33 +00:00
usa
f189294d04 * 2007-01-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-05 03:40:38 +00:00
eban
2589412b70 * 2007-01-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-04 04:54:30 +00:00
eban
1e46ba3439 * 2007-01-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-03 10:29:36 +00:00
usa
0ecf102274 * 2007-01-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-02 03:49:54 +00:00
ko1
a3e1b1ce7e * Merge YARV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 15:02:22 +00:00
eban
b58aef095a * 2006-12-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-30 15:36:41 +00:00
matz
424f8ec44f * ext/stringio/stringio.c (strio_gets): accepts limit argument.
* ext/stringio/stringio.c (strio_readline, strio_each,
  strio_readlines): ditto.

* ext/stringio/stringio.c (strio_getline): add limit capability.

* io.c (rb_io_gets_m): accepts limit argument.  [ruby-talk:231563]

* io.c (rb_io_readline, rb_io_readlines, rb_io_each_line, argf_getline):
  ditto.

* io.c (appendline): add limit capability.

* io.c (rb_io_getline_fast, rb_io_getline): ditto.

* io.c (rb_io_getline): small refactoring for DRY.

* io.c (rb_io_s_foreach, rb_io_s_readlines): small refactoring.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-29 19:21:50 +00:00
eban
0d2e0eb6cb * 2006-12-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-28 06:36:14 +00:00
eban
a77bb6b7a7 * 2006-12-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-27 12:25:09 +00:00
eban
a17e7d92a2 * 2006-12-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-26 06:37:14 +00:00
usa
219fafd4d2 * 2006-12-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-22 00:13:57 +00:00
matz
5bcb3797cb version.h update
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-20 04:04:54 +00:00
matz
3fe6595026 2006-12-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-17 23:37:45 +00:00
nobu
a6563ee8c7 2006-12-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 15:07:49 +00:00
matz
1275a05824 2006-12-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-14 09:27:32 +00:00
nobu
2b38044b26 2006-12-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-12 14:34:22 +00:00
matz
d3b50bf9dc 2006-12-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-11 00:45:35 +00:00
matz
d88c0d1c93 2006-12-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-09 02:26:06 +00:00
matz
e03d9621a6 2006-12-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-07 15:17:10 +00:00
nobu
4c35d6720f 2006-12-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-06 14:56:32 +00:00
nobu
3acd34fd64 2006-12-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-04 15:19:36 +00:00
shugo
5ce38775ba 2006-12-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-03 23:35:32 +00:00
knu
16df52eb40 2006-12-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-03 07:54:08 +00:00
gotoyuzo
542d9e97fc 2006-12-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-01 22:11:37 +00:00
nagai
e546b71285 2006-12-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-01 07:41:55 +00:00