naruse
e662770dc9
* ext/json/ext/generator/generator.c: Documention patch by okkez.
...
[Bug #2075 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-26 20:37:06 +00:00
nobu
39ea1c8c7c
* ext/bigdecimal/lib/bigdecimal/math.rb (atan): atan(Infinity) is
...
PI/2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 17:21:26 +00:00
nobu
1ef3ac4738
* ext/bigdecimal/lib/bigdecimal/math.rb (atan): reduce loop with
...
the formula of the double corner. based on a patch from
Masahiro Kanai (CanI) in [ruby-dev:39367].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 17:08:37 +00:00
nobu
8c3926aea0
* ext/bigdecimal/lib/bigdecimal/math.rb (atan): refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 12:25:20 +00:00
nobu
2c34b66e24
* ext/bigdecimal/lib/bigdecimal/{ludcmp,math}.rb: depend on
...
bigdecimal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 20:04:10 +00:00
nobu
51132a8ad9
* ext/bigdecimal/lib/bigdecimal/newton.rb: rdoc needs to be
...
followed by the definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 20:00:21 +00:00
nobu
c1f1b452cb
* ext/bigdecimal/lib/bigdecimal/*.rb: made module functions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 19:56:20 +00:00
nobu
178dafefa9
* ext/bigdecimal/lib/*.rb: fixed indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 19:49:32 +00:00
nobu
d9bfa822ea
* ext/bigdecimal/bigdecimal.c (GetVpValue): support conversion from
...
Rational. [ruby-core:25697]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 19:47:39 +00:00
marcandre
52999632d7
* ext/bigdecimal/bigdecimal.c (BigDecimal_remainder): Doc fix [ruby-core:18796]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 17:42:37 +00:00
marcandre
ae86e15230
* ossl_ocsp.c (ossl_ocspres_to_der): Bug fix in Response#to_def. Patch by Chris Chandler [ruby-core:18411]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 16:13:35 +00:00
marcandre
cf69eeab9c
* ossl_config.c (ossl_config_add_value_m, ossl_config_set_section): Check if frozen (or untrusted for $SECURE >= 4) [ruby-core:18377]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 16:12:46 +00:00
nobu
cd4f59bc5e
* ext/bigdecimal/lib/bigdecimal/math.rb (sin, cos, atan, exp, log):
...
improved precision and performance. based on a patch from Makoto
Yamashita in [ruby-core:25600] and [ruby-core:25602].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-20 15:07:38 +00:00
suke
476a0355db
* ext/win32ole/win32ole.c (oletypelib_get_libattr): some refactoring
...
by adding oletypelib_get_libattr
-This line, and those below, will be ignored--
M ChangeLog
M ext/win32ole/win32ole.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 12:28:00 +00:00
suke
6f0b0701d0
* ext/win32ole/win32ole.c (oletypelib_get_typelib): some refactoring
...
by adding oletypelib_get_typelib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 11:58:52 +00:00
suke
1c75c0e28c
ext/win32ole/win32ole.c: some refactoring.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 10:42:24 +00:00
suke
831396217a
* ext/win32ole/win32ole.c: fix WIN32OLE_TYPELIB.new when the 1st
...
argument is the non-registered file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 23:36:29 +00:00
nobu
a4fbd748e2
* configure.in (GCC): subst for GCC depending extension libraries.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 08:31:44 +00:00
suke
488aa8307d
* ext/win32ole/win32ole.c (EVENTSINK_Invoke): initialize result
...
variant value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-11 22:55:47 +00:00
nobu
7bac09fc26
* ext/bigdecimal/bigdecimal.c (BigDecimal_data_type): typed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 12:20:51 +00:00
nobu
c754c0b237
* ext/dl/cfunc.c (dlcfunc_data_type): typed.
...
* ext/dl/cptr.c (dlptr_data_type): ditto.
* ext/dl/handle.c (dlhandle_data_type): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 12:19:28 +00:00
takano32
bc664b878c
Wed Sep 9 15:24:32 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
...
* include/ruby/st.h : revert previous commit.
* ext/objspace/objspace.c : remove st_memsize declare.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 06:27:35 +00:00
naruse
d17fe8a467
NaN is now 0.0/0 because of 1.8/1.9 compat.
...
* ext/json/lib/json/common.rb (NaN): Change definition
of NaN to 0.0/0 for 1.8/1.9 compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-01 17:35:30 +00:00
naruse
c719ecb535
* ext/json: Update to JSON 1.1.9.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-01 16:17:56 +00:00
naruse
80918e2ac9
* ext/zlib/zlib.c (gzfile_read_all): use gzfile_newstr;
...
set and convert its encoding. [ruby-dev:38304]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-29 16:17:26 +00:00
suke
83c5ebaecb
* ext/win32ole/win32ole.c: use SafeStringValue instead of
...
Check_SafeStr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 11:38:57 +00:00
nobu
2ef382231f
* ext/strscan/strscan.c (strscan_set_string): set string should not be
...
dupped or frozen, because freezing it causes #concat method failure,
and unnecessary to dup without freezing. a patch from Aaron
Patterson at [ruby-core:25145].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 23:16:40 +00:00
akr
97ed18f1da
YAML parser don't need identity hash.
...
revert the part of previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-22 06:23:48 +00:00
akr
dfc3fccef3
* ext/syck/rubyext.c (id_hash_new): new function to create a hash
...
which key is compared by object id.
(syck_parser_load): use id_hash_new for bonus->data.
(syck_parser_load_documents): ditto.
(syck_emitter_reset): ditto.
* lib/yaml.rb (YAML.quick_emit): give the object itself to eimitter.
don't use object_id and hash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-22 04:52:09 +00:00
naruse
7510468707
use rl_prep_terminal only on Windows. [ruby-core:25009]
...
* ext/readline/readline.c (readline_readline): use rb_prep_terminal
only on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-21 06:04:21 +00:00
naruse
681754c29d
Fix: change terminal's size on Widows when the window size is changed
...
* ext/readline/readline.c (readline_get): add rl_prep_terminal(1).
insited by jitte [ruby-list:43546]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-20 05:44:28 +00:00
nobu
19b24f499b
* include/ruby/ruby.h (rb_check_safe_str): deprecated.
...
* ext/openssl/ossl_x509store.c (ossl_x509store_add_{file,path}):
replaced deprecated funtion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 11:03:22 +00:00
nobu
69f1e595bf
* ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): faster
...
code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 07:28:26 +00:00
usa
f73eaeb3a6
* ext/socket/extconf.rb: if ipv6 is enabled, the version of Windows
...
most be XP or later.
[ruby-core:24601]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 12:10:10 +00:00
nagai
979ac967a9
* ext/tk/extconf.rb (search_tclConfig): last change isn't enough. fixed it.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 12:24:55 +00:00
nobu
28f00681ca
* ext/ripper/eventids2.c (token_to_eventid): added
...
keyword_do_LAMBDA. [ruby-dev:39049]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 22:25:11 +00:00
knu
04cad34c2f
* ext/digest/sha2/sha2.c: The ULL suffix is not supported by
...
pre-C99 compilers, so resurrect the ULL() macro to regain
portability. [ruby-dev:39032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:51:37 +00:00
knu
43b2e3be9a
* ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be
...
checked here. [ruby-dev:39032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:36:54 +00:00
nagai
833b354578
* ext/tk/extconf.rb (search_tclConfig): fix logic bug.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:07:11 +00:00
usa
e97f1270b5
* ext/digest/sha2/lib/sha2.eb: should require sha2.so.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 12:18:38 +00:00
usa
2bfa64d0b8
* ext/digest/sha2/sha2.c (*_Final): typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 12:12:32 +00:00
knu
7fdaba27ca
* ext/digest/sha2/sha2.h (BYTE_ORDER): Define BYTE_ORDER as
...
necessary. [ruby-dev:39029]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 10:49:05 +00:00
knu
d427b8a8ee
* ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
...
off-by-one bug in SHA-256 hashing. Reduce differences from
the original while at it. [Bug #1799 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 16:40:33 +00:00
nagai
4293a98596
* ext/tk/lib/tcltklib.c: fix trouble on old-style C function
...
declarations [ruby-core:22871].
* ext/tk/lib/tcltklib.c: (ruby_1_8) fix warning about RUBY_RELEASE_DATE
* ext/tk/lib/tk/multi-tk.rb: kill zombie threads.
* ext/tk/lib/tk/fontchooser.rb: fix typo and support OptionObj.
* ext/tk/lib/tk/canvas.rb, ext/tk/lib/tk/virtevent.rb,
ext/tk/lib/tk/image.rb, , ext/tk/lib/tk/timer.rb: create unnecessary array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-03 19:01:03 +00:00
matz
edf05962c0
* ext/json/lib/json/common.rb (JSON#recurse_proc): remove
...
unnecessary private specifier. [ruby-dev:38929]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-28 18:40:17 +00:00
nagai
8e7e28f15c
* ext/tk/lib/extconf.rb: bug fix and ignore invalid Tcl/Tk libraries.
...
* ext/tk/lib/config_list.in: bug fix and add a new option.
* ext/tk/lib/README.tcltklib: update for a new option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-27 19:40:43 +00:00
azav
a34dc9dc14
* ext/bigdecimal.c: moved BASE_FIG definition before it is used first time.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-25 15:18:37 +00:00
nagai
dac591d01b
* ext/tk/extconf.rb: should not create "config_list" in a $srcdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-23 08:28:49 +00:00
usa
9d43aefe92
* ext/socket/extconf.rb: define IPPROTO_IPV6 macro for recent Windows
...
SDK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-22 11:43:32 +00:00
usa
82041cfdec
* ext/socket/mkconstants.rb: define IPV6_* constants only when INET6
...
is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-22 10:32:51 +00:00