aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* * random.c (rb_genrand_ulong_limited): renamed fromnaruse2010-09-101-0/+1
| | | | | | | | | | rb_rand_internal and now this is public API. * include/ruby/ruby.h (rb_genrand_ulong_limited): added. * bignum.c (big_sparse_p): use rb_genrand_ulong_limited. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/version.h (RUBY_API_VERSION_*): renamed and movednobu2010-08-231-0/+7
| | | | | | | | from version.h. [ruby-dev:42103] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64.akr2010-08-221-1/+1
| | | | | | | reported by Daniel Gutmanas. [ruby-core:31778] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_gc_mark_threads): deprecated.nobu2010-08-141-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, include/ruby/defines.h (RUBY_FUNC_EXPORTED): macronobu2010-08-141-0/+4
| | | | | | | | | | | to declare exported function. * array.c (rb_ary_memsize), string.c (rb_str_memsize), variable.c (rb_objspace_data_type_memsize): used in objspace. [ruby-dev:42022] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_time_interval): used in io/wait.nobu2010-08-141-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_make_backtrace, rb_make_exception):nobu2010-08-141-0/+2
| | | | | | | | | used in ripper. * node.h (rb_parser_{malloc,realloc,calloc,free}): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (rb_char_to_option_kcode): used innobu2010-08-111-0/+2
| | | | | | | | | ripper. * node.h (rb_reserved_word): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/missing.h, include/ruby/ruby.h (namespace ruby):nobu2010-08-071-1/+1
| | | | | | get rid of name clash on C++. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/subst.h (snprintf): redefinition moved from ruby.h.akr2010-08-072-4/+5
| | | | | | | (vsnprintf): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/subst.h: new file for substitute standard functions..akr2010-08-073-8/+19
| | | | | | | | | | | * include/ruby/missing.h: don't substitute "close", etc. here. * include/ruby/ruby.h: include ruby/subst.h at last. This prevents substituting "close" in unitstd.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/missing.h: moved BROKEN_CLOSE replacements fromnobu2010-08-072-11/+8
| | | | | | | include/ruby/ruby.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_check_hash_type): added.nobu2010-08-031-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h: latest x86_64 mingw defines stati64.nobu2010-08-011-0/+2
| | | | | | | [ruby-core:27516] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_add_suffix): fixed a bug returning uninitializednobu2010-07-291-0/+2
| | | | | | | value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): VC6 or later have stddef.h.usa2010-07-281-0/+6
| | | | | | | | | | * include/ruby/missing.h: need to include stddef.h for size_t. * include/ruby/missing.h: shouldn't declare as dllimport when building ruby itself (for Windows). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * defines.h, intern.h, missing.h, ruby.h, st.h, util.h: includenobu2010-07-276-8/+20
| | | | | | | config.h and defines.h for autoconf macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/missing.h: revert a part of r28727. config.h is expectedusa2010-07-261-2/+0
| | | | | | | | to include only once, before including defines.h. including it here breaks some macro definitions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: define BROKEN_CLOSE on FreeBSD.naruse2010-07-262-2/+2
| | | | | | | | | This fixes build failure on MSVC. [ruby-core:31481] * include/ruby/ruby.h, include/ruby/missing.h: use BROKEN_CLOSE for replacing close(2). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (XCFLAGS): reverted mistakenly removed option.nobu2010-07-231-0/+2
| | | | | | | | [ruby-dev:41872] * include/ruby/missing.h: needs ruby/config.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/missing.h: add prototype for ruby_close().naruse2010-07-221-0/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/{intern,io}.h: add missing prototypes.nobu2010-07-222-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (XCFLAGS): use -fvisibility=hidden if possible.nobu2010-07-2114-0/+115
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (RSTRING_GETMEM): new macro to get ptr andnobu2010-07-201-5/+9
| | | | | | | | len at once. * string.c (rb_str_cmp, str_eql, rb_str_eql): trivial improvements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (rb_data_type_t): add new feature macros.nobu2010-07-181-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (rb_data_type_t): restructured. [ruby-dev:41862]nobu2010-07-181-7/+13
| | | | | | | | add parent member. * error.c (rb_typeddata_inherited_p): new function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_wakeup_alive): split from rb_thread_wakeup.nobu2010-07-171-0/+1
| | | | | | merged from r13476. c.f. [ruby-core:31320] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (rb_cRandom): added.mrkn2010-07-111-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * missing/close.c: ignore ECONNRESET.naruse2010-07-071-0/+11
| | | | | | | | | FreeBSD wrongly sets ECONNRESET on close(2) and it causes false-negative exceptions. [ruby-dev:41778] * configure.in: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/io.h, io.c: reverted r21709.nobu2010-06-271-1/+0
| | | | | | | | * ruby.c (load_file_internal): nothing to read if EOF reached while reading shebang. [ruby-core:30910] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (static inline rb_gc_guarded_ptr): preventtarui2010-06-241-0/+6
| | | | | | | RB_GC_GUARD_PTR being removed by optimization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/missing.h (isnan): fix compilation error on OpenBSD.akr2010-06-111-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (rb_filesystem_encindex): defined.naruse2010-05-271-0/+2
| | | | | | | | | | * include/ruby/encoding.h (rb_locale_encindex): ditto. * encoding.c (rb_filesystem_encindex): remove static. * encoding.c (rb_locale_encindex): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/vm.h, include/ruby/encoding.h: add externalnobu2010-05-252-0/+28
| | | | | | | linkage. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (CONST_ID_CACHE, rb_intern_const): suppressnobu2010-05-231-3/+3
| | | | | | warnings with -Wconversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (warnflags): add -pedantic if gcc.nobu2010-05-211-1/+1
| | | | | | | * include/ruby/ruby.h (rb_intern): C90 needs nonempty macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/missing.h (signbit): add missing prototype.nobu2010-05-161-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_quad_pack): deprecated.akr2010-05-121-2/+2
| | | | | | | (rb_quad_unpack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (rb_big_abs_find_minbit): use ffs().akr2010-05-121-0/+4
| | | | | | | | | | | | * configure.in: check ffs(). * missing/ffs.c: new file. * include/ruby/missing.h (ffs): declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c, include/ruby/win32.h (rb_w32_has_cancel_io): newusa2010-05-101-0/+1
| | | | | | | | | function. * io.c (WAIT_FD_IN_WIN32): check only when it's not cancelable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (RB_GC_GUARD_PTR): get rid of removal bynobu2010-05-091-1/+2
| | | | | | | optimization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h (rb_w32_uchdir): missing prototype.nobu2010-05-041-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * merge some patches from win32-uncode-test branch.usa2010-04-302-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | see #1685. * file.c, include/ruby/intern.h (rb_str_encode_ospath): new function to convert encoding for pathname. * win32.c, include/ruby/win32.h (rb_w32_ulink, rb_w32_urename, rb_w32_ustati64, rb_w32_uopen, rb_w32_uutime, rb_w32_uchdir, rb_w32_umkdir, rb_w32_urmdir, rb_w32_uunlink): new functions to accept UTF-8 path. * win32/win32.c (rb_w32_opendir, link, rb_w32_stati64, rb_w32_utime, rb_w32_unlink): use WCHAR path internally. * file.c (rb_stat, eaccess, access_internal, rb_file_s_ftype, chmod_internal, rb_file_chmod, rb_file_chown, utime_internal, rb_file_s_link, unlink_internal, rb_file_s_rename): use UTF-8 version functions on Win32. * file.c (apply2files, rb_stat, rb_file_s_lstat, rb_file_symlink_p, rb_file_readable_p, rb_file_writable_p, rb_file_executable_p, check3rdbyte, rb_file_identical_p, rb_file_chmod, rb_file_chown, rb_file_s_link, rb_file_s_symlink, rb_file_s_rename): call rb_str_encode_ospath() before passing the path to system. * io.c (rb_sysopen): ditto. * dir.c (dir_chdir, dir_s_mkdir, dir_s_rmdir): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h ({RSTRING,RSTRUCT,RBIGNUM}_LENINT): check longnobu2010-04-281-18/+21
| | | | | | | to cast to int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h (ftruncate): rename to get rid of conflictnobu2010-04-111-0/+1
| | | | | | | with same name but non-LFS function on MinGW. [ruby-core:24757] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h: include errno.h before defining errnos.usa2010-04-081-0/+2
| | | | | | | see [ruby-core:29314] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h: check definition existance before definingusa2010-04-061-37/+105
| | | | | | | | | | errno macros. * win32/win32.c (errmap): define winsock errors mappings. these are VC++10 support. see [ruby-core:29278] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h, win32/win32.c (EWOULDBLOCK): VC10 alreadyusa2010-04-051-0/+2
| | | | | | | | defined EWOULDBLOCK. based on a patch from Charlie Savage, see [ruby-core:29255] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: replace snprintf and vsnprintf bynaruse2010-04-042-16/+8
| | | | | | | | | | | | | | | | | | | | ruby_snprintf and ruby_vsnprintf. [ruby-dev:40909] * configure.in: don't check snprintf(3) and vsnprintf(3). * include/ruby/missing.h: don't delare snprintf and vsnprintf. * include/ruby/ruby.h: include stdarg.h. * sprintf.c: include vsnprintf.c * vsnprintf.c: renamed from missing/vsnprintf.c. * vsnprintf.c: remove useless ifdefs. * win32/mkexports.rb: use ruby_snprintf and ruby_vsnprintf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (InitVM): calls per-VM initialization innobu2010-04-011-0/+2
| | | | | | | single VM, but does nothing in MVM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e