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

267 Коммитов

Автор SHA1 Сообщение Дата
nobu 9ea58e6421 * common.mk (ENC_MK): defaulted to enc.mk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:06:59 +00:00
akr 62390f4c9a * common.mk: dependency updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 15:00:39 +00:00
ko1 4ee0a8e740 * common.mk: fix btest-* rules [ruby-dev:36528].
and remove obsolete rules.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 12:04:34 +00:00
ryan d34a75b061 removed basedir and runner args to test/runner.rb. not valid args anymore
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-24 08:44:54 +00:00
ko1 757f1b135d * common.mk (io.o): remove dependency for vm_core.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 09:08:41 +00:00
akr 75b10ac696 * debug.h (ruby_set_debug_option): declared.
* main.c: include debug.h.

* common.mk (main.$(OBJEXT)): dependency updated.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 08:03:41 +00:00
ko1 7f7834abf7 * include/ruby/node.h, vm_core.h: move definition of
RUBY_VM_METHOD_NODE to node.h.
* class.c, common.mk: remove useless inclusion.
* compile.h, iseq.h, vm_core.h: rename compile.h to iseq.h.
  move some definitions from vm_core.h to iseq.h.
* compile.c, iseq.c, vm.c: ditto.
* eval.c, compile.c: move some functions for parser
  from eval.c to compile.c.
* eval_intern.h, vm_core.h: move va_init_list() macro to
  vm_core.h.
* iseq.c (rb_iseq_new_top, rb_iseq_first_lineno): added.
* load.c, ruby.c: use rb_iseq_new_top() instead of
  rb_iseq_new() with ISEQ_TYPE_TOP constant directly.
* proc.c: use rb_iseq_first_lineno() instead of accessing
  iseq structure.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 07:49:45 +00:00
akr 28f9e462fd fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 07:02:45 +00:00
ko1 23c291da09 * common.mk, hash.c: remove unused inclusion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 06:34:33 +00:00
ko1 7440ec27fd * eval_safe.c, safe.c: rename eval_safe.c to safe.c.
* common.mk, eval.c, safe.c, inits.c: separate safe.c from eval.c and
  make Init_safe().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 01:10:02 +00:00
ko1 8cd252ac6f * common.mk: clean up
- remove blockinlining.$(OBJEXT) to built
  - make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
  - make VM_CORE_H_INCLUDES variable (vm_core.h)
  - simplify rules.
  - make depends rule to output depend status using gcc -MM.
* include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
* include/ruby.h: ditto.
* load.c: add inclusion explicitly.
* enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
  remove useless inclusion.
* eval_intern.h: cleanup inclusion.
* vm_core.h: rb_thread_t should be defined in this file.
* vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
* vm.h, vm_exec.h: rename vm.h to vm_exec.h.
* insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
* vm.c, vm_insnhelper.c, vm_insnhelper.h:
  - rename vm_eval() to vm_exec_core().
  - rename vm_eval_body() to vm_exec().
  - cleanup include order.
* vm_method.c: fix comment.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 00:20:28 +00:00
naruse 48aad600ba * common.mk: prec.c is removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 23:05:52 +00:00
yugui 396650e0bd * prec.c: removed. Precision will be redesigned and be back again.
c.f. [ruby-dev:36352].

* common.mk (COMMON_OBJS): removed prec.o.

* inits.c (rb_call_inits): removed Init_Precision.

* numeric.c (Init_Numeric): removed inclusion of Precision.
  removed #induced_from from each class.

* rational.c: ditto.

* ext/bigdecimal/bigdecimal.c: ditto.

* lib/rdoc/knwon_classes.rb: removed the entry for Precision.

* test/ruby/test_prec.rb: removed.

* test/ruby/test_integer.rb: removed tests for Precision.

* test/ruby/test_fixnum.rb: ditto.

* test/ruby/test_float.rb: ditto.

* test/ruby/test_rational.rb: ditto.

* test/ruby/test_complex.rb: ditto.

* test/bigdecimal/test_bigdecimal.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 13:10:54 +00:00
yugui e6ad87c3ba * common.mk : Reverts the changeset 18994.
Uses the official repository of rubyspec again.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-19 13:10:45 +00:00
ko1 204929af9d * include/ruby/signal.h: removed.
* common.mk, class.c, eval.c, eval_intern.h, file.c, gc.c, hash.c,
  io.c, process.c, signal.c: vm_core.h: ditto.
  Some unused external global variables are also removed.
  (rb_prohibit_interrupt, rb_trap_immediate, rb_trap_pending,
  rb_thread_critical)
* ext/openssl/ossl_ssl.c, ext/openssl/ossl_x509store.c,
  ext/readline/readline.c, ext/socket/depend,
  ext/socket/socket.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-03 08:00:05 +00:00
yugui 2ede3bfee8 * common.mk (distclean-golf): moved golf_prelude.c here from
distclean-local.
  (GOLFPRELUDE): added.
  (distclean-local): moved golf_prelude.c into distclean-golf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-02 01:36:37 +00:00
yugui 4bec0938a1 * common.mk (clean-golf): added.
(distclean-golf): added.
  (realclean-golf): added.
  (clean): added clean-golf.
  (distclean): added distclean-golf.
  (realclean): added realclean-golf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 16:51:06 +00:00
yugui 1ff83a064f * common.mk (realclean-local): added newline.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 16:33:26 +00:00
yugui 16122d1d81 * common.mk (docs): removed a useless make target.
tool/makedoc.rb was removed at revision 13919.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 15:23:51 +00:00
yugui 1ca7943e11 * Temporarily uses git://github.com/yugui/rubyspec.git
until specs for 1.9 is merged into 
  git://github.com/rubyspec/rubyspec.git.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 09:11:02 +00:00
akr fbfd237042 * common.mk: dependency updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-28 14:36:52 +00:00
yugui 42307bf41f * common.mk (dist): tool/make-snapshot is executable.
* tool/make-snapshot (package): supported release numbers 1.9.0-x.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-25 17:47:57 +00:00
akr 2c78899641 * configure.in (BUILTIN_TRANSSRCS): defined.
(BUILTIN_TRANSOBJS): defined.

* enc/Makefile.in (BUILTIN_TRANSES): defined.

* enc/make_encmake.rb (BUILTIN_TRANSES): defined.

* enc/depend: don't generate rules for builtin transcoders.

* common.mk (COMMONOBJS): add BUILTIN_TRANSOBJS.
  (enc.mk): pass BUILTIN_TRANSOBJS.
  (newline.c): new rule.
  (newline.$(OBJEXT)): new ru.e
  (srcs): newline.c added.

* Makefile.in (BUILTIN_TRANSSRCS): defined.
  (BUILTIN_TRANSOBJS): defined.

* transcode.c (Init_transcode): call Init_newline.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-24 15:58:43 +00:00
naruse d914071bba * common.mk: remove config.h dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22 02:30:02 +00:00
shugo a0e3fe5d7c * strftime.c: include ruby/config.h instead of ruby/ruby.h.
* common.mk: removed the old rule for missing/strftime.c.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-21 05:28:25 +00:00
shugo 1fd1e0ac04 * strftime.c: new file.
* common.mk (COMMONOBJS): added strftime.$(OBJEXT).
* time.c (time_strftime): do not use strftime(3).  supported
  %L(millisecond) and %N(nanosecond).
* test/ruby/test_time.rb: added tests for %L and %N.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-20 15:30:28 +00:00
kazu 4c4cb11050 * common.mk: fix error in uncommon.mk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-17 23:28:45 +00:00
naruse 3737f9ede1 * common.mk: config.h depends config.status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-17 21:10:48 +00:00
nobu d6d2eed78e * common.mk (parse.{c,h}): creates in the dependency order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-15 08:39:14 +00:00
naruse f9ea6ed5a9 * common.mk ({$(srcdir)}.y.c): escape backslash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 16:09:00 +00:00
nobu dc02325fd8 * include/ruby/encoding.h (rb_enc_ispunct): added.
* common.mk (COMMONOBJS), inits.c (rb_call_inits): id.c is now
  included from parse.c.

* id.c (Init_id), id.h (ruby_method_ids): added IDs used by VM.

* parse.y (global_symbols): added rooms for VM IDs.

* parse.y (rb_intern3, rb_id2str): single puctuation symbol is now
  same as char code.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 08:57:07 +00:00
nobu 0d8df88893 * common.mk (parse.h): workaround for nmake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 02:45:11 +00:00
naruse 7085729de3 * common.mk: parse.h depends on parse.c.
* common.mk: hash.o depends on $(ID_H_INCLUDES).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 20:38:48 +00:00
nobu 6733142c71 * common.mk (parse.h): fake rule.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 14:42:55 +00:00
knu 5068e137d0 * common.mk: regint.h no longer includes vm_core.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 08:30:21 +00:00
knu 5f5b25d234 * common.mk (prelude.c, golf_prelude.c): Using $(COMPILE_PRELUDE)
requires $(RBCONFIG).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 06:15:52 +00:00
knu 8cb7595f7e * common.mk (realclean-local): Remove parse.h as well.
* common.mk: Add missing dependencies regarding vm_core.h, id.h,
  parse.c (parse.h), etc..



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 05:56:33 +00:00
nobu ab0ee1d5e9 * common.mk (parse.c): generates parse.h together.
* id.c, id.h: use constants for parser tokens.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 05:00:26 +00:00
nobu eaa1bcab35 * tool/make-snapshot: fix for clean up.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 04:09:15 +00:00
nobu 13f1418d54 * enc/Makefile.in (.SUFFIXES): renamed to .trans.
* enc/make_encmake.rb: added --encs and --no-encs options.

* enc/depend (TRANSVPATH): fix for nmake.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-12 05:25:14 +00:00
mame 4d763fb8ee * encoding.c: include util.h. [ruby-dev:35715]
* common.mk: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-10 13:25:34 +00:00
nobu 3ba7984ef4 * common.mk (extconf): use MAKEDIRS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-10 02:03:01 +00:00
naruse a596f3a7e6 * common.mk: encs depend on transdb.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-09 12:41:50 +00:00
naruse e6a8cc7e2b * common.mk (enk.mk): give not RUBY but MINIRUBY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 12:10:15 +00:00
nobu b68b9ec698 * common.mk (enc.mk): mkmf.rb requires rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 07:52:57 +00:00
nobu 2293171034 * common.mk (srcs-enc): renamed from transcodes.
* enc/Makefile.in (make-workdir): creates object directories.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 07:44:42 +00:00
nobu 62914a1209 * common.mk (encdb.h): see both $(srcdir)/enc and enc.
* enc/make_encdb.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 07:17:27 +00:00
naruse b41a687fe6 * common.mk: see both $(srcdir)/enc/trans and enc/trans.
* enc/trans/make_transdb.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 19:24:47 +00:00
nobu 2ce5ff1ac1 * Makefile.in, common.mk, {bcc,win}32/Makefile.sub (clean-ext): do not
use miniruby.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 07:28:56 +00:00
naruse 403d0334c1 * common.mk: mkdir enc/trans before build tables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06 20:44:31 +00:00