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

2955 Коммитов

Автор SHA1 Сообщение Дата
nobu ea5679c979 * win32/win32.c, win32/win32.h: fixed prototypes.
* win32/win32.c (wait): same as waitpid() with -1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 09:08:23 +00:00
dave 23d081b993 Fix typos (Doug Kearns)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 03:23:51 +00:00
aamine b06f1fb429 * ext/strscan/strscan.c: StringScanner#restsize is obsolete; use #rest_size instead.
* ext/strscan/strscan.c: StringScanner#matchedsize is obsolete; use #matched_size instead.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 18:06:14 +00:00
aamine e55e640a6f * ext/strscan/strscan.c: don't use rb_eval_string, it defines classes under the module when required in module clauses. [ruby-dev:22951]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 17:42:54 +00:00
aamine 6f77e4b4ba * ext/strscan/strscan.c: merge documentation from 1.8 branch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 17:38:33 +00:00
gsinclair fbac5a54a1 removed conflict indicator
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 15:28:18 +00:00
gsinclair 1399c1bca0 * lib/cgi-lib.rb: deprecated after 1.8.1
* lib/getopts.rb:   ditto
 * lib/importenv.rb: ditto
 * lib/parsearg.rb:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 15:27:06 +00:00
dave 847fd91e32 Strip extraneous spaces from included filename
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 15:12:55 +00:00
seki 926a6fb194 remove O_NONBLOCK, thanks ay
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 13:55:22 +00:00
seki 4e6c7c602a import test_rinda.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 13:44:06 +00:00
nahi 994dfc0ae6 * test/*: should not depend on $KCODE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 13:08:08 +00:00
usa 44284f71c9 * test/ruby/test_sprintf.rb: added tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 09:09:21 +00:00
eban 953caaf959 * ext/win32ole/win32ole.c: need to include <olectl.h> on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 08:22:18 +00:00
ocean e7b48e43a3 Modify ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 03:17:43 +00:00
usa a7d4955188 * sprintf.c (rb_f_sprintf): clean up.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-18 01:24:13 +00:00
gsinclair e81b38b6d3 * lib/rinda/rinda.rb: added documentation (from Hugh Sasse)
* lib/rinda/tuplespace.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 22:29:07 +00:00
matz 4b41d18b6c * sprintf.c (rb_f_sprintf): preserve original val for
format_integer. [ruby-talk:92975]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 15:26:03 +00:00
nahi dd23ad7e84 * test/soap/marshal/test_marshal.rb, test/ruby/test_marshal.rb: do $:
trick to share the testcase test/ruby/marshaltestlib.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 14:28:34 +00:00
nahi ffd075fad5 * test/ruby/marshaltestlib.rb: common marshal testcase added.
* test/ruby/test_marshal.rb: use above testsuite.

        * test/soap/marshal/test_marshal.rb: ditto.

        * test/soap/marshal/cmarshal.rb: removed (not used).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 14:15:37 +00:00
nobu bab1372a33 * ext/extmk.rb (extmake): $extout_prefix doesn't vary for libraries.
* ext/extmk.rb (extmake): remove compile directory if empty.

* ext/extmk.rb (parse_args) lib/mkmf.rb (create_makefile): move
  initialization of $extout_prefix from lib/mkmf.rb.  [ruby-dev:22928]

* ext/extmk.rb: clear ext and extout directory when cleaning.

* lib/mkmf.rb (CLEANLIBS): should be under $(arch) directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 10:34:31 +00:00
aamine 919fc002eb * ext/strscan/strscan.c: ScanError may be (wrongly) garbage collected. (thanks Gavin Sinclair)
* ext/strscan/strscan.c: move ::ScanError to StringScanner::Error.  ::ScanError is also defined for backward compatibility.
* ext/strscan/strscan.c: #peep is obsolete, use #peek.
* ext/strscan/strscan.c: #empty? is obsolete, use #eos?.
* ext/strscan/strscan.c: #clear is obsolete, use #terminate.
* ext/strscan/strscan.c: #getbyte is obsolete, use #get_byte.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 09:02:41 +00:00
nobu 33f78212ce * ext/extmk.rb (parse_args): delay expanding $(extout) until invoking
make.

* lib/mkmf.rb (CLEANLIBS): should remove files have specific
  extensions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 03:12:53 +00:00
nobu 53f6129bbe * lib/rss/rexmlparser.rb: REXML version may be 4 digits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 02:33:34 +00:00
usa b12fe8025f * ext/syck/rubyext.c (syck_emitter_end_object): takes only one arg.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 01:51:39 +00:00
nobu bd00e2118c * lib/rexml/encodings/SHIFT_JIS: wrong library name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 22:48:25 +00:00
akr 7430c46af6 * eval.c (rb_eval): care that another thread replace NODE_DREGX_ONCE
to NODE_LIT.  [ruby-dev:22920]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 16:40:50 +00:00
aamine b1772b8c40 * lib/fileutils.rb: new module FileUtils::DryRun.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 16:23:07 +00:00
nahi dd03a2ff20 * lib/csv.rb: document reduction. [ruby-core:02429]
* test/yaml/test_yaml.rb: added 0..1 test with "0".."1" on display.
          it should be defined that the specification about what kind of Range
          is supported in ruby's custom type in YAML.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 14:41:49 +00:00
gsinclair 0dea051ea1 * lib/generator.rb: corrected doc format
* lib/rinda/rinda.rb: added documentation (from Hugh Sasse)
 * lib/rinda/tuplespace.rb: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 13:24:07 +00:00
ocean 142b1b9503 * bcc32/Makefile.sub: show more warnings. (refering to mingw)
* bcc32/setup.mak: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 11:31:30 +00:00
usa cab6d2dadd * win32/Makefile.sub (config.status): should create *.pdb on ext/,
not .ext/.

* win32/Makefile.sub (config.status): convert the name of import
  library.

* lib/mkmf.rb (create_makefile): now don't need to remove
  $(TARGET).lib.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 09:39:48 +00:00
nobu 03d8c88b87 * configure.in: check functions, fork spawnv.
* io.c (rb_io_s_popen): accept argv not only single command line.

* process.c (rb_proc_exec_n): export.

* process.c (rb_check_argv): check if arguments are safe to invoke.

* process.c (rb_fork): retry to fork.

* process.c (rb_spawn): spawn child process asynchronously.

* process.c (rb_f_system): raise an exception if the command could not
  execute.

* win32/win32.c (rb_w32_argv_size): count necessary size for joined
  arguments.

* win32/win32.c (rb_w32_join_argv): join arguments with quoting.

* win32/win32.c (rb_w32_pipe_exec, rb_w32_spawn, rb_w32_aspawn):
  accept program name adding to command line.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 06:45:32 +00:00
aamine 3bc0f22fce * lib/racc/parser.rb: add note for Racc full package.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 06:19:54 +00:00
aamine 4ffed78b32 * ext/racc/cparse/README: new file.
* ext/racc/cparse/MANIFEST: add README.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 06:13:33 +00:00
nobu 5251028984 * ext/iconv/iconv.c (iconv_s_list): new method Iconv.list
(libiconv only).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 03:29:16 +00:00
ocean ba60b3f25f * dir.c (CompareImpl): File.fnmatch and Dir.glob get better performance
in Win32. This is achived by calling downcase() for single-byte
  characters. CharLower() is only called for multi-byte characters.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 01:33:12 +00:00
ocean 86e01c98c7 Fix ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-15 17:21:01 +00:00
ocean 1b529182e1 * bcc32/Makefile.sub: should warn suspicious pointer conversion.
* bcc32/setup.mak: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-15 17:20:17 +00:00
ocean a4b96f38ea Add ruby-dev number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-15 12:08:24 +00:00
ocean 5e379106b5 * dir.c (push_braces): remove wrong const.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-15 12:00:51 +00:00
nahi 3fd10dc40c * sample/soap/calc/httpd.rb, sample/soap/exchange/httpd.rb,
sample/soap/sampleStruct/httpd.rb, sample/wsdl/googleSearch/httpd.rb:
          use soap/property instead of getopts for configuring DocumentRoot
          and port# of httpd.  see samplehttpd.conf below.

        * sample/soap/calc/samplehttpd.conf,
          sample/soap/exchange/samplehttpd.conf,
          sample/soap/sampleStruct/samplehttpd.conf,
          sample/wsdl/googleSearch/samplehttpd.conf: added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-15 11:50:02 +00:00
seki c0f53ebf6d fix TupleSpace#read, #take
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-15 10:15:05 +00:00
suke d780328362 add IDispatch wrapper in val2variant
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-15 06:53:15 +00:00
ocean 30fd29a174 * ruby.h, dir.c (rb_glob): add const.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-15 06:34:21 +00:00
gotoyuzo 19cb7ffd6c * lib/mkmf.rb: absolute path of ruby is assigned to $(RUBY).
[ruby-dev:22870]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-14 16:51:12 +00:00
nobu 2549889663 * mkconfig.rb: use fileutils.rb instead of ftools.rb.
* bcc32/Makefile.sub, win32/Makefile.sub (config.h): define
  STACK_GROW_DIRECTION.

* bcc32/Makefile.sub (config.h): add newer checks.

* wince/Makefile.sub (config.h): define NEED_IO_SEEK_BETWEEN_RW.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-14 14:59:19 +00:00
eban e8262c8f04 * lib/un.rb: use OptionParser instead of getopts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-14 14:27:43 +00:00
seki 5a2b2fed70 import lib/drb/sample
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-14 02:31:05 +00:00
seki 0562a84558 add pretty_print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-14 02:16:05 +00:00
matz 829a44822d * re.c (KR_REHASH): wrong hash value on sizeof(long) > sizeof(int).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-13 16:03:15 +00:00