nobu
a69c74be72
struct.c: hide member names
...
* struct.c (rb_struct_define_without_accessor, rb_struct_define),
(rb_struct_s_def): hide member names array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-13 01:20:39 +00:00
nobu
5e5690781c
struct.c: split make_struct
...
* struct.c (anonymous_struct, new_struct, setup_struct): split
make_struct() for each purpose.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-13 01:20:34 +00:00
akr
b47138580c
* lib/mkmf.rb: Add ruby/ruby.h, ruby/missing.h, ruby/intern.h,
...
ruby/st.h and ruby/subst.h for ruby_headers in generated Makefile.
* ext/-test-/old_thread_select/depend: Update dependencies.
* ext/-test-/wait_for_single_fd/depend: Ditto.
* ext/bigdecimal/depend: Ditto.
* ext/curses/depend: Ditto.
* ext/digest/bubblebabble/depend: Ditto.
* ext/digest/depend: Ditto.
* ext/digest/md5/depend: Ditto.
* ext/digest/rmd160/depend: Ditto.
* ext/digest/sha1/depend: Ditto.
* ext/digest/sha2/depend: Ditto.
* ext/dl/callback/depend: Ditto.
* ext/dl/depend: Ditto.
* ext/etc/depend: Ditto.
* ext/nkf/depend: Ditto.
* ext/objspace/depend: Ditto.
* ext/pty/depend: Ditto.
* ext/readline/depend: Ditto.
* ext/ripper/depend: Ditto.
* ext/sdbm/depend: Ditto.
* ext/socket/depend: Ditto.
* ext/stringio/depend: Ditto.
* ext/strscan/depend: Ditto.
* ext/syslog/depend: Ditto.
* ext/-test-/num2int/depend: Removed.
* ext/dbm/depend: Ditto.
* ext/fcntl/depend: Ditto.
* ext/gdbm/depend: Ditto.
* ext/racc/cparse/depend: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-13 00:46:29 +00:00
nobu
6e9c02515d
* ext/etc/etc.c: fix struct name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-12 15:23:22 +00:00
svn
1657cbab0d
* 2013-04-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-12 15:16:07 +00:00
nobu
1e4b2f9bd1
etc.c: Etc namespace
...
* ext/etc/etc.c (Init_etc): move Passwd and Group under Etc namespace
as primary names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-12 15:16:00 +00:00
akr
3033b3ae2f
* common.mk: pack.o depends on internal.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-12 12:07:27 +00:00
akr
16a2acca20
* bignum.c (ones): Use __builtin_popcountl if available.
...
* internal.h (GCC_VERSION_SINCE): Macro moved from pack.c.
* pack.c: Include internal.h for GCC_VERSION_SINCE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-12 12:01:51 +00:00
akr
3da834800e
* common.mk: version.o depends on $(srcdir)/include/ruby/version.h
...
instead of {$(VPATH)}version.h to avoid confusion by VPATH between
top level version.h and include/ruby/version.h for build in-place.
[ruby-dev:47249] [Bug #8256 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-12 09:42:06 +00:00
nobu
2674f9a815
vm_insnhelper.c: non-symbol key
...
* vm_insnhelper.c (vm_callee_setup_keyword_arg): non-symbol key is not
a keyword argument, keep it as an positional argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-12 06:21:35 +00:00
zzak
9ef4e13459
* array.c: Document synonymous methods, by windwiny [GH-277]
...
* bignum.c: ditto
* complex.c: ditto
* dir.c: ditto
* encoding.c: ditto
* enumerator.c: ditto
* numeric.c: ditto
* proc.c: ditto
* re.c: ditto
* string.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-12 02:59:07 +00:00
kazu
c37d5e7c77
fix typos
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-12 00:32:17 +00:00
zzak
af4c2b3b4b
fix typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 16:47:49 +00:00
svn
4a1b95ca7a
* 2013-04-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 15:52:46 +00:00
naruse
89bda514c2
Fix typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 15:52:41 +00:00
akr
96d811efac
* common.mk: Add dependencies for include/ruby.h
...
* tool/update-deps: Use "make -p all miniruby ruby golf" to extract
deendencies in makefiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 14:42:33 +00:00
xibbar
656abe3920
* lib/cgi/html.rb: remove 'super {yield}' which is for old version.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 14:27:44 +00:00
xibbar
ce100d3690
* lib/cgi/html.rb: fix indent. delete unnecessary code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 14:27:40 +00:00
akr
639356eacd
* tool/update-deps: Use "make -p all golf" to extract deendencies in
...
makefiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 14:22:04 +00:00
xibbar
bf4739ffdc
* lib/cgi/html.rb: fix tagmaker because attributes should recognize.
...
[Bug #8252 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 13:23:01 +00:00
xibbar
3e84b2204a
* test/ruby/test_regexp.rb: use require_relative to require local library
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 13:22:58 +00:00
akr
28c8e57ca4
* common.mk: Dependency updated.
...
* tool/update-deps: Rewritten.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 12:03:23 +00:00
naruse
c0c86b55a8
* common.mk: partially revert r40183, which breaks building on
...
other than source directory. (its commit log also says the same
thing, but such failure is not reproducible on my environment
and the commit breaks build on my environment)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 11:03:21 +00:00
hsbt
91d5cda26d
Fix return value in example by @rkh [fix GH-284]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 09:32:42 +00:00
xibbar
f75da76ffc
* lib/cgi/{core,html}.rb : Update define tagmaker
...
because to delete eval.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 08:04:27 +00:00
naruse
3ae53e4943
Fix if-end
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 07:53:26 +00:00
usa
83e951d8c0
* test/dl/test_base.rb: typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 07:51:54 +00:00
naruse
cddd37aae2
* ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): define 0 on
...
Mac OS X and Linux [Bug #3371 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 07:10:39 +00:00
naruse
91fe36e99a
Experimental fix for ffi_closure_free causes dumping core/SEGV
...
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20130411T041301Z.log.html.gz#test%2F-ext-
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 06:35:43 +00:00
usa
13fb747c37
* test/drb/drbtest.rb (Drb{Core,Ary}#teardown): retry Process.kill
...
if it fails with Errno::EPERM on Windows (workaround).
[ruby-dev:47245] [Bug #8251 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 04:21:34 +00:00
knu
43c93dbdd9
* dir.c: Fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 02:12:15 +00:00
naruse
c0e0a684d7
* ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): add missing case:
...
RUBY_LIBFFI_MODVERSION is not defined (usually on Windows).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 01:40:11 +00:00
nobu
09d4be59b5
mkmf.rb: suppress warnings
...
* lib/mkmf.rb (try_func, try_var, scalar_ptr_type, scalar_type):
suppress implicit-function-declaration warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 01:11:27 +00:00
zzak
0daf538ab4
* dir.c (file_s_fnmatch): Document File::FNM_EXTGLOB flag.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 00:27:39 +00:00
zzak
af86927486
* README: Fix typo by Benjamin Winkler [Fixes GH-281]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-11 00:18:05 +00:00
naruse
dad98e5798
Explictly flush stdio
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 21:59:13 +00:00
naruse
29f347af11
* regint.h: fix typo: _M_AMD86 -> _M_AMD64.
...
* siphash.c: ditto.
* st.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 21:16:44 +00:00
naruse
a0f7f29215
* ext/fiddle/extconf.rb: define RUBY_LIBFFI_MODVERSION macro.
...
* ext/fiddle/closure.c (USE_FFI_CLOSURE_ALLOC): define 0 or 1
with platform and libffi's version. [Bug #3371 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 21:15:37 +00:00
naruse
c607493e48
* lib/mkmf.rb (pkg_config): Add optional argument "option".
...
If it is given, it returns the result of
`pkg-config --<option> <pkgname>`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 21:15:32 +00:00
svn
e79d4b363c
* 2013-04-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 18:35:26 +00:00
naruse
2570f838da
* ext/fiddle/closure.c (initialize): check mprotect's return value.
...
If mprotect is failed because of PaX or something, its function call
will cause SEGV.
http://c5664.rubyci.org/~chkbuild/ruby-trunk/log/20130401T210301Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 18:35:21 +00:00
akr
3f9e0e43c3
* ext/bigdecimal/bigdecimal.c (VpCtoV): Initialize a local variable
...
even when overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 08:39:53 +00:00
akr
fa9b5bf223
* bignum.c (rb_ll2big): Don't overflow on signed integer negation.
...
* ext/bigdecimal/bigdecimal.c (MUL_OVERFLOW_SIGNED_VALUE_P): New
macro.
(AddExponent): Don't overflow on signed integer multiplication.
(VpCtoV): Don't overflow on signed integer arithmetic.
(VpCtoV): Don't overflow on signed integer arithmetic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 03:34:38 +00:00
nobu
ea16ec561f
parse.y: mrhs_arg
...
* parse.y (mrhs_arg): reduce duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 02:38:29 +00:00
kazu
5cbf827a2e
fix a typo and indent with tab instead of spaces
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-10 02:10:07 +00:00
akr
1acc9062bc
Refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-09 22:47:51 +00:00
svn
164e04ba4a
* 2013-04-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-09 21:37:09 +00:00
akr
e699df95d0
* internal.h (MUL_OVERFLOW_INT_P): New macro.
...
* sprintf.c (GETNUM): Don't overflow on signed integer multiplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-09 21:37:04 +00:00
akr
712c7168bf
* internal.h (MUL_OVERFLOW_SIGNED_INTEGER_P): New macro.
...
(MUL_OVERFLOW_FIXNUM_P): Ditto.
(MUL_OVERFLOW_LONG_P): Ditto.
* array.c (rb_ary_product): Don't overflow on signed integer
multiplication.
* numeric.c (fix_mul): Ditto.
(int_pow): Ditto.
* rational.c (f_imul): Ditto.
* insns.def (opt_mult): Ditto.
* thread.c (sleep_timeval): Don't overflow on signed integer addition.
* bignum.c (rb_int2big): Don't overflow on signed integer negation.
(rb_big2ulong): Ditto.
(rb_big2long): Ditto.
(rb_big2ull): Ditto.
(rb_big2ll): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-09 11:39:53 +00:00
akr
4329b14cfb
* lib/open-uri.rb: Support multiple fields with same field
...
name (like Set-Cookie).
(OpenURI::Meta#metas): New accessor to obtain fields as a Hash from
field name (string) to field values (array of strings).
[ruby-core:37734] [Bug #4964 ] reported by ren li.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-09 10:53:41 +00:00