summaryrefslogtreecommitdiffstats
path: root/ext/sdbm
Commit message (Collapse)AuthorAgeFilesLines
* * ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222]nobu2007-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ext/digest/digest.c (rb_digest_instance_update, rb_digest_instance_finish, rb_digest_instance_reset, rb_digest_instance_block_length): %s in rb_raise() expects char*. [ruby-dev:31222] * ext/openssl/ossl.h: include ossl_pkcs5.h. [ruby-dev:31231] * ext/openssl/ossl_pkcs5.h: new file for PKCS5. [ruby-dev:31231] * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise() instead of rb_raise(). [ruby-dev:31222] * ext/sdbm/_sdbm.c: DOSISH platforms need io.h. [ruby-dev:31232] * ext/syck/syck.h: include stdlib.h for malloc() and free(). [ruby-dev:31232] * ext/syck/syck.h (syck_parser_set_input_type): prototype added. [ruby-dev:31231] * win32/win32.c: include mbstring.h for _mbspbrk(). [ruby-dev:31232] * include/ruby/win32.h (rb_w32_getcwd): prototype added. [ruby-dev:31232] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby: moved public headers.nobu2007-06-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.h (struct RArray): embed small arrays.matz2006-09-021-5/+5
| | | | | | | | | | (RARRAY_LEN): defined for accessing array members. (RARRAY_PTR): ditto. * array.c: use RARRAY_LEN and RARRAY_PTR. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.h (struct RString): embed small strings.matz2006-08-311-24/+24
| | | | | | | | | | (RSTRING_LEN): defined for accessing string members. (RSTRING_PTR): ditto. * string.c: use RSTRING_LEN and RSTRING_PTR. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add extconf.h to .cvsignore.akr2006-06-241-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_parse_string): mention "regexp" in a errormatz2006-02-132-178/+80
| | | | | | | | | | | | | | | | | | | | | | | message. a patch from Mauricio Fernandez <mfp at acm.org> [ruby-core:07340] * eval.c (rb_f_autoload): check if ruby_cbase is nil (during instance_eval for objects cannot have singleton classes, e.g. fixnums and symbols). [ruby-dev:28178] * gc.c (rb_gc_call_finalizer_at_exit): turn on during_gc while invoking finalizers. * gc.c (rb_gc_finalize_deferred): ditto. * io.c (rb_write_error2): use fwrite(3) if rb_stderr is not updated or is already freed. [ruby-dev:28313] * eval.c (error_line): include the class name of a surrounding method in error position description. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c: unify ruby_class (for method definition) and ruby_cbasematz2006-02-031-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (for constant reference). * eval.c (rb_call0): use TMP_ALLOC() instead of allocating a temporary array object. * eval.c (eval): need not to protect $SAFE value. [ruby-core:07177] * error.c (Init_Exception): change NameError to direct subclass of Exception so that default rescue do not handle it silently. * struct.c (rb_struct_select): update RDoc description. [ruby-core:7254] * numeric.c (int_upto): return an enumerator if no block is attached to the method. * numeric.c (int_downto): ditto. * numeric.c (int_dotimes): ditto. * enum.c (enum_first): new method Enumerable#first to take first n element from an enumerable. * enum.c (enum_group_by): new method Enumerable#group_by that groups enumerable values according to their block values. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* banish some warnings.akr2005-09-241-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * merged a patch from Takahiro Kambe <taca@back-street.net> tomatz2005-09-081-1/+1
| | | | | | | support DragonFly BSD. [ruby-dev:26984] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_closed): new method DBM#closed?usa2005-06-201-0/+16
| | | | | | | | | | | | | | | | * ext/gdbm/gdbm.c (fgdbm_closed): new method GDBM#closed? * ext/sdbm/init.c (fsdbm_closed): new method SDBM#closed? * test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/sdbm/test_sdbm.rb (teardown): close all db objects before deleting data files. * win32/win32.{ch} (unlink): hook runtime function to change file attribute before unlinking. merge from 1.8, see [ruby-dev:26360] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/sdbm/test_sdbm.rb: renamed from ext/sdbm/testsdbm.rb withakr2005-06-031-556/+0
| | | | | | | modification to use test/unit. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/init.c (GetDBM): typo.usa2004-12-091-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_select): [ruby-dev:25132]matz2004-12-091-47/+34
| | | | | | | | | | | | * ext/sdbm/init.c: ditto. * ext/gdbm/gdbm.c: ditto. * eval.c (proc_invoke): merge Guy Decoux's argument preserve patch in [ruby-core:03874]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_clear): avoid revealing NULL pointer.matz2004-11-141-1/+1
| | | | | | | | | | | | | | | | | | [ruby-dev:24766] * string.c (str_gsub): add paranoid check. [ruby-dev:24827] * string.c (str_mod_check): check frozen status as well. [ruby-dev:24801] * lib/mathn.rb (Integer::gcd2): faster implementation by <erlercw@siu.edu>. [ruby-talk:120232] * ext/gdbm/gdbm.c (fgdbm_store): StringValue() may alter string pointer. [ruby-dev:24783] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MANIFEST, ext/**/MANIFEST: removed.eban2004-11-011-7/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_delete_if): should check if deleting elementmatz2004-10-191-0/+1
| | | | | | | | | is a string. [ruby-dev:24490] * ext/sdbm/init.c (fsdbm_delete_if): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: remove #indexes, #indices.matz2004-06-111-49/+15
| | | | | | | | | | | | | | | | | * hash.c: ditto. * ext/dbm/dbm.c: remove #indexes, #indices, "values_at" warning from #select. * ext/gdbm/gdbm.c: ditto. * ext/sdbm/init.c: ditto. * ext/dbm/dbm.c (Init_dbm): set VERSION constant as "unknown" when DB_VERSION_STRING is not available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/init.c (fsdbm_store): sdbm should use StringValue().matz2004-06-101-4/+2
| | | | | | | [ruby-talk:103062] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_f_open): open should not ignore block when "to_open"matz2004-05-081-3/+1
| | | | | | | | | method is used. [ruby-dev:23478] * ext/dbm/dbm.c (fdbm_modify): typo fixed. [ruby-dev:23473] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (string_content): turn off NODE_NEWLINE flag to avoidmatz2004-05-071-5/+15
| | | | | | | | | | | | | | | | | | | | | | | unnecessary line trace for inlined expression. (ruby-bugs PR#1320) * numeric.c (flo_to_s): tweak output string based to preserve decimal point and to remove trailing zeros. [ruby-talk:97891] * string.c (rb_str_index_m): use unsigned comparison for T_FIXNUM search. [ruby-talk:97342] * hash.c (rb_hash_equal): returns true if two hashes have same set of key-value set. [ruby-talk:97559] * hash.c (rb_hash_eql): returns true if two hashes are equal and have same default values. * string.c (rb_str_equal): always returns true or false, never returns nil. [ruby-dev:23404] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * exception message clean-up by Ian Macdonald <ian@caliban.org>.matz2004-03-291-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* consistent parentheses in assignment RHS.matz2003-10-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_obj_methods): list singleton methods if recurmatz2003-05-062-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | argument is false; list all methods otherwise. * numeric.c (num_step): double epsilon to make "1.1.step(1.5,0.1)" to work. * ext/gdbm/gdbm.c (fgdbm_values_at): new method to replace select(index..). * ext/sdbm/init.c (fsdbm_values_at): ditto. * ext/dbm/dbm.c (fdbm_values_at): ditto. * ext/dbm/dbm.c (DBM::VERSION): defined. * ext/gdbm/testgdbm.rb: replace select with values_at. * ext/sdbm/testsdbm.rb: ditto. * ext/dbm/testdbm.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* -Wall cleanups (removed unused vars, no 'code has no effect' warnings)michal2003-01-161-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_alloc), dir.c (dir_s_alloc), eval.c (thgroup_s_alloc),usa2002-12-211-3/+2
| | | | | | | | | | | | | | | file.c (rb_stat_s_alloc), hash.c (hash_alloc), io.c (io_alloc), object.c (rb_module_s_alloc, rb_class_allocate_instance), re.c (match_alloc, rb_reg_s_alloc), string.c (str_alloc), time.c (time_s_alloc), ext/digest/digest.c (rb_digest_base_alloc), ext/tcltklib/tcltklib.c (ip_alloc), ext/win32ole/win32ole.c (fole_s_allocate, fev_s_allocate) : add prototype to get rid of VC++ warnings. * ext/sdbm/init.c (fsdbm_alloc): allocator takes only one argument. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ditto.nobu2002-12-201-5/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_indexes, fdbm_select): add a missingknu2002-10-251-2/+2
| | | | | | | | | | 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
* Update.knu2002-09-271-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: modify program_prefix only if specifiedeban2002-09-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | --program-prefix. * configure.in: don't generate ext/extmk.rb. * Makefile.in: execute directly $(srcdir)/ext/extmk.rb. remove -Cext option, "Dir::chdir 'ext'" in ext/extmk.rb. * {win32,bccwin32}/Makefile.sub: ditto. * instruby.rb: ditto. * ext/extmk.rb: renamed from ext/extmk.rb.in. * lib/mkmf.rb (module Logging): create log files (mkmf.log) in each extension module directories. * ext/extmk.rb: ditto. * lib/mkmf.rb (macro_defined?): new method. * ext/.cvsignore: remove extmk.rb. * ext/*/.cvsignore: add "*.def". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/init.c (each_pair): moved prototype before thenobu2002-04-011-2/+2
| | | | | | | | | definition. * ext/racc/cparse/cparse.c (call_scaniter): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/racc/cparse/cparse.c: prototype; call_scaniter().usa2002-04-011-0/+2
| | | | | | | | | * ext/sdbm/init.c: prototype; each_pair(). * ext/tcltklib/tcltklib.c: prototypes; _timer_for_tcl() and ip_ruby(), Nobu's patch at [ruby-dev:14483]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Make cvs ignore mkmf.log.knu2002-03-041-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_select): 1.7 behavior.matz2002-02-272-67/+133
| | | | | | | | | | | | | | | | | | | | * ext/gdbm/gdbm.c (fgdbm_select): ditto. * ext/sdbm/sdbm.c (fsdbm_select): ditto. * ext/dbm/dbm.c (fdbm_delete): adopt Hash#delete behavior. * ext/sdbm/sdbm.c (fsdbm_delete): ditto. * ext/gdbm/gdbm.c: need not to dup key to the block. * ext/sdbm/sdbm.c : replace RuntimeError with SDBMError. * eval.c (rb_f_missing): NoMethod error messages for true, false, nil must respond visibility like for other objects. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * intern.h (rb_protect_inspect): follow the change of array.c.usa2001-10-291-2/+2
| | | | | | | | | | | | | | * eval.c (rb_exec_end_proc): follow the change of rb_protect(). * eval.c (method_proc, umethod_proc, rb_catch): cast the first parameter of rb_iterate() to avoid VC++ warning. * range.c (range_step): ditto. * ext/sdbm/init.c (fsdbm_update, fsdbm_replace): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: remove unnecessary AC_CANONICAL_BUILDeban2001-05-281-1/+1
| | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@1472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot some checkins.matz2001-05-062-30/+621
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (dir_s_glob): supprt backslash escape of metacharactersmatz2001-02-141-1/+1
| | | | | | | | | | | | | | | | | | | and delimiters. * dir.c (remove_backslases): remove backslashes from path before calling stat(2). * dir.c (dir_s_glob): call rb_yield directly (via push_pattern) if block is given to the method. * dir.c (push_pattern): do not call rb_ary_push; yield directly. * eval.c (blk_copy_prev): reduced ALLOC_N too much. * eval.c (frame_dup): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add .cvsignore's.knu2001-01-091-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread_critical bug reported by Dave - matzmatz2000-12-291-3/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* matzmatz2000-11-081-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ebaneban2000-08-181-4/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* matzmatz2000-07-041-4/+84
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2000-06-16matz2000-06-161-5/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2000-05-24matz2000-05-241-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2000-03-07matz2000-03-071-3/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/*/dependmatz1999-10-212-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove marshal/gtk/kconvmatz1999-08-135-0/+1653
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e