Bugfix for Importable::callback.
2 lines of code changed in:
* eval.c (rb_mod_public_method_defined, etc.): new methods:
public_method_defined?, private_method_defined?,
protected_method_defined?
* object.c (rb_obj_public_methods): new method
Object#public_methods.
* class.c (ins_methods_i): Object#methods should list both public
and protected methods.
* class.c (rb_class_public_instance_methods): new method
Module#public_instance_methods.
124 lines of code changed in:
* eval.c, file.c, gc.c, io.c, object.c, ruby.c, ruby.h, struct.c,
ext/socket/socket.c: differentiate long and int; use proper
printf type specifiers and do casts where appropriate.
32 lines of code changed in:
2002-10-29
2 lines of code changed in:
* eval.c (error_print, rb_longjmp, rb_thread_schedule): flush
error message. [ruby-dev:18582]
* eval.c (ruby_cleanup): added. just clean up without exit.
[ruby-dev:18582]
* eval.c (ruby_exec): added. execute main evaluation tree without
exit. [ruby-dev:18582]
* intern.h: prototypes; ruby_cleanup, ruby_exec
39 lines of code changed in:
* ext/extmk.rb (extmake): use dummy_makefile to create dummy
Makefile.
* lib/mkmf.rb (find_executable0): EXEEXT is optional.
* lib/mkmf.rb (dummy_makefile): make dummy Makefile content.
* lib/mkmf.rb (create_makefile): define EXTLIB replacing -l.
* lib/mkmf.rb ($bccwin): detect Borland make by help message.
* lib/mkmf.rb (CLEANINGS): common rules to clean.
68 lines of code changed in:
* djgpp/config.sed (@program_transform_name@): use `%', not `,'.
5 lines of code changed in:
ChangeLog: commit miss.
9 lines of code changed in:
ext/extmk.rb(78) : The unnecessary error when installing by bccwin32 is controlled.
lib/mkmf.rb(773) : Also in the case of bccwin32, the path was added.
11 lines of code changed in:
* djgpp/*: sync with the latest.
* ext/extmk.rb, lib/mkmf.rb: flush $stdout.
* io.c (READ_DATA_PENDING_COUNT, READ_DATA_PENDING_PTR):
undef these macros on DJGPP.
132 lines of code changed in:
2002-10-27
2 lines of code changed in:
* moved a blank line.
1 lines of code changed in:
* fixed generator script name.
4 lines of code changed in:
* node.h (nd_type): cast the value to int.
5 lines of code changed in:
2002-10-26
2 lines of code changed in:
* ext/dbm/dbm.c (fdbm_indexes, fdbm_select): add a missing
argument and prevent coredump when a nonexistent key is
specified.
* ext/sdbm/init.c (fsdbm_indexes, fsdbm_select): ditto.
12 lines of code changed in:
* eval.c, gc.c: adopt a common set of alloca() #ifdef's. This
fixes the build with Intel C Compiler for Linux.
* eval.c (rb_f_require): declare old_func with a real type, not
just type modifiers.
31 lines of code changed in:
* ChangeLog: add ML ref.
1 lines of code changed in:
* string.c (rb_str_split_m): RSTRING(str)->ptr might become NULL.
9 lines of code changed in:
2002-10-24
2 lines of code changed in:
* configure.in (LIBPATHFLAG): avoid $ substitution.
[ruby-dev:18577]
* ext/extmk.rb (extmake): expand $srcdir.
* ext/win32ole/extconf.rb: should not override $CFLAGS, but
append.
* lib/mkmf.rb (config_string): use given config hash.
18 lines of code changed in:
* bcc32/Makefile.sub (.rc.res): directory part may be empty in Borland make.
6 lines of code changed in:
* lib/mkmf.rb (create_makefile): site-install target for backward compatibility.
6 lines of code changed in:
* lib/mkmf.rb (init_mkmf): libdir prior to topdir.
5 lines of code changed in:
* configure.in (LIBPATHFLAG): should escape $. [ruby-dev:18572]
* mkconfig.rb: never substute escaped $$.
* instruby.rb: not install LIBRUBY_SO unless enable-shared.
[ruby-dev:18569]
16 lines of code changed in:
2002-10-23
2 lines of code changed in:
* eval.c (rb_eval): added NODE_DSYM, symbol literal with
interpolation.
* node.h: ditto.
* intern.h: prototypes; rb_is_junk_id, rb_str_dump, rb_str_intern
* object.c (sym_inspect): escape and quote for non-alphanumeric
symbols.
* parse.y (dsym, tokadd_string, yylex): extended symbol literals.
* parse.y (rb_is_junk_id): added.
* string.c (rb_str_dump, rb_str_intern) : make extern.
* lib/mkmf.rb (create_makefile): deffile should be removed by
distclean, not clean.
103 lines of code changed in:
README.EXT: grammer updates by Simon Cozens.
170 lines of code changed in:
* lib/mkmf.rb (init_mkmf): add dir_config("opt").
6 lines of code changed in:
*bcc32/configure.bat : The command line when calling setup.mak is corrected.
12 lines of code changed in:
* ext/extmk.rb (extmake): add install: target to dummy Makefile.
4 lines of code changed in:
* instruby.rb: add dryrun mode.
* ext/extmk.rb (extmake): avoid Borland make's quirk behavior.
* lib/mkmf.rb (link_command): opt is not a makefile macro.
* bcc32/Makefile.sub ($(LIBRUBY_SO) $(LIBRUBY)): EXTOBJS were not
linked.
* bcc32/Makefile.sub (ext/extinit.obj): missing.
* bcc32/Makefile.sub (TRY_LINK): options have to place before any
non-option arguments.
* win32/Makefile.sub (TRY_LINK): need -link and -libpath options.
* bcc32/Makefile.sub, win32/Makefile.sub (RANLIB): logical
operator never work with command.com.
129 lines of code changed in:
* configure.in (RUBY_CPPOUTFILE): fix cache file bug.
* lib/mkmf.rb (link_command): put 'opt' after conftest.c for
static linking.
17 lines of code changed in:
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
238 lines of code changed in:
commit miss
2 lines of code changed in:
2002-10-21
2 lines of code changed in:
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
843 lines of code changed in:
should raise InvalidComponentError if MAILTO_REGEXP could not match with @opaque.
3 lines of code changed in:
* parse.y (value_expr0): allow return/break/next/redo/retry in rhs
of logical operator. [ruby-dev:18534]
* parse.y (remove_begin): eliminate useless NODE_BEGIN.
[ruby-dev:18535]
40 lines of code changed in:
* hash.c, eval.c: Use (*_NSGetEnviron()) instead of environ on
Darwin for namespace cleanness. [ruby-core:00537]
* dln.c (dln_load): Fix Darwin support that has been disabled and
switch to using it on Darwin instead of the system dlopen().
[ruby-core:00541]
28 lines of code changed in:
* win32ole.c(EVENTSINK_Invoke): set pvarResult.
8 lines of code changed in:
* marshal.c (w_byten): added; write n bytes from s to arg.
* marshal.c (dump): flush buffered data.
* marshal.c (marshal_dump, r_byte, r_bytes0, marshal_load): unify
marshaling I/O. [ruby-talk:53368]
84 lines of code changed in:
2002-10-17
2 lines of code changed in:
* object.c (rb_str_to_dbl): RString ptr might be NULL.
* object.c (rb_cstr_to_dbl): p pointer might be NULL.
* bignum.c (rb_str_to_inum): RString ptr might be NULL.
* bignum.c (rb_cstr_to_inum): str pointer might be NULL.
59 lines of code changed in:
* lib/fileutils.rb: stat.blksize might become 0/nil.
* lib/fileutils.rb: change coding style.
6 lines of code changed in:
* lib/fileutils.rb: stat.blksize might become 0/nil.
* lib/fileutils.rb: change coding style.
54 lines of code changed in:
* sprintf.c (rb_f_sprintf): disallow mixed usage of numbered and
unnumbered arguments. [ruby-dev:18531]
get rid of memory leak at exception. [ruby-core:00460]
36 lines of code changed in:
2002-10-16
2 lines of code changed in:
* variable.c (rb_global_entry): not add global entry until
initialized to avoid accessing it while GC. [ruby-dev:18514]
* variable.c (rb_alias_variable): ditto.
9 lines of code changed in:
2002-10-12
2 lines of code changed in:
* win32/win32.c (rb_w32_putc): wrong condition to fill or flush on
bccwin32. [ruby-win32:408]
13 lines of code changed in:
* win32/win32.c (rb_w32_fclose, rb_w32_close): use closesocket()
for socket. [ruby-win32:382]
* win32/win32.c (StartSockets): set NtSocketsInitialized.
* win32/win32.h: prototypes; rb_w32_fclose, rb_w32_close
80 lines of code changed in:
rename malloc_memories to malloc_increase. [ruby-cvs:05237]
5 lines of code changed in:
use BUITIN_TYPE() rather than TYPE().
1 lines of code changed in:
* gc.c (ruby_xmalloc, ruby_xrealloc): restrict total allocation
size according to memories consumed by live objects.
[ruby-dev:18482]
* gc.c (gc_sweep): estimate how live objects consume memories.
61 lines of code changed in:
* ext/tcltklib/stubs.c (ruby_tcltk_stubs): fix memory leak.
[ruby-dev:18478]
13 lines of code changed in:
* lib/weakref.rb (WeakRef::@@final): use Hash#delete.
* lib/weakref.rb (WeakRef::__getobj__): examin if alive or not by
ID_REV_MAP to deal with recycled object. [ruby-dev:18472]
* lib/weakref.rb (WeakRef::weakref_alive?): ditto.
16 lines of code changed in:
* gc.c (gc_sweep): also adjust heaps_limits when free unused heap
page. [ruby-core:00526]
* io.c (io_fflush): condition to retry can occur.
* io.c (io_write): returned 0 wrongly if no error occurred.
31 lines of code changed in:
2002-10-08
2 lines of code changed in:
* io.c (io_write): must check returned value from fwrite() before
test with ferror(). (ruby-bugs-ja:PR#350)
9 lines of code changed in:
* lib/prettyprint.rb (PrettyPrint.singleline_format): new method.
57 lines of code changed in:
2002-10-07
2 lines of code changed in:
* bignum.c (bigdivrem): bignum zero's len should not be 0.
6 lines of code changed in:
* bignum.c (bigdivmod): wrong condition check for Bignum zero.
* bignum.c (Init_Bignum): need to add Bignum#div.
8 lines of code changed in:
Fixed error messages and descriptions.
5 lines of code changed in:
2002-10-06
2 lines of code changed in:
* eval.c (rb_load): should not pass block to the loaded file.
7 lines of code changed in:
* bignum.c (rb_big_rshift): num should be initialized by carry
bits if x is negative.
* bignum.c (bigdivmod): len for bignum zero is 1, not 0.
13 lines of code changed in:
* eval.c (rb_thread_interrupt, rb_thread_signal_raise): no need to
save dead thread context. (same as [ruby-dev:18322])
(ruby-bugs-ja:PR#349)
19 lines of code changed in:
updated uri.rb and uri/*.rb to uri-0.9.7
76 lines of code changed in:
* configure.in: use rb_cv_prog_gnu_ld on FreeBSD.
2 lines of code changed in:
* configure.in (RUBY_PROG_GNU_LD): check whether the linker is GNU ld.
* ext/extmk.rb (create_makefile): add -Wl,-no-undefined to $DLDFLAGS
on Linux if GNU ld is used and --enable-shared is specified.
26 lines of code changed in:
* gc.c (Init_stack): prefer address of argument rather than local
variable to initialize rb_gc_stack_start.
5 lines of code changed in:
* bcc32/mkexports.rb: to work on cygwin via telnet.
[ruby-win32:358]
* ext/tcltklib/tcltklib.c (ip_invoke): requires command name
argument. [ruby-dev:18438]
* eval.c (ruby_init, ruby_options): Init_stack() with local
location. (ruby-bugs-ja:PR#277)
* eval.c (rb_call0): disable trace call. [ruby-dev:18074]
* eval.c (eval, rb_load): enable trace call. [ruby-dev:18074]
* eval.c (rb_f_require): set source file name for extension
libraries. [ruby-dev:18445]
* ruby.c (translate_char): translate a character in a string;
DOSISH only. [ruby-dev:18274]
* ruby.c (ruby_init_loadpath): added argv[0] handling under
Human68K. [ruby-dev:18274]
* ruby.c (proc_options): translate directory separator in $0 to
'/'. [ruby-dev:18274]
91 lines of code changed in:
use Object#class instead of deprecated Object#type.
91 lines of code changed in:
ditto.
1 lines of code changed in:
(_o_)
1 lines of code changed in:
* lib/delegate.rb (Delegator::initialize): use Object#class
instead of deprecated Object#type.
8 lines of code changed in:
* configure.in (RUBY_CHECK_IO_NEED_FLUSH): check whether fflush()
is needed.
* io.c (flush_before_seek): flush before seek if buffered data
may remain.
* io.c (rb_io_check_readable): flush if the last operation was
write.
* io.c (rb_io_check_writable): flush if the last operation was
read.
* rubyio.h (FMODE_RBUF): added.
108 lines of code changed in:
Improve the description.
5 lines of code changed in:
* io.c (rb_io_wait_readable): handle retryable errors.
* io.c (rb_io_wait_writable): ditto.
* ext/socket/socket.c (bsock_send): ditto.
* ext/socket/socket.c (s_recvfrom): ditto.
* ext/socket/socket.c (s_accept): ditto.
* ext/socket/socket.c (udp_send): ditto.
* ext/socket/getaddrinfo.c (afdl): made private structures constant.
* rubyio.h: prototype; rb_io_wait_readable(), rb_io_wait_writable().
90 lines of code changed in:
* commit miss; and tcltklib fix too.
59 lines of code changed in:
* gc.c (gc_sweep): free unused heap page to reduce process size if
possible.
* object.c (rb_obj_type): deperecated Object#type; use Object#class.
7 lines of code changed in:
* configure.in: set ac_cv_func_setitimer to "no" on Cygwin.
7 lines of code changed in:
2002-10-02
2 lines of code changed in:
* ext/socket/socket.c (init_sock): no need for special finalizer,
socket descriptor is no longer duplicated in 1.7.
[ruby-talk:50732]
* win32/win32.c, win32/win32.h (rb_w32_fddup, rb_w32_fdclose):
delete.
9 lines of code changed in:
* range.c (range_check): need no Fixnum check.
28 lines of code changed in: