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

2215 Коммитов

Автор SHA1 Сообщение Дата
matz a9ec8adff3 * lib/rational.rb: modified to support "quo".
* numeric.c (num_quo): should return most exact quotient value,
  i.e. float by default, rational if available.

* numeric.c (num_div): "div" should return x.divmod(x)[0].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-23 06:22:50 +00:00
matz 259ba31d8a * time.c (time_arg): was accessing garbage argv value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-23 04:25:47 +00:00
matz affe49b23b * parse.y (arg): syntaxify tPOW negative number hack.
* parse.y (negate_lit): new function to negate literal numeric
  values in compile time.

* regex.c (re_match_exec): charset info may be stored in MBC
  region when $KCODE != NONE.

* error.c (set_syserr): should preserve duplicated error names.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-23 03:39:25 +00:00
nobu f4f0be3a12 wrong fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-22 21:42:25 +00:00
nobu 0505b3889c * instruby.rb: should not contain destdir in shebang line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-22 21:37:38 +00:00
usa 0243dab598 * win32/win32.c (pipe_exec): remove unnecessary SetStdHandle().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-22 14:21:07 +00:00
michal c80a51e89f makes possible to add files to clean and distclean targets
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 19:33:19 +00:00
gsinclair d67106c081 Small changes to documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 16:38:42 +00:00
gsinclair b95357be1a Converted RD to RDoc, with some changes/additions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 16:06:32 +00:00
knu 064f07ace5 Correct descriptions of {proper_,}{superset,subset}?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 15:15:26 +00:00
gsinclair 3f3ad7e4d5 Very slight improvement to documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 15:09:12 +00:00
michal a443067ba2 Exchange do { } while (0) for ((void)0)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 13:52:21 +00:00
eban 32f85f3caa 2003-01-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 13:03:29 +00:00
nobu 8a51d2df6e * bcc32/Makefile.sub (LIBRUBY_A): link dmyext.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 09:05:30 +00:00
matz 1c770e7077 * parse.y (arg): put back old ** behavior for negative number
right operand.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 08:12:07 +00:00
usa ff7e65eb84 * instruby.rb: use real interpreter pathname at shebang line.
[ruby-dev:19370]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 08:03:05 +00:00
akr fce7467e60 * lib/pp.rb: Use Test::Unit.
* lib/prettyprint.rb: Ditto

* lib/time.rb: Ditto

* lib/tsort.rb: Ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-21 05:51:41 +00:00
akr c2dbfe53fc fix sharing_detection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 19:54:56 +00:00
akr d0ea0b4a8d refine previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 19:17:15 +00:00
akr f345126746 * lib/pp.rb: Don't redefine `inspect'.
(pretty_print_inspect): new method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 17:58:24 +00:00
gsinclair 1c06419911 Modified some RDoc formatting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 16:05:47 +00:00
gsinclair 2f2a51a47b Added RDoc comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 15:17:13 +00:00
knu 7828a12f19 * configure.in (MANTYPE): Detect if the system's nroff(1) groks
mdoc.  Provide a new option --with-mantype={doc|man} in case the
  check does not work as expected.

* Makefile.in (MANTYPE): Define MANTYPE and pass it to
  instruby.rb.

* instruby.rb: Convert mdoc manpages to man for systems which
  nroff(1) does not grok mdoc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 12:51:50 +00:00
knu 244bb8db51 * lib/tempfile.rb (self.open): If a block is given, call it with
tempfile as an argument and automatically close the tempfile
  when the block terminates.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 12:27:53 +00:00
seki 49123e550a make public ERB::Compiler
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 12:11:35 +00:00
knu 7bd881187d * mdoc2man.rb: Properly put nested braces, parentheses and angles.
* mdoc2man.rb: Add support for .An and .Aq/.Ao/.Ac.

* mdoc2man.rb: Add support for .Dl.

* mdoc2man.rb: Make .Pf macro actually work.

* mdoc2man.rb: Properly handle .Os.

* mdoc2man.rb: Correctly omit spaces around punctuation
  characters.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 12:10:40 +00:00
seki 9f22034ae0 fix: % in <%..%>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 11:32:19 +00:00
knu c1d00ec453 * mdoc2man.rb: Make this work as a library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 10:44:10 +00:00
eban 4a464c1fa2 * typo fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 10:22:04 +00:00
nobu 79847e0b36 * eval.c (rb_f_require): purge too many goto's.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 09:22:45 +00:00
eban 36583aac97 2003-01-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 09:01:44 +00:00
knu 198c4f8946 * mdoc2man.rb (parse_macro): Understand .Ux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 08:51:18 +00:00
knu de531fe04c Add mdoc2man.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 08:41:26 +00:00
knu 4bf5b5f588 * mdoc2man.rb: New file. A mdoc to man converter ported from
Perl.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 08:39:46 +00:00
knu 496acb03d3 * ruby.1: Properly close .Bl with .El.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 08:32:15 +00:00
matz d242ae60d8 * regex.c (is_in_list): should work weill with UTF-8.
* regex.c (re_match_exec): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 08:29:24 +00:00
gsinclair 181edd12a0 Added RDoc comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 07:16:01 +00:00
nobu 971d5f8480 * lib/mkmf.rb (egrep_cpp): use inspect to show options.
* lib/mkmf.rb (dir_config): prior configured directories to
  defaults.

* lib/mkmf.rb (dir_config): extract first word to determin
  make command type.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-19 19:14:22 +00:00
nobu 9e1339a68f * ext/aix_mksym.rb: no longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-19 17:16:24 +00:00
nobu 81768d1da5 use builtin methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-19 17:15:00 +00:00
usa e83f415139 * file.c (eaccess): under windows, make eaccess() just call
access(). [ruby-core:716], [ruby-bugs:PR#556]

* ChangeLog: fix typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-19 15:19:52 +00:00
knu 4ae8470a48 * lib/shellwords.rb (shellwords): A backslash ('\') in single
quotes should not be regarded as meta character.  This bug or
  maybe feature was inherited from Perl's shellwords.pl.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-19 14:13:01 +00:00
eban 02e3fb8cf6 2003-01-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-18 06:14:20 +00:00
nobu 587e7ac7e7 * bignum.c (rb_cstr_to_inum): should not erase all 0s, but
squeeze into one.  [ruby-dev:19377]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-18 05:53:53 +00:00
gsinclair b1e4030244 Added RDoc comments. See comments at EOF for TODOs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-17 15:17:20 +00:00
gsinclair 99a3e3fdfa Added RDoc comments. Several issues exist: see comments at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-17 14:06:27 +00:00
gsinclair 94d28746c2 Added RDoc comments. Several TODOs remain; see comments at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-17 09:30:11 +00:00
knu b63bab709a 2003-01-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-16 18:52:16 +00:00
knu b4406583e6 * sprintf.c (rb_f_sprintf): Fix a bug caused by an uninitialized
variable v, that a bignum unexpectedly gets converted into a
  string with its higher figures all filled with ./f/7/1,
  depending on the base.  This bug seems to have been introduced
  in rev.1.27.

* sprintf.c (rb_f_sprintf): Use switch instead of a sequence of
  else-if's.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-16 18:48:20 +00:00
eban 0df980f610 2003-01-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-16 14:38:04 +00:00