summaryrefslogtreecommitdiffstats
path: root/dln.c
Commit message (Collapse)AuthorAgeFilesLines
* * configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): moved fromnobu2009-11-301-1/+1
| | | | | | | | | | dln.c:dln_find_1(). * lib/mkmf.rb (def find_executable0): use EXECUTABLE_EXTS, not only EXEEXT. [ruby-core:26821] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): removed duplication.nobu2009-11-231-3/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): fixed commit miss.nobu2009-11-231-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): removed duplication.nobu2009-11-231-7/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2009-11-031-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (load_lib, dln_find_exe_r): env string may be overwritten.nobu2009-09-281-2/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_{exit,loaderror,memerror,notimplement}): renamed asnobu2009-09-281-18/+40
| | | | | | | independent names. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (aix_loaderror): needs format string.nobu2009-09-281-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (aix_loaderror): fixed typo. suppress warnings.kanemoto2009-09-231-3/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (aix_loaderror): get rid of using uninitialized value in thenobu2009-09-111-6/+7
| | | | | | | | case loadquery fails. fixed wrong index variable usage. see [ruby-core:25479]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): fixed index overrun.nobu2009-06-301-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): fix for files with dots. [ruby-dev:38588]nobu2009-06-291-13/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: remove __CHECKER__ test.akr2009-06-221-6/+0
| | | | | | | | | | | | | | * dir.c: ditto. * dln.c: ditto. * file.c: ditto. * process.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c, dln.c, parse.y, re.c, ruby.c, sprintf.c, strftime.c,nobu2009-03-171-3/+3
| | | | | | | | string.c, util.c, variable.c: use strlcpy, memcpy and snprintf instead of strcpy, strncpy and sprintf. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (init_funcname_len, dln_find_exe_r, dln_find_file_r): usenobu2009-03-141-7/+7
| | | | | | | | | | | size_t. * file.c (rb_stat_inspect, file_expand_path): ditto. * util.c (ruby_qsort): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): compare fspace in size_t world.akr2009-03-131-3/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c,nobu2009-03-121-3/+3
| | | | | | | | | | numeric.c, pack.c, strftime.c, string.c, thread.c, transcode.c, transcode_data.h, util.c, variable.c, vm_dump.c, include/ruby/encoding.h, missing/crypt.c, missing/vsnprintf.c: suppress VC type warnings. [ruby-core:22726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* stripped trailing spaces.nobu2009-02-221-10/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_intern.h (translit_char): moved from ruby.c.nobu2009-02-191-12/+3
| | | | | | | | | | * load.c (load_ext): transliterates file separators and back if needed. * symbian/setup (DLN_NEEDS_ALT_SEPARATOR): defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (rb_fiber_current), dln.c (dln_print_undef, dln_undefined),nobu2009-02-011-2/+2
| | | | | | | | | | | eval.c (rb_iterator_p, rb_need_block), load.c: (Init_load), ruby.c (uscore_get, rb_f_chop), st.c (stat_col), signal.c (rb_signal_buff_size, ruby_sig_finalize), thread.c (rb_thread_sleep_forever, rb_thread_sleep_deadly, rb_thread_alone): protoized. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (FUNCNAME_PATTERN): simplified conditional expression.nobu2009-01-251-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * symbian/README.SYMBIAN: symbian support added. great appreciatematz2009-01-151-0/+14
| | | | | | to <alexandre.zavorine at symbian.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): supplements an extension for executablenobu2008-12-201-10/+53
| | | | | | | | | | | | | | | | | files on DOSish platforms. * io.c (pipe_open): use rb_w32_aspawn() for array form. * win32/win32.c (rb_w32_pipe_exec): no longer used. * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): deals with batch files and commands with extensions. [ruby-core:20695] * win32/win32.c (has_redirection): supports environment variables references. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_load): ditto.usa2008-12-161-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c: Ruby no longer supports VMS.yugui2008-10-041-35/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * error.c: ditto. * eval.c: ditto. * eval_intern.h: ditto. * include/ruby/defines.h: ditto. * include/ruby/ruby.h: ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * vms/config.h: removed. * vms/vms.h: ditto. * vms/vmsruby_private.c: ditto. * vms/vmsruby_private.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c: Ruby no longer supports Windows CE.yugui2008-10-041-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: ditto. * include/ruby/defines.h: ditto. * include/ruby/win32.h: ditto. * ruby.c: ditto. * strftime.c: ditto. * win32/Makefile.sub: ditto. * win32/win32.c: ditto. * ext/tk/extconf.rb: ditto. * lib/fileutils.rb: ditto. * test/fileutils/test_fileutils.rb: ditto. * wince/*: removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c: Ruby no longer supports MacOS 9 or before.yugui2008-10-041-85/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: ditto. * eval_intern.h: ditto. * ext/extmk.rb: ditto. * ext/tk/sample/tkextlib/treectrl/demo.rb: ditto. * ext/tk/stubs.c: ditto. * file.c: ditto. * hash.c: ditto. * include/ruby/defines.h: ditto. * ruby.c: ditto. * signal.c: ditto. * vm_core.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c: Ruby no longer supports MS-DOS.yugui2008-10-041-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * ext/sdbm/_sdbm.c: ditto. * ext/sdbm/sdbm.h: ditto. * gc.c: ditto. * hash.c: ditto. * include/ruby/defines.h: ditto. * include/ruby/util.h: ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * strftime.c: ditto. * util.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * djgpp/GNUmakefile.in: removed. Ruby no longer supports djgpp.yugui2008-10-041-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * djgpp/README.djgpp: ditto. * djgpp/config.hin: ditto. * djgpp/config.sed: ditto. * djgpp/configure.bat: ditto. * djgpp/mkver.sed: ditto. * ext/Setup.dj: ditto. * dln.c: removed djgpp supports. * file.c: ditto. * gc.c: ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * signal.c: ditto. * util.c: ditto. * vm_core.h: ditto. * lib/fileutils.rb: ditto. * lib/mkmf.rb: ditto. * ext/socket/socket.c: ditto. * test/fileutils/test_fileutils.rb: ditto. * test/ruby/test_env.rb: ditto. * test/ruby/test_path.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * x68/_dtos18.c: removed. Ruby no longer supports human68k.yugui2008-10-041-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * x68/_round.c: ditto. * x68/fconvert.c: ditto. * x68/select.c: ditto. * ext/Setup.x68: ditto. * missing/x68.c: ditto. * dln.c (dln_find_exe_r): removed human68k supports. (dln_find_1): ditto. * lib/mkmf.rb: ditto. * ext/extmk.rb (Init_ext): ditto. * ext/socket/socket.c (init_sock): ditto. * gc.c (GC_MALLOC_LIMIT): ditto. (rb_setjmp, rb_jmpbuf): ditto. (mark_current_machine_context): ditto. * include/ruby/defines.h (PATH_ENV): ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * test/ruby/test_env.rb: ditto. * test/ruby/test_path.rb: ditto. * LEGAL git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c: newer BeOS support. a patch from Pete Goodevematz2008-09-191-1/+2
| | | | | | <pete.goodeve at computer.org> in [ruby-core:18712]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (load_lib): use dln_find_file_r instead of dln_find_file.nobu2008-07-281-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.h (dln_find_exe, dln_find_file): deprecated, use reentrantnobu2008-07-271-2/+2
| | | | | | | versions instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c,ko12008-06-081-0/+2
| | | | | | | | | | | | | | | | | | | enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c, io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c, string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c, vm.c, gc.c: allocated memory objects by xmalloc (ruby_xmalloc) should be freed by xfree (ruby_xfree). * ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c, ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c, ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c, ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c, ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_exe_r, dln_find_file_r): reentrant versions.nobu2008-05-071-8/+21
| | | | | | | | | * file.c (rb_find_file_ext, rb_find_file), process.c (proc_exec_v), (rb_proc_exec, proc_spawn_v, proc_spawn), ruby.c (process_options): use reentrant versions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): prior files with extensions to files sansnobu2008-04-241-20/+21
| | | | | | | extensions. [ruby-core:16517] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16177 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
* * encoding.c: provide basic features for M17N.matz2007-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * parse.y: encoding aware parsing. * parse.y (pragma_encoding): encoding specification pragma. * parse.y (rb_intern3): encoding specified symbols. * string.c (rb_str_length): length based on characters. for older behavior, bytesize method added. * string.c (rb_str_index_m): index based on characters. rindex as well. * string.c (succ_char): encoding aware succeeding string. * string.c (rb_str_reverse): reverse based on characters. * string.c (rb_str_inspect): encoding aware string description. * string.c (rb_str_upcase_bang): encoding aware case conversion. downcase, capitalize, swapcase as well. * string.c (rb_str_tr_bang): tr based on characters. delete, squeeze, tr_s, count as well. * string.c (rb_str_split_m): split based on characters. * string.c (rb_str_each_line): encoding aware each_line. * string.c (rb_str_each_char): added. iteration based on characters. * string.c (rb_str_strip_bang): encoding aware whitespace stripping. lstrip, rstrip as well. * string.c (rb_str_justify): encoding aware justifying (ljust, rjust, center). * string.c (str_encoding): get encoding attribute from a string. * re.c (rb_reg_initialize): encoding aware regular expression * sprintf.c (rb_str_format): formatting (i.e. length count) based on characters. * io.c (rb_io_getc): getc to return one-character string. for older behavior, getbyte method added. * ext/stringio/stringio.c (strio_getc): ditto. * io.c (rb_io_ungetc): allow pushing arbitrary string at the current reading point. * ext/stringio/stringio.c (strio_ungetc): ditto. * ext/strscan/strscan.c: encoding support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (load_1, dln_find_1): constified.nobu2007-07-261-2/+2
| | | | | | | * ruby.c (usage): constified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (conv_to_posix_path): removed.nobu2007-07-261-26/+0
| | | | | | | | | | | | | * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): return VALUE instead of a pointer to static buffer. * ruby.c (push_include_cygwin): fixed buffer overflow. [ruby-dev:31297] * ruby.c (ruby_init_loadpath): not convert built-in paths. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby: moved public headers.nobu2007-06-101-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c: use dlopen on Mac OS X 10.3 or later.aamine2007-02-231-5/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ansificated.akr2006-08-131-57/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c, eval.c, gc.c, ruby.h: shut up AIX alloca warning.matz2006-08-071-4/+0
| | | | | | | [ruby-dev:29191] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, dln.c, file.c, intern.h, missing.h (eaccess): usenobu2006-01-251-2/+0
| | | | | | | system routine if provided. fixed: [ruby-core:07195] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (conv_to_posix_path): should initialize posix.eban2005-11-261-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c: avoid warning of const to non-const convertion.ocean2005-09-121-14/+16
| | | | | | | | | [ruby-dev:27041] * eval.c, io.c, ruby.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: moved to ANSI function style from K&R function style.ocean2005-09-121-18/+8
| | | | | | | | | | | | | | | | | (used protoize on windows, so still K&R remains on #ifdef part of other platforms. And `foo _((boo))' stuff is still there) [ruby-dev:26975] * bignum.c, class.c, compar.c, dir.c, dln.c, dmyext.c, enum.c, enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c, main.c, marshal.c, math.c, numeric.c, object.c, pack.c, prec.c, process.c, random.c, range.c, re.c, regcomp.c, regenc.c, regerror.c, regexec.c, regparse.c, regparse.h, ruby.c, signal.c, sprintf.c, st.c, string.c, struct.c, time.c, util.h, variable.c, version.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (trap): remove sigexit(); handle "EXIT" via sig_exec().matz2005-07-191-2/+3
| | | | | | | | | | [ruby-dev:26440] * io.c (rb_io_inspect): replace sprintf() with "%s" format all over the place by snprintf() to avoid integer overflow. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk: miniruby depens on MINIOBJS.nobu2005-04-201-0/+10
| | | | | | | | | | * dmydln.c (dln_load): dummy function to raise LoadError. * cygwin/GNUmakefile.in, {bcc32,win32,wince}/Makefile.sub: miniruby can't load extensions on Windows. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e