1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

117 commits

Author SHA1 Message Date
eban
cb08fee951 * intern.h (rb_define_private_method): duplicated.
* configure.in (__NO_ISOCEXT): need not to add this definition on MinGW.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-23 11:22:29 +00:00
knu
3790ff96da * mdoc2man.rb: New file. A mdoc to man converter ported from
Perl. [merged from 1.8]

* 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. [merged from 1.8]

* Makefile.in (MANTYPE): Define MANTYPE and pass it to
  instruby.rb. [merged from 1.8]

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


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-20 14:15:04 +00:00
eban
829ef4b1bc * io.c (next_argv): inherit binmode from $defout.
* configure.in: better DJGPP support. add GNUmakefile.
* djgpp/GNUmakefile: new.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-12 09:25:22 +00:00
eban
58e9f16c8d * configure.in (DLDLIBS): do not add "-lc" on DJGPP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-11 13:28:20 +00:00
nobu
fe4581bf4b * configure.in (RUBY_CHECK_IO_NEED): added more tests.
* io.c (rb_io_check_readable): seek after synchronized write.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-10 16:52:09 +00:00
nobu
7c7da55b1b * configure.in: AC_MSG_FAILURE is a new macro in 2.54b or later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-09 14:46:09 +00:00
nobu
722adecb04 * configure.in (RUBY_CHECK_IO_NEED): check whether fseek() and
fflush() are needed.

* io.c (flush_before_seek): flush before seek if buffered data
  may remain.

* io.c (rb_io_check_readable): seek if the last operation was
  write.

* io.c (rb_io_check_writable): seek if the last operation was
  read.

* rubyio.h (FMODE_RBUF, FMODE_WBUF): added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-09 08:05:24 +00:00
knu
50f10d2a63 * configure.in: Improve OpenBSD support. [obtained from: OpenBSD
ports]

* dln.c (FUNCNAME_PATTERN): Ditto.

* ext/tcltklib/extconf.rb (find_tcl, find_tk): Look for both
  lib{tcl,tk}M.N and lib{tcl,tk}MN on all platforms.  *BSD have
  Tcl/Tk libraries named this way.

* ext/socket/addrinfo.h (NI_MAXHOST): Define NI_MAXHOST and
  NI_MAXHOST only if they are not defined yet.  This fixes build
  on such platforms as OpenBSD.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-31 11:24:49 +00:00
matz
76915e433b * eval.c (backtrace): should ignore line 0 frame.
* sprintf.c (rb_f_sprintf): preceding ".." for negative
  hexadecimal numbers should not appear if prec (e.g. %.4) is
  specified.

* compar.c (cmp_eq,cmp_gt,cmp_ge,cmp_lt,cmp_le): "<=>" might
  return nil.  check using rb_cmpint().

* error.c (init_syserr): remove sys_nerr dependency.

* regex.c (re_match): avoid dereferencing if size == 0.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-02 18:19:04 +00:00
eban
b054ffab16 * configure.in (RUBY_PROG_GNU_LD): check whether the linker is GNU ld.
* ext/extmk.rb.in (create_makefile): add -Wl,-no-undefined to $DLDFLAGS
  on Linux if GNU ld is used and --enable-shared is specified.
* configure.in (RUBY_MINGW32): backport from 1.7.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-04 05:44:53 +00:00
eban
7c40d00ffa * configure.in: set ac_cv_func_setitimer to "no" on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-02 04:28:01 +00:00
matz
f33958990a * eval.c (ruby_run): should set toplevel visibility again here.
* eval.c (rb_eval): should not rely on ruby_class == rb_cObject
  check.   Besides allow implicit publicity for attribute set
  methods.

* parse.y (primary): need not to check class_nest, just set
  whether method is an attrset or not.

* string.c (rb_str_each_line): p might be at the top of the
  string.

* variable.c (rb_path2class): should not use rb_eval_string().

* parse.y (str_extend): expression substitution can contain string
  terminator again.

* parse.y (yylex): the warning message "invalid
  character syntax" was never issued.

* file.c (rb_find_file): $LOAD_PATH must not be empty.

* file.c (rb_find_file_ext): ditto.

* range.c (range_eq): class check should be based on range.class,
  instead of Range to work with Range.dup.

* range.c (range_eql): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-09-25 07:07:43 +00:00
eban
2806af3ec1 * configure.in (seekdir, telldir): add ac_cv_func_telldir=yes,
ac_cv_func_seekdir=yes for MinGW.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-30 09:07:54 +00:00
eban
3865afc59b * configure.in (__NO_ISOCEXT): add for mingw-runtime 2.0-2.
* configure.in (__MSVCRT__): removed because it is defined
  in the GCC specs.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-20 10:25:11 +00:00
eban
1c480949b5 Wed May 22 20:18:31 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* configure.in: need not link vsnprintf.o on MinGW.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-22 11:23:11 +00:00
matz
81120f9375 * eval.c (blk_orphan): the wrong condition; backported from 1.7
* eval.c (rb_clear_cache_by_class): new function.

* eval.c (set_method_visibility): should have clear cache forq
  updated visibility.

* re.c (rb_reg_s_quote): # also should be quoted.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-05-14 06:08:44 +00:00
eban
16757b5716 * configure.in: change order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-24 05:34:31 +00:00
eban
108c6a31ef * 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/branches/ruby_1_6@2405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-24 05:32:47 +00:00
eban
c35413f656 * configure.in: add check for initstate(3).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-12 04:05:08 +00:00
eban
81d8d35975 * configure.in: workaround for autoconf 2.53.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-20 07:42:11 +00:00
nobu
9601303a95 * configure.in: keep old config.h unless changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-06 08:25:00 +00:00
eban
cb2f5a91c1 * configure.in (solaris): add '-shared' only for GNU ld.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-01-25 09:00:50 +00:00
matz
1d6e0f8281 forgot to commit everything bug ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-01-04 14:20:35 +00:00
akr
b45ea9c8a0 * time.c (time_utc_offset): new function.
* time.c (Init_Time): new method gmtoff, gmt_offset and utc_offset.

* lib/time.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-30 09:11:15 +00:00
eban
9cef451b7c * configure.in: add -Wl,-export-dynamic on NetBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-03 10:11:03 +00:00
usa
5e085af1a4 * configure.in: not use X11BASE, since it's not always set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-03 07:06:28 +00:00
usa
3995e32d8c * configure.in: apply patch from NetBSD's pkgsrc (patch-aa).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-02 18:33:10 +00:00
eban
14e831dd21 * configure.in: use GCC, not without_gcc. remove without_gcc.
* ext/curses/extconf.rb: check for curses.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-02 14:09:44 +00:00
eban
2284d8b89b * configure.in: do not override CC if set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-13 13:28:00 +00:00
matz
e4d7dbf5a3 * signal.c (sighandle): should not re-register sighandler if
POSIX_SIGNAL is defined.

* eval.c (error_print): errat array may be empty.

* parse.y (yylex): float '1_.0' should not be allowed.

* variable.c (var_getter): should care about var as Qfalse
  (ruby-bugs#PR199).

* array.c (cmpint): <=> or block for {min,max} may return bignum.

* array.c (sort_1): use rb_compint.

* array.c (sort_2): ditto.

* enum.c (min_ii): ditto.

* enum.c (min_ii): ditto.

* enum.c (max_i): ditto.

* enum.c (max_ii): ditto.

* mkconfig.rb: use String#dump to generate Ruby string literal.

* range.c (range_eql): should override 'eql?'


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-13 08:22:29 +00:00
matz
2f12c07c76 * dir.c (my_getcwd): do not rely on MAXPATHLEN.
* eval.c (rb_yield_0): should not call rb_f_block_given_p().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-07 09:01:34 +00:00
matz
3ab5d775b7 * ext/socket/socket.c (unix_addr): getsockname(2) may result len = 0.
* ext/socket/socket.c (unix_peeraddr): getpeername(2) may result
  len = 0.

* eval.c (POP_BLOCK): rb_gc_force_recycle() was called too much.
  Should not be called if SCOPE_DONT_RECYCLE is set.

* string.c (rb_str_substr): should return an instance of
  receiver's class.

* string.c (rb_str_succ): ditto.

* array.c (rb_ary_subseq): ditto.

* string.c (rb_str_reverse): should return an instance of
  reciever's class.

* string.c (rb_str_times): ditto.

* array.c (rb_ary_times): ditto

* string.c (str_gsub): ditto.

* string.c (rb_str_ljust): ditto.

* string.c (rb_str_rjust): ditto.

* string.c (rb_str_center): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-10-02 04:25:53 +00:00
eban
528c61b5b7 * confgure.in: add RUBY_CANONICAL_BUILD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-11 05:31:17 +00:00
eban
2ceb3b1305 * configure.in: use waitpid on mingw32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-01 02:26:09 +00:00
knu
590c5926f0 * configure.in: default --with-libc_r to `no' until the problem is
fixed. (FreeBSD only)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-30 16:29:32 +00:00
eban
f2a1269383 * configure.in: remove unnecessary AC_CANONICAL_BUILD
* defins.h: #define HAVE_SETITIMER on Cygwin(bug fixed).
* ruby.c: use relative path from LIBRUBY_SO.
* ruby.c: don't use -mwin32 option on Cygwin.
* cygwin/GNUmakefile.in: ditto.
* ext/sdbm/_sdbm: ditto.
* ext/tcltklib/extconf.rb: ditto.
* ext/tcltklib/stubs.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-28 16:07:34 +00:00
matz
eeb7234919 * bignum.c (bigdivrem): access boundary bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-11 05:22:00 +00:00
knu
6d65fca534 * configure.in: get --enable-shared to work on MacOS X.
* Makefile.in: make $(LIBRUBY_SO) depend on miniruby properly.
Now `make -jN' should work without a problem.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-02 19:08:07 +00:00
eban
11e886e6d6 * configure.in: don't use tzname on cygwin 1.3.1+.
* configure.in: add -mieee/-ieee to CFLAGS on OSF1/Alpha
  to disable "DIVISION BY ZERO" exception.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-26 13:58:10 +00:00
eban
81e661b298 * configure.in: add -mieee to CFLAGS on Linux/Alpha
to disable "DIVISION BY ZERO" exception.

* configure.in: remove -ansi on OSF/1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-22 09:49:15 +00:00
knu
2c29a1c0e9 * Makefile.in: Introduce MAINLIBS.
* configure.in: Link libc_r against the ruby executable on
FreeBSD, which is the first attempt to work around a certain
problem regarding pthread on FreeBSD.  It should make ruby/libruby
happy when it loads an extention to a library compiled and linked
with -pthread.  Note, however, that libruby is _not_ linked with
libc_r so as not to mess up pthread unfriendly stuff including
apache+mod_ruby and vim6+ruby_interp.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-03 06:30:33 +00:00
matz
b0cc7e80a6 * eval.c (rb_mod_define_method): should have clear method cache.
* eval.c (rb_mod_define_method): should have raised exception for
  type error.

* ruby.h: changed "extern INLINE" to "static inline".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-27 07:10:58 +00:00
matz
af139b7b41 * ruby.h: better inline function support.
* configure.in (NO_C_INLINE): check if inline is available for the
  C compiler.

* marshal.c (r_object): len calculation patch was wrong for
  machines SIZEOF_BDIGITS == SIZEOF_SHORT.

* gc.c: alloca prototype reorganized for C_ALLOCA machine.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-22 08:59:26 +00:00
knu
3e83e3c639 * configure.in: Set SOLIBS properly for all ELF and
FreeBSD/NetBSD/OpenBSD a.out platforms so that the shlib
  dependencies are recorded in the libruby shlib.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-16 08:25:17 +00:00
eban
e393a67aa9 * configure.in: add ac_cv_func_getpgrp_void=yes on DJGPP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-11 14:59:04 +00:00
matz
10f884d85a * parse.y (parse_quotedwords): %w should allow parenthesis escape.
* parse.y (parse_qstring): %q should allow terminator escape.

* re.c (rb_reg_equal): all option flags should be same to be equal.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-08 09:18:04 +00:00
eban
78f3616c56 gcc-2.95.2-7(cygwin) support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-31 14:27:37 +00:00
eban
7a5c477ba4 * configure.in: remove DEFS definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-17 04:33:29 +00:00
matz
2a1b0ff232 matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-13 05:39:35 +00:00
matz
58e04b755a matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-02 09:04:54 +00:00