nobu
dc3ee49747
* {bcc,win}32/Makefile.sub (MINIOBJS): added prelude.$(OBJEXT).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 09:32:55 +00:00
akr
2c42aa4364
* Makefile.in, common.mk: add prelude.o to MINIOBJS.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 08:15:10 +00:00
nobu
bbad2d22ea
* lib/mkmf.rb (create_makefile): rdoc about srcprefix. a patch from
...
Daniel Berger <djberg96 AT gmail.com> in [ruby-core:13378].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 07:52:31 +00:00
akr
c840239cc8
* Makefile.in, common.mk: add ext_prelude.o to OBJS.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 07:49:36 +00:00
akr
a48fd5df21
* configure.in (MINIDLNOBJS): removed.
...
(MINIOBJS): set to dln.o if dmydln.o is not used.
* Makefile.in (miniruby): use MINIOBJS instead of MINIDLNOBJS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 05:04:24 +00:00
matz
8110d52333
* misc/ruby-mode.el (ruby-parse-partial): handle stringified
...
symbols properly using ruby-forward-string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 04:54:00 +00:00
akr
2c645e7ab6
forgot to commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 03:59:52 +00:00
akr
e8f7398ce9
rename DLNOBJS to MINIDLNOBJS.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 03:18:49 +00:00
akr
6f9dbb1636
* configure.in (DLNOBJS): defined.
...
* Makefile.in (miniruby): use DLNOBJS and COMMONOBJS instead of
MINIOBJS and OBJS to avoid linking both dmydln.o and dln.o.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 01:31:11 +00:00
akr
457686dd11
refine doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 12:48:39 +00:00
akr
900da8992d
refine dependencies of miniruby$(EXEEXT).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 12:44:01 +00:00
akr
24b62f0ee8
revert previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 12:15:50 +00:00
akr
f13082c95d
* Makefile.in (miniruby): use $(LIBRUBY_A) with prelude.$(OBJEXT).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 11:55:09 +00:00
akr
d705eabd77
* {win32,wince,bcc32}/Makefile.sub: delete lex.c rule.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 11:35:49 +00:00
akr
200c3aaa25
* Makefile.in (lex.c): simplified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 10:41:35 +00:00
akr
ae7a85f549
copy $(srcdir)/lex.c if gperf failed and $@ is not exist.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 10:33:33 +00:00
akr
7687666c45
report how lex.c handled.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 10:21:30 +00:00
akr
efd8303bc3
touch lex.c only if lex.c exists.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 09:32:30 +00:00
akr
f0a827f087
* Makefile.in (lex.c): touch lex.c if gperf failed.
...
Although this may cause non-updated lex.c,
svn co may generate keywords newer than lex.c especially on
a file system which can record fractional mtime such as XFS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 09:27:05 +00:00
shugo
577eaa60a7
* insnhelper.ci (vm_call_method): pass mn->nd_clss to
...
vm_call_cfunc() instead of klass.
* vm.c (rb_thread_method_id_and_klass): traverse parent_iseq.
* thread.c (call_trace_proc): use rb_thread_method_id_and_klass().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 08:42:13 +00:00
akr
c5335ee110
* lex.c: renamed from lex.c.blt.
...
* Makefile.in (lex.c): use find command to check mtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 07:56:30 +00:00
nobu
49d9c32823
* bin/gem, {lib,test}/rubygems: set property.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-11 02:31:43 +00:00
drbrain
fc69e47713
Add forgotten bin/gem for RubyGems.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 20:44:57 +00:00
akr
53d2cd2435
add comment for interpreter issue.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 16:33:30 +00:00
akr
098a563935
* string.c (tr_trans): cast to unsigned char after dereference
...
a pointer to a char to avoid SEGV with "\377".tr("a", "b").
on FreeBSD/amd64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 14:53:26 +00:00
akr
c585a9eba1
* configure.in, common.mk, Makefile.in: don't generate
...
libminiruby-static.a.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 14:18:03 +00:00
akr
7cb1a184c8
don't use 1.9 feature.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 11:22:28 +00:00
akr
b3d64632ea
fix file list.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 10:51:42 +00:00
akr
7315b449f3
* common.mk, Makefile.in: generate libminiruby-static.a
...
which contains prelude.o for miniruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 10:50:58 +00:00
akr
00e55418ce
* common.mk (EXPLOBJS): create new variable for ext_prelude.o.
...
* Makefile.in(h: use EXPLOBJS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 10:22:38 +00:00
akr
3480ff6ec1
format change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 09:24:54 +00:00
akr
040ffb5d79
* gem_prelude.rb: new file for gem libraries. currently empty.
...
* common.mk: generate ext_prelude.c by prelude.rb and gem_prelude.rb.
ruby (not miniruby) is linked with ext_prelude.o instead of prelude.o.
* inits.c (rb_call_inits): don't call Init_prelude.
* ruby.c: support --disable-gems option.
(ruby_init_gems): new function to define Gem::Enable and
invoke Init_prelude.
(process_options): call ruby_init_gems just after
ruby_init_loadpath.
* tool/compile_prelude.rb: support multiple files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 09:22:59 +00:00
shugo
66c127bc6f
* thread.c (call_trace_proc): don't call ID2SYM() for ID_ALLOCATOR
...
to avoid SEGV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 08:33:28 +00:00
nobu
f3a250758d
* {lib,test}/rubygems: set property.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 08:05:00 +00:00
drbrain
fbf59bdbea
Import RubyGems trunk revision 1493.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 07:48:56 +00:00
drbrain
7a4aad7535
Don't override Enumerable#inject for 1.9
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 07:35:37 +00:00
davidflanagan
03919fd210
* parse.y: use ASCII encoding for string literals that are
...
7-bit clean, fixing regression from my previous patch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 05:45:52 +00:00
nobu
16262b6972
* {bcc32,win32}/Makefile.sub: vendor_ruby support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-10 04:18:44 +00:00
nobu
87f538563f
* parse.y (parser_nextc): added single line read forward buffer.
...
* parse.y (parser_yylex): adjust line number for fluent interface.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 14:33:18 +00:00
nobu
6e572060eb
* vm.h (FRAME_MAGIC_MASK_BITS): bits of FRAME_MAGIC_MASK.
...
* insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): use shift operations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 13:04:22 +00:00
ko1
28c0aec1d8
* eval.c (eval): should be volatile value for GC.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 12:49:03 +00:00
nobu
94a6c1eef9
* ruby.c (locale_encoding): guestimate encoding from environment
...
variables. [ruby-core:13315]
* ruby.c (process_options): set primary encoding from environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 08:48:13 +00:00
matz
70f70f7dfe
* variable.c (rb_cvar_set): cvar assignment obey same rule to cvar
...
reference. [ruby-dev:32192]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 08:14:42 +00:00
matz
1c4e2b11a1
* io.c (rb_io_each_byte): should update rbuf_off and rbuf_len for
...
each iteration. [ruby-dev:31659][ruby-dev:32192]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 07:54:39 +00:00
nobu
7bfed9613c
* encoding.c (enc_check_encoding, rb_set_primary_encoding): ENCODING
...
is no longer in FL_USERS flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 06:52:02 +00:00
nobu
03d68e3ba4
* string.c (rb_str_squeeze_bang): initialize squeezing table if no
...
arguments given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 06:20:15 +00:00
matz
c23d672932
* enum.c (each_with_index_i): use rb_yield_values() for
...
compatibility with Enumerator#with_index(). a patch from Yusuke
ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32195]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 04:59:07 +00:00
matz
364f0bfe9f
* test/ruby/test_iterator.rb (TestIterator::IterTest::each):
...
#each_pair is now alias to #each. [ruby-dev:32192]
* test/ruby/test_iterator.rb (TestIterator::test_assoc_yield):
ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 04:46:58 +00:00
matz
4ab384be2d
* test/ruby/test_basicinstructions.rb: updated for new class
...
behavior. [ruby-dev:32192]
* encoding.c (enc_name): Encoding should not rely on ENCODING in
the FL_USERS flags.
* encoding.c (rb_enc_from_encoding): do not call rb_enc_associate
for encoding itself.
* encoding.c (enc_register_at): ditto.
* marshal.c (r_ivar): do not set real instance variable for
encoding data associated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 04:37:36 +00:00
nobu
a46c532ab8
* eval_load.c (loaded_feature_path): check with type of given feature.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 03:56:38 +00:00