summaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
...
* * observer.rb: raise NoMethodError instead of NameError. [ruby-dev:18788]nahi2002-11-141-0/+8
| | | | | | | | * ostruct.rb: ditto. fix a bug in inspect which called String#+ with Symbol. [ruby-dev:18788] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (LIBRUBY_A): append -static. [ruby-dev:18689]nobu2002-11-141-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in (LIBRUBYARG_STATIC, LIBRUBYARG_SHARED): linker argument to link static/shared library respectively. * Makefile.in (LIBRUBYARG_STATIC, LIBRUBYARG_SHARED): added. * bcc32/Makefile.sub, win32/Makefile.sub: ditto. * instruby.rb (LIBRUBY_A): install to libdir. * lib/mkmf.rb (link_command): link static library of ruby, or try_run fails unless LIBRUBY_SO is installed. [ruby-dev:18646] * eval.c (call_trace_func): toplevel caller was missing. [ruby-dev:18754] * eval.c (proc_to_s): adjust created line number. * parse.y (primary, do_block, brace_block): adjust line number of block to beginning line, instead of the first statement inside the block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (math_acos): check errno after operation. ditto formatz2002-11-141-0/+17
| | | | | | | | | | | | | | | | | asin, acosh, atanh, log, log10 and sqrt. * eval.c (rb_add_method): initialize should always be private. * parse.y (expr): add rescue modifier rule. * parse.y (command_call): return, break and next with argument is now part of this rule. * parse.y (yylex): "a" in "a /5" should be considered as a local variable. [experimental] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (DLDFLAGS): removed -Wl,-no-undefined tonobu2002-11-131-0/+10
| | | | | | | | | | | | ext/extmk.rb, in order to allow references to symbols in other extension libraries for mkmf.rb. [ruby-dev:18724] * ext/extmk.rb (extmake): ditto. * ext/extmk.rb (extmake): exit when make failed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb: retire contain?() and add superset?(),knu2002-11-091-0/+12
| | | | | | | | | | | | | | proper_superset?() subset?(), and proper_subset?(). [obtained from: Jason Voegele's set.rb] * lib/set.rb: define several aliases: union() for |(), difference() for -(), ande intersection() for &(). [obtained from: Jason Voegele's set.rb] * lib/set.rb: deal with a s/id/object_id/ leftover. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/stubs.c: should include "util.h" for ruby_strdup.eban2002-11-091-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c: remove ENABLE_TRACE/DISABLE_TRACE to trace child nodes of c-call.nahi2002-11-091-0/+5
| | | | | | | [ruby-dev:18699]; nahi commits this as proxy for nobu. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_define_method): do not set NOEX_CFUNC if klass ismatz2002-11-071-0/+13
| | | | | | | | | | | | | really a module, whose methods must be safe for reciever's type. * eval.c (rb_eval): nosuper should not be inherited unless the overwritten method is an undef placeholder. * parse.y (primary): allow 'when'-less case statement; persuaded by Sean Chittenden. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_yield_0): should enable trace for non-cfunc nodes.nobu2002-11-071-0/+8
| | | | | | | | | | [ruby-dev:18645] * eval.c (blk_orphan): a block created in a different thread is orphan. [ruby-dev:17471] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: Properly pass the given target toknu2002-11-041-0/+5
| | | | | | | make(1). [pointed out by eban] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb, lib/mkmf.rb: use CONFIG["ENABLE_SHARED"] instead ofusa2002-11-041-0/+5
| | | | | | | checking whether CONFIG["configure-args"] includes "--enable-shared". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, ext/extmk.rb, bcc32/Makefile.sub,knu2002-11-031-0/+10
| | | | | | | | | | | | win32/Makefile.sub: Introduce better command line syntax (--make/--make-flags/--extstatic) to extmk.rb and instruby.rb. Previously such command as 'make -j3 install' with pmake doesn't fail. Formerly extmk.rb was receiving "make -j 3 -j 3" via the command line arguments and just ended up recognizing the first "3" as destdir. [with help of usa] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/getopts.rb: Do not choke on characters that cannot be usedknu2002-11-031-0/+6
| | | | | | | | in a variable name. Replace them with `_'. Define a hash named $OPT for convenience. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (Init_Object): added Object#object_id, new name formatz2002-11-031-0/+26
| | | | | | | | | | | | | | | | | | | Object#id. [new] * object.c (rb_obj_id_obsolete): give warning for Object#id. * numeric.c (fix_intern): added Fixnum#to_sym. [new] * object.c (sym_to_sym): rename from Symbol#intern * enum.c (enum_zip): added Enumerable#zip. [new] * array.c (rb_ary_zip): added Array#zip. * error.c (init_syserr): remove sys_nerr dependency. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_mod_public_method_defined, etc.): new methods:matz2002-10-301-0/+15
| | | | | | | | | | | | | | | | | 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c, file.c, gc.c, io.c, object.c, ruby.c, ruby.h, struct.c,knu2002-10-291-0/+6
| | | | | | | | ext/socket/socket.c: differentiate long and int; use proper printf type specifiers and do casts where appropriate. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (error_print, rb_longjmp, rb_thread_schedule): flushnobu2002-10-291-0/+13
| | | | | | | | | | | | | | | 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 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): use dummy_makefile to create dummynobu2002-10-281-0/+15
| | | | | | | | | | | | | | | | | 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * djgpp/config.sed (@program_transform_name@): use `%', not `,'.eban2002-10-271-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: commit miss.eban2002-10-271-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/extmk.rb(78) : The unnecessary error when installing by bccwin32 is ↵H_Konishi2002-10-271-0/+7
| | | | | | | | | controlled. lib/mkmf.rb(773) : Also in the case of bccwin32, the path was added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h (nd_type): cast the value to int.knu2002-10-261-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_indexes, fdbm_select): add a missingknu2002-10-251-0/+8
| | | | | | | | | | argument and prevent coredump when a nonexistent key is specified. * ext/sdbm/init.c (fsdbm_indexes, fsdbm_select): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c, gc.c: adopt a common set of alloca() #ifdef's. Thisknu2002-10-251-0/+8
| | | | | | | | | | 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: add ML ref.aamine2002-10-241-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_split_m): RSTRING(str)->ptr might become NULL.aamine2002-10-241-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (LIBPATHFLAG): avoid $ substitution.nobu2002-10-241-1/+11
| | | | | | | | | | | | | | [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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bcc32/Makefile.sub (.rc.res): directory part may be empty in Borland make.nobu2002-10-241-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): site-install target for backward compatibility.nobu2002-10-231-3/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (init_mkmf): libdir prior to topdir.nobu2002-10-231-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (LIBPATHFLAG): should escape $. [ruby-dev:18572]nobu2002-10-231-0/+9
| | | | | | | | | | * mkconfig.rb: never substute escaped $$. * instruby.rb: not install LIBRUBY_SO unless enable-shared. [ruby-dev:18569] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): added NODE_DSYM, symbol literal withnobu2002-10-231-0/+21
| | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (init_mkmf): add dir_config("opt").eban2002-10-221-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *bcc32/configure.bat : The command line when calling setup.mak is corrected.H_Konishi2002-10-221-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): add install: target to dummy Makefile.nobu2002-10-221-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: add dryrun mode.nobu2002-10-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_CPPOUTFILE): fix cache file bug.eban2002-10-211-0/+7
| | | | | | | | * lib/mkmf.rb (link_command): put 'opt' after conftest.c for static linking. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (XCFLAGS): CFLAGS to comile ruby itself.nobu2002-10-211-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (value_expr0): allow return/break/next/redo/retry in rhsnobu2002-10-181-0/+8
| | | | | | | | | | of logical operator. [ruby-dev:18534] * parse.y (remove_begin): eliminate useless NODE_BEGIN. [ruby-dev:18535] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c, eval.c: Use (*_NSGetEnviron()) instead of environ onknu2002-10-171-0/+9
| | | | | | | | | | | 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] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_byten): added; write n bytes from s to arg.nobu2002-10-171-0/+9
| | | | | | | | | | * marshal.c (dump): flush buffered data. * marshal.c (marshal_dump, r_byte, r_bytes0, marshal_load): unify marshaling I/O. [ruby-talk:53368] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_str_to_dbl): RString ptr might be NULL.matz2002-10-171-0/+17
| | | | | | | | | | | * 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: stat.blksize might become 0/nil.aamine2002-10-171-0/+6
| | | | | | | * lib/fileutils.rb: change coding style. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_f_sprintf): disallow mixed usage of numbered andnobu2002-10-161-0/+6
| | | | | | | | unnumbered arguments. [ruby-dev:18531] get rid of memory leak at exception. [ruby-core:00460] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_global_entry): not add global entry untilnobu2002-10-161-0/+7
| | | | | | | | | initialized to avoid accessing it while GC. [ruby-dev:18514] * variable.c (rb_alias_variable): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_putc): wrong condition to fill or flush onnobu2002-10-121-0/+5
| | | | | | | bccwin32. [ruby-win32:408] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_fclose, rb_w32_close): use closesocket()nobu2002-10-101-0/+9
| | | | | | | | | | | for socket. [ruby-win32:382] * win32/win32.c (StartSockets): set NtSocketsInitialized. * win32/win32.h: prototypes; rb_w32_fclose, rb_w32_close git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (ruby_xmalloc, ruby_xrealloc): restrict total allocationnobu2002-10-101-0/+8
| | | | | | | | | | size according to memories consumed by live objects. [ruby-dev:18482] * gc.c (gc_sweep): estimate how live objects consume memories. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/stubs.c (ruby_tcltk_stubs): fix memory leak.eban2002-10-101-0/+5
| | | | | | | [ruby-dev:18478] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/weakref.rb (WeakRef::@@final): use Hash#delete.nobu2002-10-101-0/+9
| | | | | | | | | | * 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e