* 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
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
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
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
* 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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
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
* 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