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

1385 Коммитов

Автор SHA1 Сообщение Дата
aamine bc66ac228c * eval.c (superclass): undesirable "unexpected return" when the superclass is not a Class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-07 00:20:49 +00:00
knu 40225b8cb5 2002-05-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-04 22:01:55 +00:00
knu 323af7e264 * lib/mkmf.rb: exclude topdir from the system configuration
section and prevent it from being overridden.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-04 21:57:32 +00:00
knu 1e0830c198 Back out the previous commit which was incorrect. I misread the
specification.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-04 00:06:19 +00:00
knu 5c7b8af937 2002-05-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-03 22:40:52 +00:00
knu df05c380d6 * dir.c (fnmatch): Make PERIOD() independent of FNM_PATHNAME.
This fixes a bug where fnmatch('/?a', '/.a', 0) returned true.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-03 22:39:40 +00:00
eban 74c37c00b0 * win32/config.h.in: define HAVE_DECL_SYS_NERR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-03 13:12:10 +00:00
eban e37c67b73f * configure.in: add #include <errno.h> in AC_CHECK_DECLS().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-03 11:24:30 +00:00
eban 4213a33aa4 2002-05-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-02 09:31:37 +00:00
eban 2b4ad0cc22 * ext/extmk.rb.in, lib/mkmf.rb: use 'do...end' instead of '{}' for Borland make.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-02 09:31:29 +00:00
matz 20ed1f8d1a * error.c: use HAVE_DECL_SYS_NERR instead of platform names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-02 07:50:36 +00:00
ttate b5a8ba178f Catch the exception SystemExit in extconf.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-01 15:21:34 +00:00
eban 1d64100b2a 2002-05-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-01 13:23:01 +00:00
matz 4fa0cdea78 * numeric.c (num_step): better iteration condition for float
values;  suggested by Masahiro TANAKA <masa@ir.isas.ac.jp>.

* range.c (range_step): step (for Range#step method) <= 0 makes no
  sence, thus ArgError will be raised.

* range.c (range_each): Range#each method is special case for
  Range#step(1)

* file.c (rb_find_file): load must be done from an abolute path if
  $SAFE >= 4.

* enum.c (enum_partition): new method. [new]

* re.c (rb_reg_s_quote): quote whitespaces for /x cases.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-01 09:41:50 +00:00
ttate ca55fe4f0d L641: rb_float_new(*((float*)ptr)) -> rb_float_new(*((double*)ptr)).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-01 04:13:28 +00:00
eban c85ab121ff * win32/win32.c (insert): fix prototype for ANSI C.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-28 09:15:02 +00:00
ttate 076a82105a ext/dl/ptr.c: missing break in switch statements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-26 07:03:32 +00:00
nobu cc3b6901b2 ANSI C requires a named argument before `...'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-26 00:40:28 +00:00
nobu b664645ddc * eval.c (rb_proc_new): make Proc from C function. [new]
* intern.h (rb_proc_new): prototype.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-26 00:38:44 +00:00
nobu 67c8ca36f2 2002-04-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-25 14:33:15 +00:00
matz b134b91278 * various files: macro fix-up by Michal Rokos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-25 13:57:01 +00:00
gotoken 4ec25bdd63 discarded unused parameter
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-24 19:14:59 +00:00
nobu 565fec45b9 * eval.c (proc_to_proc): return self. [new]
* eval.c (block_pass): no need to convert if block is Proc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-24 05:58:34 +00:00
eban 0efc6365aa * configure.in: set size of the initial stack from
2MB to 32MB on MinGW/Cygwin.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-24 05:27:41 +00:00
matz 936ad409ad * numeric.c (num_step): try to reduce residual on Float operations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-24 05:08:04 +00:00
eban a117cec653 * gc.c (init_GC): typo fix(rb_exc_new -> rb_exc_new2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-24 05:07:07 +00:00
matz e3a8c62630 * io.c (rb_io_mode_flags): both 'r+b' and 'rb+' should be allowed.
* io.c (rb_io_mode_modenum): ditto.

* gc.c (rb_memerror): rename from mem_error, and exported.

* gc.c (Init_GC): pre-allocate NoMemoryError instance.

* object.c (convert_type): error message changed from "failed to
  convert" to "cannot convert", since it does not try to convert
  if an object does not respond to the converting method.

* eval.c (block_pass): convert Method to Proc using
  rb_check_convert_type().

* object.c (rb_check_convert_type): always convert T_DATA

* eval.c (rb_thread_cleanup): should not terminate main_thread by
  Fatal error.

* regex.c (is_in_list): need to not exclude NUL and NEWLINE.

* re.c (rb_reg_expr_str): wrong backslash escapement.

* re.c (rb_reg_expr_str): do not escape embedded space
  characters.

* marshal.c (w_object): T_DATA process patch from Joel VanderWerf
  <vjoel@PATH.Berkeley.EDU>.  This is temporary hack; it remains
  undocumented, and it will be removed when marshaling is
  re-designed.

* marshal.c (r_object): ditto.

* numeric.c (num_step): Integer#step is moved to Numeric#step;
  Fixnum#step is merged into this method.

* numeric.c (int_dotimes): Fixnum#times is merged.

* numeric.c (int_upto): Fixnum#upto is merged.

* numeric.c (int_downto): Fixnum#downto is merged.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-24 04:54:16 +00:00
nobu b596fbbc37 * ext/stringio/stringio.c (strio_mark): must check if ptr is NULL
first.  [ruby-talk:38873]

* lib/mkmf.rb (create_makefile): should print depend file when
  make is other than nmake.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-23 16:22:25 +00:00
usa ad8dbab888 * ext/extmk.rb.in (create_makefile): use `{$(srcdir)}' directive instead
of `$(srcdir)/' when including depend file.

* lib/mkmf.rb (create_makefile): add `{$(srcdir)}' when including depend
  file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-23 15:43:26 +00:00
eban 3fe3e72b17 * configure.in: AC_INIT should take no argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-21 16:05:52 +00:00
ttate 73331b45e0 Add a sample which shows how to deal with C++ libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-20 16:09:44 +00:00
usa 9a8bcafe55 * win32/Makefile.sub: add -DNT to $CFLAGS instead of $CPPFLAGS.
* win32/setup.mak: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 13:06:12 +00:00
eban 5164f39cbd * configure.in: version 0.0 -> 1.7.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 07:52:21 +00:00
eban 512db243d7 * configure.in: cleanup for autoconf 2.5x.
* configure.in: use gcc -shared instead of dllwrap on Cygwin/MinGW.
* ext/extmk.rb, lib/mkmf.rb: get rid of "--def=".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 07:39:40 +00:00
eban 5898798b80 * win32/win32.c: include <mswsock.h> on __MINGW32__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 07:33:18 +00:00
eban c46d1cdb1e 2002-04-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 07:30:30 +00:00
eban 71e36853ee * ext/socket/extconf.rb: include <windows.h>, <winsock.h> on _WIN32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 07:29:59 +00:00
nobu e7daa72a6a * re.c (rb_reg_to_s): remove redundant shy group.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 05:59:45 +00:00
matz 8c3157e43f * eval.c (rb_thread_cleanup): current thread may be THREAD_STOPPED,
for example when terminated from signal handler.

* regex.c (re_compile_pattern): remove /p support.

* regex.h: ditto.

* parse.y (parse_regx): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 04:14:07 +00:00
ttate 75ebf39107 ext/dl/ptr.c: remove rb_dlptr_cast().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-19 04:05:54 +00:00
nobu 9021157411 2002-04-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-18 09:10:54 +00:00
matz e63a990141 * re.c (rb_reg_expr_str): should treat backslash specially in
escaping.

* io.c: complete off_t handling; missing argument for
  fptr_finalize(); polished rb_scan_args call.

* dir.c: wrap multi-statment macro by do { } while (0)

* eval.c, numeric,c, sprintf.c, util.c: ditto.

* bignum.c (rb_big_eq): check `y == x' if y is neither Fixnum,
  Bignum, nor Float.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-18 08:46:18 +00:00
akr 8a7b08bb78 * re.c (rb_reg_to_s): new function for Regexp#to_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-18 08:04:57 +00:00
nobu a411f0365b copied from ext/etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-18 06:13:43 +00:00
akr 53641c5118 modify document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-18 05:11:31 +00:00
knu 59c8d11b83 * ext/Setup*, ext/bigfloat/*: Back out the import of BigFloat in
favor of its forthcoming successor, BigDecimal.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-17 15:00:23 +00:00
nobu 23288f8674 * eval.c (assign): convert mrhs to mvalue.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-16 00:02:49 +00:00
nobu 7edb39fbfa 2002-04-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-15 09:29:47 +00:00
matz 9a24232fd2 * pack.c (pack_unpack): should treat 'U' in character unit, not in
byte unit.

* error.c (exc_initialize): should clear backtrace information.

* io.c (rb_io_fptr_cleanup): should close IO created by IO.new(fd).

* rubyio.h: remove FMODE_FDOPEN


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-15 07:48:47 +00:00
ttate cb944528b6 Correct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-14 17:19:44 +00:00