aboutsummaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Michal Rokos for sprintf format strings applied.shigek2003-04-251-30/+30
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removed lib & sample dir.shigek2003-04-256-12/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* BigDecimal dir. rearrangement according to the suggestions from Minero Aoki.shigek2003-04-246-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Dir. rearrangement according to the suggestions from Minero Aoki.shigek2003-04-244-9/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* More explanations for sincos.shigek2003-04-242-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Prec. improvement for PI.shigek2003-04-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: add -Wl,--no-undefined to LDSHARED onlyeban2003-04-241-1/+8
| | | | | | | if GNU ld is 2.11 or later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/extconf.rb: bccwin32 is win32 too.nobu2003-04-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/Setup*: Add zlib and remove bogus and obsolete entries.knu2003-04-196-9/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bug in negative.exp(n) reported by Hitoshi Miyazaki fixed.shigek2003-04-171-1/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (each_pair): add prototype to avoid VC++ warnings.usa2003-04-172-0/+8
| | | | | | | | * ext/readline/readline.c (Init_readline): follow readline 4.2 prototype. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: add the defined operator for bcc32.eban2003-04-171-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: include <unistd.h> only whenusa2003-04-091-0/+2
| | | | | | | HAVE_UNISTD_H is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_s_unpack_sockaddr_in): remove structmatz2003-04-071-4/+0
| | | | | | | | | | | | | | | | | | | size check. getnameinfo(3) can handle. [ruby-dev:19967] * io.c (io_read): do not call rb_sys_fail() when required data length is zero. (ruby-bugs-ja PR#420) * eval.c (umethod_proc): should raise TypeError, instead of returning error causing Proc. Following the principle of "fail early". [ruby-core:00927] * pack.c (pack_pack): small but serious typo. * eval.c (backtrace): skip internal allocator frame. (ruby-bugs-ja PR#416) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * zlib.c (rb_gzreader_getc): the return value of GzipReader#getc must be ↵katsu2003-04-061-1/+1
| | | | | | unsigned. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_missing): use "inspect" for T_OBJECT as well.matz2003-04-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb, ext/extmk.rb, lib/benchmark.rb, lib/cgi.rb,akr2003-03-291-1/+1
| | | | | | | | | lib/debug.rb, lib/getoptlong.rb, lib/optparse.rb, lib/time.rb, lib/date/format.rb, lib/irb/ruby-lex.rb lib/uri/common.rb: revert escape for `-' in character class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (avalue_to_svalue): use rb_check_array_type() again.matz2003-03-292-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | Clarify how "to_ary" and "to_a" work. [ruby-talk:68155] * eval.c (svalue_to_avalue): ditto. * eval.c (svalue_to_mrhs): ditto. * eval.c (rb_eval): unary splat to use to_a, but we need a hack to exclude Object#to_a until it's removed. * object.c (rb_Array): check obj.respond_to?("to_a"). Currently all object respond_to "to_a", but Object#to_a will be removed. * range.c (Init_Range): undefine to_ary. * re.c (Init_Regexp): ditto. * regex.c (re_compile_pattern): do not warn if "-" is at the top or last of character class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import Ruby/zlib from rough.katsu2003-03-284-0/+3749
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use rb_str2cstr() instead of STR2CSTR() macro.shigek2003-03-282-12/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Rubbish !shigek2003-03-281-7/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Entries for bigdecimal added.shigek2003-03-286-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Copied from rough/bigdecimal,documents & some sample programs added.shigek2003-03-2817-0/+6325
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (avalue_splat): new function to do unary * (splat)matz2003-03-261-0/+6
| | | | | | | | | | | | | | | | | | | operator. * eval.c (avalue_to_svalue,svalue_to_avalue,svalue_to_mrhs): do not use implicit "to_ary" conversion. * ext/curses/curses.c (GetWINDOW,GetMOUSE): add taint check. * ext/curses/curses.c (curses_init_screen): ditto. * ext/curses/curses.c (window_initialize): ditto. * gc.c (os_each_obj): prohibit ObjectSpace#each_object in safe mode ($SAFE >= 4). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c: should infect also return values of #inspect.aamine2003-03-251-19/+18
| | | | | | | * ext/strscan/strscan.c: use snprintf() instead of sprintf(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* security enhancement of dl library (need test).matz2003-03-244-148/+150
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added rb_secure(4). (Thanks to Minero Aoki)ttate2003-03-243-1/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update NotImplementError to NotImplementedError.matz2003-03-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb, lib/jcode.rb, ext/tk/lib/tk.rb: reorder characterakr2003-03-221-9/+9
| | | | | | | class /[\]\[]/ to /[\[\]]/ to readability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_compile_pattern): fix previous change.akr2003-03-212-10/+10
| | | | | | | | | | | * instruby.rb, ext/extmk.rb, ext/tk/lib/tk.rb, lib/benchmark.rb, lib/cgi.rb, lib/debug.rb, lib/getoptlong.rb, lib/jcode.rb, lib/optparse.rb, lib/time.rb, lib/date/format.rb, lib/irb/ruby-lex.rb: escape `[', `]', `-' in chracter class in regexp to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (load_dyna): clear ruby_errinfo. (ruby-bugs-ja PR#409)matz2003-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * io.c (read_all): make str empty if given. (ruby-bugs-ja PR#408) * io.c (io_read): ditto. * io.c (rb_io_sysread): ditto. * range.c: do not override min and max. * sprintf.c (remove_sign_bits): octal left most digit for negative numbers may be '3'. (ruby-bugs-ja PR#407) * sprintf.c (rb_f_sprintf): should prefix sign bits if bignum is negative, using sign_bits(). * eval.c (avalue_to_mrhs): split argument passing and assignment conversion. * eval.c (svalue_to_mrhs): ditto. * eval.c (avalue_to_svalue): avalue_to_svalue([[1,2]]) should be [[1,2]], not [1,2] to wrap-around. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_find_file): need world writable directory check formatz2003-03-101-4/+5
| | | | | | | | | | relative paths too. * file.c (rb_find_file): world writable directory check if $SAFE >= 1 (was $SAFE >= 2). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/extconf.rb (find_tcl, find_tk): return true ifnobu2003-03-071-2/+2
| | | | | | | non-versioned found. [ruby-dev:19759] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: add QDBM support.eban2003-03-071-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dsym): :"symbol string" style should not contain `\0'.matz2003-03-073-81/+45
| | | | | | | | | | | | | | | | | * process.c (proc_detach): new method Proc#detach(pid) which create background watcher thread to issue waitpid. [new] * process.c (rb_detach_process): utility function to detach process from C code. * ext/pty/pty.c (pty_finalize_syswait): terminate watcher thread, and detach child process (by creating new idle waitpid watcher thread). * ext/pty/pty.c (pty_syswait): may lost signal stopped child. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/Win32API/Win32API (Win32API_initialize): should check number ofeban2003-03-061-0/+5
| | | | | | | papameters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/Win32API/Win32API.c: no longer use inline-asms.eban2003-03-062-189/+52
| | | | | | | * ext/Win32API/extconf.rb: no need to add gcc options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/MANIFEST: Exclude .cvsignore. [found by: eban]knu2003-03-031-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/Win32API/MANIFEST: Belatedly add lib/win32/registry.rb.knu2003-03-031-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (parse_args): add '-n' to $mflags BEFORE "--".eban2003-02-101-3/+2
| | | | | | | do not add DESTDIR if already included in $fmlags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (parse_args), ext/extmk.rb (parse_args): Prepend aknu2003-01-271-16/+8
| | | | | | | | hyphen to the first argument of MAKEFLAGS only if appropriate. Remove wrong comments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb ($mflags.set?): Check $make instead of $nmake, sinseusa2003-01-261-0/+1
| | | | | | | | | | there is no such a variable. * instruby.rb ($mflags.set?), ext/extmk.rb ($mflags.set?): Return false if unmatched. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (parse_args), ext/extmk.rb (parse_args): Detect -nknu2003-01-261-7/+16
| | | | | | | | and emulate a dry run. Use 'make' in case no --make argument is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb, ext/extmk.rb, Makefile.in, win32/Makefile.sub,knu2003-01-251-14/+31
| | | | | | | | | | | | bcc32/Makefile.sub: Replace the complicated MFLAGS/MAKEFLAGS parser with something plain and comprehensible. This fixes a bug where make flags were wrongly reordered and the resulted command line often did not make sense especially when BSD make is used with extra arguments given. Tested with FreeBSD and Linux by me and mswin32, bccwin32 and mingw by usa. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * typo fix.eban2003-01-201-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/aix_mksym.rb: no longer used.nobu2003-01-191-12/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use builtin methodsnobu2003-01-191-30/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* -Wall cleanups (removed unused vars, no 'code has no effect' warnings)michal2003-01-1611-35/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/win32.rb: elimitate unnecessary "A" adding.eban2003-01-121-6/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Check the return value of dlopen().ttate2003-01-121-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e