summaryrefslogtreecommitdiffstats
path: root/missing
Commit message (Collapse)AuthorAgeFilesLines
* * missing/vsnprintf.c (struct __sbuf, FILE): use size_t.nobu2008-07-211-4/+5
| | | | | | | * sprintf.c (ruby__sfvwrite): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/tgamma.c (tgamma): remove unused variable.mame2008-07-021-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/vsnprintf.c (BSD__uqtoa): constified.nobu2008-07-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (COMPILE_OPTION_FALSE), time.c (timegm_noleapsecond),nobu2008-07-011-2/+2
| | | | | | | | thread.c (eKillSignal, eTerminateSignal), missing/vsnprintf.c (BSD_vfprintf): constified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/acosh.c (atanh): should set ERANGE to errno if parameterusa2008-06-191-0/+9
| | | | | | | | is the boundary case. fixed [ruby-dev:35155] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tgamma and lgamma_r is not a error function.akr2008-06-152-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc.rb: massive spelling correction patch from Evan Farrarmatz2008-06-041-1/+1
| | | | | | <evanfarrar at gmail.com> in [ruby-doc:1382] applied. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * suppress warnings on cygwin, mingw and mswin.nobu2008-06-011-6/+28
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * suppress warnings with -Wwrite-string.nobu2008-05-311-13/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerator_each, enumerator_with_index): suppressnobu2008-04-221-5/+6
| | | | | | | | | | | | | | | | | | warnings. * pack.c (pack_unpack): ditto. * process.c (rb_syswait): ditto. * re.c (rb_reg_prepare_enc, rb_reg_prepare_re, rb_reg_adjust_startpos): ditto. * regparse.c (onig_name_to_group_numbers): ditto. * missing/vsnprintf.c (BSD_vfprintf): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/tgamma.c: include config.h before math.h. [ruby-dev:34075]mame2008-03-201-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/lgamma_r.c (loggamma): return 0 for 1 and 2.akr2008-03-061-0/+2
| | | | | | | | * test/ruby/test_math.rb: accept errors by functions under missing/. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/tgamma.c (tgamma): use lgamma_r if available.akr2008-02-091-1/+30
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (math_cbrt): new method Math.cbrt.akr2008-02-091-0/+10
| | | | | | | | | * configure.in (cbrt): check for replacement functions. * missing/cbrt.c: new file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/tgamma.c (tgamma): add error check.akr2008-02-091-2/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/xlgamma_r.c (lgamma_r): return HUGE_VAL for non-positiveakr2008-02-091-4/+5
| | | | | | | integers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/lgamma_r.c (lgamma_r): use smaller argument for sin function.akr2008-02-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/lgamma_r.c (lgamma_r): some compilers don't permit dividingusa2008-02-071-1/+2
| | | | | | | | | | | by literal 0.0. use const variable instead. * {bcc32,win32,wince}/Makefile.sub (MISSING): add lgamma_r.obj and tgamma.obj. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (math_gamma): new method Math.gamma.akr2008-02-072-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | (math_lgamma): new method Math.lgamma. * include/ruby/missing.h (tgamma): declared unless HAVE_TGAMMA. (lgamma_r): declared unless HAVE_LGAMMA_R. * configure.in (tgamma): check for replacement funtions. (lgamma_r): ditto. * missing/tgamma.c: new file. based on gamma.c from "C-gengo niyoru saishin algorithm jiten" (New Algorithm handbook in C language) (Gijyutsu hyouron sha, Tokyo, 1991) by Haruhiko Okumura. * missing/lgamma_r.c: ditto. * LEGAL (missing/tgamma.c): describe as public domain. (missing/lgamma_r.c): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * $Date$ keyword removed to avoid inclusion of locale dependentakr2008-01-061-1/+0
| | | | | | | string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtoul): locale independent strtoul is implemented toakr2008-01-021-184/+0
| | | | | | | | | | | | | | | | | | | | | | | | avoid "i".to_i(36) cause 0 under tr_TR locale. This is newly implemented, not a copy of missing/strtoul.c. * include/ruby/ruby.h (ruby_strtoul): declared. (STRTOUL): defined to use ruby_strtoul. * bignum.c, pack.c, ext/socket/socket.c: use STRTOUL. * configure.in (strtoul): don't check. * missing/strtoul.c: removed. * include/ruby/missing.h (strtoul): removed. * common.mk (strtoul.o): removed. * LEGAL (missing/strtoul.c): removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/strcasecmp.c: removed. Ruby don't use locale dependentakr2008-01-022-34/+0
| | | | | | | | | | | | | strcasecmp. * missing/strncasecmp.c: ditto. * configure.in: don't check strcasecmp and strncasecmp. * LEGAL: missing/strcasecmp.c and missing/strncasecmp.c removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RUBY_CHECK_VARTYPE): check if a variable is definednobu2007-12-141-30/+26
| | | | | | | | | | | and its type. * configure.in (timezone, altzone): check for recent cygwin. * missing/strftime.c (strftime): fix for timezone. [ruby-dev:32536] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/isinf.c (isinf): don't define is the macro is defined.akr2007-11-131-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/strtod.c: removed. [ruby-dev:31588]matz2007-08-221-271/+0
| | | | | | * LEGAL: updated. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_rename): deleted code to get rid of a bug ofnobu2007-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | old Cygwin. * file.c (rb_file_truncate): added prototype of GetLastError() on cygwin. [ruby-dev:31239] * include/ruby/intern.h (is_ruby_native_thread): prototype. * missing/strftime.c (strftime): fix printf format and actual arguments. * ext/Win32API/Win32API.c (Win32API_initialize): ditto. * ext/tk/tcltklib.c (ip_finalize): ditto. * ext/win32ole/win32ole.c (lcid_installed): ditto. * ext/socket/getnameinfo.c: include stdio.h always. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/isinf.c, missing/dup2.c, missing/strtod.c, missing/x68.c,nobu2007-06-105-5/+5
| | | | | | | missing/alloca.c: use "ruby/config.h". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby: moved public headers.nobu2007-06-102-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/{strlcat,strlcpy}.c, missing.h: new functions.usa2007-03-192-0/+142
| | | | | | | | | | | * LEGAL: add copyright notice about above files. * configure.in: check whether strlcat and strlcpy are exist or not. * {bcc32,win32,wince}/Makefile.sub: use above files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ac_cv_func_fcntl): fcntl support for MinGW.eban2007-02-281-2/+3
| | | | | | | * missing/flock.c: workaround for MinGW. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * intern.h (st_foreach_safe): fix prototype.usa2006-07-181-1/+67
| | | | | | | | | | * node.h (NODE_LMASK): bigger than long on LLP64. * missing/vsnprintf.c (BSD__uqtoa): new function to support LLP64. all changes are derived from [ruby-dev:29045] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_str_format): allow %c to print one charactermatz2006-06-091-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string (e.g. ?x). * lib/tempfile.rb (Tempfile::make_tmpname): put dot between basename and pid. [ruby-talk:196272] * parse.y (do_block): remove -> style block. * parse.y (parser_yylex): remove tLAMBDA_ARG. * eval.c (rb_call0): binding for the return event hook should have consistent scope. [ruby-core:07928] * eval.c (proc_invoke): return behavior should depend whether it is surrounded by a lambda or a mere block. * eval.c (formal_assign): handles post splat arguments. * eval.c (rb_call0): ditto. * st.c (strhash): use FNV-1a hash. * parse.y (parser_yylex): removed experimental ';;' terminator. * eval.c (rb_node_arity): should be aware of post splat arguments. * eval.c (rb_proc_arity): ditto. * parse.y (f_args): syntax rule enhanced to support arguments after the splat. * parse.y (block_param): ditto for block parameters. * parse.y (f_post_arg): mandatory formal arguments after the splat argument. * parse.y (new_args_gen): generate nodes for mandatory formal arguments after the splat argument. * eval.c (rb_eval): dispatch mandatory formal arguments after the splat argument. * parse.y (args): allow more than one splat in the argument list. * parse.y (method_call): allow aref [] to accept all kind of method argument, including assocs, splat, and block argument. * eval.c (SETUP_ARGS0): prepare block argument as well. * lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931] * eval.c (error_line): print receivers true/false/nil specially. * eval.c (rb_proc_yield): handles parameters in yield semantics. * eval.c (nil_yield): gives LocalJumpError to denote no block error. * io.c (rb_io_getc): now takes one-character string. * string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo hashing algorithm. * string.c (rb_str_aref): str[0] now returns 1 character string, instead of a fixnum. [Ruby2] * parse.y (parser_yylex): ?c now returns 1 character string, instead of a fixnum. [Ruby2] * string.c (rb_str_aset): no longer support fixnum insertion. * eval.c (umethod_bind): should not update original class. [ruby-dev:28636] * eval.c (ev_const_get): should support constant access from within instance_eval(). [ruby-dev:28327] * time.c (time_timeval): should round for usec floating number. [ruby-core:07896] * time.c (time_add): ditto. * dir.c (sys_warning): should not call a vararg function rb_sys_warning() indirectly. [ruby-core:07886] * numeric.c (flo_divmod): the first element of Float#divmod should be an integer. [ruby-dev:28589] * test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder. * re.c (rb_reg_initialize): should not allow modifying literal regexps. frozen check moved from rb_reg_initialize_m as well. * re.c (rb_reg_initialize): should not modify untainted objects in safe levels higher than 3. * re.c (rb_memcmp): type change from char* to const void*. * dir.c (dir_close): should not close untainted dir stream. * dir.c (GetDIR): add tainted/frozen check for each dir operation. * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg): typo fixed. a patch from Florian Gross <florg at florg.net>. * eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from event_hooks. no guarantee for arbitrary hook deletion. [ruby-dev:28632] * util.c (ruby_strtod): differ addition to minimize error. [ruby-dev:28619] * util.c (ruby_strtod): should not raise ERANGE when the input string does not have any digits. [ruby-dev:28629] * eval.c (proc_invoke): should restore old ruby_frame->block. thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833] also fix [ruby-dev:28614] as well. * signal.c (trap): sig should be less then NSIG. Coverity found this bug. a patch from Kevin Tew <tewk at tewk.com>. [ruby-core:07823] * math.c (math_log2): add new method inspired by [ruby-talk:191237]. * math.c (math_log): add optional base argument to Math::log(). [ruby-talk:191308] * ext/syck/emitter.c (syck_scan_scalar): avoid accessing uninitialized array element. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07809] * array.c (rb_ary_fill): initialize local variables first. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810] * ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free type_tag. a patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07808] * ext/socket/socket.c (make_hostent_internal): accept ai_family check from Sam Roberts <sroberts at uniserve.com>. [ruby-core:07691] * util.c (ruby_strtod): should not cut off 18 digits for no reason. [ruby-core:07796] * array.c (rb_ary_fill): internalize local variable "beg" to pacify Coverity. [ruby-core:07770] * pack.c (pack_unpack): now supports CRLF newlines. a patch from <tommy at tmtm.org>. [ruby-dev:28601] * applied code clean-up patch from Stefan Huehner <stefan at huehner.org>. [ruby-core:07764] * lib/jcode.rb (String::tr_s): should have translated non squeezing character sequence (i.e. a character) as well. thanks to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090] * ext/socket/socket.c: document update patch from Sam Roberts <sroberts at uniserve.com>. [ruby-core:07701] * lib/mathn.rb (Integer): need not to remove gcd2. a patch from NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570] * parse.y (arg): too much NEW_LIST() * eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen. * eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1. [ruby-dev:28585] * parse.y (arg): use NODE_ARGSCAT for placeholder. * lib/getoptlong.rb (GetoptLong::get): RDoc update patch from mathew <meta at pobox.com>. [ruby-core:07738] * variable.c (rb_const_set): raise error when no target klass is supplied. [ruby-dev:28582] * prec.c (prec_prec_f): documentation patch from <gerardo.santana at gmail.com>. [ruby-core:07689] * bignum.c (rb_big_pow): second operand may be too big even if it's a Fixnum. [ruby-talk:187984] * README.EXT: update symbol description. [ruby-talk:188104] * COPYING: explicitly note GPLv2. [ruby-talk:187922] * parse.y: remove some obsolete syntax rules (unparenthesized method calls in argument list). * eval.c (rb_call0): insecure calling should be checked for non NODE_SCOPE method invocations too. * eval.c (rb_alias): should preserve the current safe level as well as method definition. * process.c (rb_f_sleep): remove RDoc description about SIGALRM which is not valid on the current implementation. [ruby-dev:28464] Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp> * eval.c (method_missing): should support argument splat in super. a bug in combination of super, splat and method_missing. [ruby-talk:185438] * configure.in: Solaris SunPro compiler -rapth patch from <kuwa at labs.fujitsu.com>. [ruby-dev:28443] * configure.in: remove enable_rpath=no for Solaris. [ruby-dev:28440] * ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby String object. * ruby.1: a clarification patch from David Lutterkort <dlutter at redhat.com>. [ruby-core:7508] * lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems directories. a patch from Eric Hodel <drbrain at segment7.net>. [ruby-core:07423] * eval.c (rb_clear_cache_by_class): clearing wrong cache. * ext/extmk.rb: use :remove_destination to install extension libraries to avoid SEGV. [ruby-dev:28417] * eval.c (rb_thread_fd_writable): should not re-schedule output from KILLED thread (must be error printing). * array.c (rb_ary_flatten_bang): allow specifying recursion level. [ruby-talk:182170] * array.c (rb_ary_flatten): ditto. * gc.c (add_heap): a heap_slots may overflow. a patch from Stefan Weil <weil at mail.berlios.de>. * eval.c (rb_call): use separate cache for fcall/vcall invocation. * eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local functions. * eval.c (rb_mod_local): a new method to specify newly added visibility "local". * eval.c (search_method): search for local methods which are visible only from the current class. * class.c (rb_class_local_methods): a method to list local methods. * object.c (Init_Object): add BasicObject class as a top level BlankSlate class. * ruby.h (SYM2ID): should not cast to signed long. [ruby-core:07414] * class.c (rb_include_module): allow module duplication. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ANSI styledocean2006-01-052-18/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (KR_REHASH): should cast to unsigned for 64bit CPU.matz2005-11-231-8/+10
| | | | | | | [ruby-core:06721] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing.h, missing/memcmp.c, missing/memmove.c:ocean2005-10-272-14/+12
| | | | | | | ANSI compatible interface. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing.h, missing/*.c: SUSv3 compatible strcasecmp and strncasecmp,ocean2005-10-2211-46/+27
| | | | | | | ANSI compatible strtol and strtoul, and ANSI styled other functions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c, file.c, ruby.c: removed strchr, strrchr, strstr definitionocean2005-10-202-17/+12
| | | | | | | | | because they are defined in missing.h. * missing.h, missing/strchr.c, missing/strstr.c: ANSI styled. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c:nobu2005-10-131-0/+1
| | | | | | | get rid of warnings. fixed: [ruby-core:06247] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* banish some warnings.akr2005-09-241-5/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/strchr.c (strrchr): fixed a bug in detecting NUL in amatz2005-09-081-1/+3
| | | | | | | | | | | | string. [ruby-dev:26985] * string.c (rb_str_times): should taint empty strings as well. * object.c (Init_Object): make class_variable_{get,set} public. [ruby-dev:26965] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not loadnobu2005-09-061-1/+1
| | | | | | | | | | | | | | | extension libraries. * bignum.c (bignew_1, bigadd): K&R style argument actually can't be defined as char. * missing/vsnprintf.c: ANSI compiler supports const keyword. * ext/digest/sha2/extconf.rb: reject platforms which has inttypes.h but no 64bit integer. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/vsnprintf.c (BSD__sprint): needs to call vwrite functionnobu2005-08-221-1/+1
| | | | | | | pointer. fixed: [ruby-dev:26854] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: check vsnprintf() and snprintf().nobu2005-08-031-0/+4
| | | | | | | | * sprintf.c, missing/vsnprintf.c: made vsnprintf() and snprintf() private. fixed: [ruby-dev:26651] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_or): wraps the operand in an array if it is notmatz2005-08-021-0/+1
| | | | | | | | | an array. [ruby-talk:150495] * array.c (rb_ary_and, rb_ary_plus, rb_ary_diff): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (lambda): Perl6 style -> lambda expression. [NEW]matz2005-07-271-2/+7
| | | | | | | | | | | | | | | | | | | | | | | [VERY EXPERIMENTAL] * gc.c (id2ref): must not assign pointers to long int. use LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP. [ruby-talk:149645] * ruby.h: use LONG_LONG to simplify the change. [ruby-talk:149645] * dir.c (dir_each): rewinddir(3) before iteration. [ruby-talk:149628] * eval.c (rb_f_throw): replace all '0x%lx' by '%p'. [ruby-talk:149553] * missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit size pointer. [ruby-talk:149553] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_vsprintf, rb_sprintf): new functions return new String,nobu2005-07-231-12/+16
| | | | | | | | | using missing/vsnprintf.c. [ruby-dev:26580] * missing/vsnprintf.c: made the output changeable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_obj_pattern_match): now returns nil.matz2005-07-061-483/+74
| | | | | | | | | | | | | [ruby-core:05391] * sample/svr.rb: service can be stopped by ill-behaved client; use tsvr.rb instead. * missing/erf.c: original erf.c by prof. Okumura is confirmed to be public domain. reverted BSD implementation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/erf.c: need to include some headers for some platforms.usa2005-07-011-0/+4
| | | | | | | | * win32/win32.c (copysign, scalb): define for compatibility with other platforms. [ruby-dev:26430] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/crypt.c: modified to make it compilable on platformsmatz2005-07-012-2/+115
| | | | | | | | | other than BSD. [ruby-dev:26430] * missing/erf.c: ditto. code from <exp.c> merged. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/crypt.c: replaced with 4.4BSD version.matz2005-07-013-317/+1300
| | | | | | | | | | * missing/erf.c: ditto. * missing/vsnprintf.c: removed the third provision from the old BSD license. [ruby-core:05177] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e