nobu
a8bfa9bdf1
use system crypt
...
* configure.in: revert r55237. replace crypt, not crypt_r, and
check if crypt is broken more.
* missing/crypt.c: move crypt_r.c
* string.c (rb_str_crypt): use crypt_r if provided by the system.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 06:58:21 +00:00
nobu
1258bc559b
des_tables.c
...
* missing/crypt_r.c: initialize DES tables statically.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 06:05:21 +00:00
nobu
9cfc17a210
crypt_r.c: fix out of bounds access
...
* missing/crypt_r.c (a64toi): initialize statically and fix out of
bounds access when salt is not 7bit clean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 05:07:55 +00:00
nobu
2a27b6c851
crypt_r.c: DES tables
...
* missing/crypt_r.c (des_tables): move sharable DES constant
tables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 05:00:55 +00:00
nobu
bc6db9a585
crypt_r.c: remove casts
...
* missing/crypt_r.c: consitify and remove unnecessary pointer
casts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 04:20:40 +00:00
nobu
6593e0fe54
crypt_r.c: adjust style
...
* missing/crypt_r.c: adjust style to BSD as the original.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 00:52:59 +00:00
nobu
3c31685e11
use crypt_r
...
* string.c (rb_str_crypt): use reentrant crypt_r.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 00:48:08 +00:00
usa
6cc652a23d
* missing/crypt.c (des_setkey): void function never returns any value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 00:37:54 +00:00
nobu
e1d49beb5d
separate crypt.h
...
* crypt.h: separate header file from missing/crypt.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 00:16:24 +00:00
nobu
49895f21a6
add crypt_r
...
* missing/crypt.c (crypt_r, setkey_r, encrypt_r): add reentrant
versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-01 00:14:32 +00:00
nobu
7e053ffeb6
crypt.c: fix size macros
...
* missing/crypt.c: fix size macros to use configured values
for platforms long is larger than 32bit.
[ruby-core:75792] [Bug #12446 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-31 17:25:40 +00:00
nobu
4cec7e8e35
crypt.c: protoize
...
* missing/crypt.c: protoize function definitions and make
always-zero functions void.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-31 16:49:32 +00:00
nobu
ccea383a58
crypt.c: constify
...
* missing/crypt.c: constify Standard DES Tables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-31 16:49:30 +00:00
nobu
39330d6b79
lgamma_r.c: fix at -0.0
...
* math.c (ruby_lgamma_r): missing/lgamma_r.c is used on Windows,
since msvcrt does not provide it.
* missing/lgamma_r.c (lgamma_r): fix lgamma(-0.0).
[ruby-core:74823] [Bug #12249 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-06 01:17:55 +00:00
nobu
09bdb7913c
missing.h: remove explicit_bzero_by_memset_s
...
* include/ruby/missing.h (explicit_bzero_by_memset_s): remove
inline implementation by memset_s, which needs a macro before
including headers and can cause problems in extension libraries
by the order of the macro and headers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-01-10 06:45:36 +00:00
nobu
97fe401413
explicit_bzero.c: fix typos
...
* missing/explicit_bzero.c (explicit_bzero): fix typos, probably.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-02 02:36:58 +00:00
nobu
9849555a3e
explicit_bzero.c: fix comments
...
* missing/explicit_bzero.c: fix comments. Microsoft Visual Studio
does not provide memset_s() in 12.0 at least.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-02 00:55:50 +00:00
naruse
bb5bd52a59
undef for tha case missing.h defines it as macro
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-02 00:03:51 +00:00
normal
fd8f7848b4
missing/explicit_bzero.c (explicit_bzero): fixup r52839
...
...for compilers with "weak" attribute.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-01 22:42:00 +00:00
kosaki
48de9684b9
* missing/explicit_bzero.c: add ruby_explicit_bzero_hook_unused
...
for preventing optimization. Inspired from OpenBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-01 21:52:02 +00:00
nobu
24dcb1285d
explicit_bzero.c: needs windows.h
...
* missing/explicit_bzero.c, random.c (explicit_bzero):
SecureZeroMemory() needs windows.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-01 03:52:20 +00:00
nobu
10bb9e6fab
missing.h: explicit_bzero by memset_s
...
* include/ruby/missing.h (explicit_bzero_by_memset_s): call
memset_s directly if available.
* missing/explicit_bzero.c: optimization is not a matter if
memset_s is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-01 01:24:23 +00:00
nobu
ff113d52f7
configure.in: FUNC_UNOPTIMIZED
...
* configure.in: check if optimize pragma is supported.
* include/ruby/defines.h (FUNC_UNOPTIMIZED): fallback definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-01 01:05:48 +00:00
kosaki
586c174922
* missing/explicit_bzero.c: add a few comment.
...
* missing/explicit_bzero.c: add disabling optimization on gcc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-01 00:35:59 +00:00
kosaki
ed0858a8c5
fix r52806
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-01 00:07:21 +00:00
normal
cae8e96bf5
missing/explicit_bzero.c: Fixup r52806
...
Maybe kosaki had a better version, but CI failure emails are
annoying.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-30 22:53:21 +00:00
kosaki
4ad2057f27
* ChangeLog: Good-bye OS/2.
...
* common.mk: ditto.
* configure.in: ditto.
* dln_find.c: ditto.
* ext/Setup.emx: ditto.
* ext/extmk.rb: ditto.
* ext/socket/extconf.rb: ditto.
* ext/zlib/extconf.rb: ditto.
* file.c: ditto.
* include/ruby/defines.h: ditto.
* io.c: ditto.
* lib/mkmf.rb: ditto.
* missing/os2.c: ditto.
* process.c: ditto.
* ruby.c: ditto.
* NEWS: announce OS/2 is no longer supported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-10-18 01:18:34 +00:00
odaira
f3754f57cb
missing/setproctitle.c: Avoid invalidating argv[1], argv[2], etc. until the first call to Process.setproctitle, because the ps command of AIX refers to the argv array. [Bug #10090 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-08 22:31:53 +00:00
akr
8f2631e0cd
* missing/nextafter.c: Include ruby/missing.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 03:03:26 +00:00
akr
63fee73500
* configure.in: Check nextafter() availability.
...
* include/ruby/missing.h (nextafter): New optional declaration.
* missing/nextafter.c: New file.
* numeric.c: Float#next_float and Float#prev_float implemented.
[ruby-core:62562] [Feature #9834 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 00:37:10 +00:00
ktsj
edb98f8b91
fix typos. Patch by k_takata.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-19 03:10:21 +00:00
akr
bac8fa5f9d
* missing/isnan.c (isnan): Don't define if isnan() macro is defined.
...
This fixes a compilation failure on uClibc based Gentoo system.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-23 11:27:07 +00:00
charliesome
af35f2a61d
* configure.in: check for the whether crt_externs.h is present when compiling
...
for darwin (this header is missing in the iOS SDK)
* eval_intern.h: check HAVE_CRT_EXTERNS_H before including crt_externs.h, if
not defined, include missing/crt_externs.h instead
* hash.c: ditto
* missing/setproctitle.c: ditto
* missing/crt_externs.h: declare _NSGetEnviron() function and define environ
for iOS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-28 14:23:25 +00:00
nobu
2741a598ff
setproctitle.c: _NSGetEnviron
...
* missing/setproctitle.c (environ): use (*_NSGetEnviron()) instead of
environ on Darwin for namespace cleanness, same as [ruby-core:00537].
[ruby-core:45615] [Bug #6576 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-20 07:36:23 +00:00
yugui
76bc2d1ed7
Imports Ruby's port to NativeClient (a.k.a NaCl).
...
Patch by Google Inc. [ruby-core:45073].
* configure.in (RUBY_NACL): New M4 func to configure variables for
NaCl.
(RUBY_NACL_CHECK_PEPPER_TYPES): New M4 func to check the old names
of Pepper interface types.
(BTESTRUBY): New variable to specify which ruby should be run on
"make btest". NaCl can run the built binary by sel_ldr, but it need
rbconfig.rb. So this variable is distinguished from $MINIRUBY.
* thread_pthread.c: Disabled some features on NaCl.
* io.c: ditto.
* process.c: ditto.
* signal.c: ditto.
* file.c: ditto.
* missing/flock.c: ditto.
* nacl/pepper_main.c: An example implementation of Pepper application
that embeds Ruby.
* nacl/example.html: An example of web page that uses the Pepper
application.
* nacl/nacl-config.rb: Detects variants of NaCl SDK.
* nacl/GNUmakefile.in: Makefile template for NaCl specific build
process.
* nacl/package.rb: script for packaging a NaCl-Ruby embedding
application.
* nacl/reate_nmf.rb: Wrapper script of create_nmf.py
* dln.c (dln_load): Added a hack to call on NaCl.
* util.c (ruby_getcwd): Path to the current directort is not available
on NaCl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-17 02:48:59 +00:00
nobu
789f9c2204
* missing/alloca.c (xmalloc, xfree): use ruby version, not
...
depending on RUBY_LIB_PREFIX. [ruby-dev:45492][Bug #6255 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-05 04:26:20 +00:00
kazu
0ec539240c
fix typos
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-02 15:29:12 +00:00
nobu
69fa2fe929
* missing/alloca.c: suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-01 12:18:32 +00:00
nobu
b3e2baa3b5
* missing/setproctitle.c (ruby_init_setproctitle): changed prefix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:13:50 +00:00
nobu
bfb8b125fa
* missing/lgamma_r.c (lgamma_r): get rid of false warning on mingw.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 13:35:13 +00:00
nobu
3a47cf3395
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15 11:55:52 +00:00
kosaki
887063f44b
fix mswin32 build error.
...
* missing/setproctitle.c: oadd #ifdef HAVE_UNISTD_H.
* win32/Makefile.sub (MISSING): add setproctitle.obj
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-14 16:01:28 +00:00
kosaki
d19cda5fa6
* missing/setproctitle.c: add to include "ruby/util.h".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-14 13:45:58 +00:00
kosaki
1780714844
* missing/setproctitle.c (compat_init_setproctitle): use
...
ruby_strdup() instead of strdup().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-14 10:51:16 +00:00
kosaki
3ad44e0aa1
introduce missing/setproctitle.c
...
* include/ruby/missing.h: add setproctitle() declaration.
* missing/setproctitle.c: added.
* configure.in: add check for missing/setproctitle.c.
* ruby.c (ruby_process_options): add to call compat_init_setproctitle().
* ruby.c (set_arg0): remove all platform specific code. it's
moved to missing/setproctitle.c.
* ruby.c (origarg): remove len field. It's no longer used.
* ruby.c (get_arglen): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-14 10:49:47 +00:00
akr
ff4ba406a2
* missing/langinfo.c: parenthesize macro arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-31 13:08:27 +00:00
akr
627e79f13f
* missing/crypt.c: parenthesize macro arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-30 08:20:20 +00:00
nobu
d646c540b7
* missing/langinfo.c (strncasecmp): get rid of redefinition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-17 22:16:53 +00:00
nobu
767d70841a
* Makefile.in (ASFLAGS): needs INCFLAGS.
...
* configure.in (rb_cv_dynamic_alloca): check if extra source for
dynamic size alloca.
* missing/x86_64-chkstk.s (___chkstk): necessary for alloca of
amd64-mingw32msvc-gcc on Ubutu.
* thread_win32.c (ruby_alloca_chkstk): check stack overflow
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-26 09:09:45 +00:00
naruse
e7413bc6ec
* missing/strchr.c: add strlen's prototype.
...
* missing/strtrr.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-12 20:23:53 +00:00
akr
2f2b6ace05
* missing/close.c: undef the macros "getpeername", "getsockname" and
...
"shutdown" to prevent infinite recursion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 10:05:37 +00:00
akr
3e7c24fe6e
* missing/close.c: undef the macro "close" to prevent infinite
...
recursion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-07 09:38:21 +00:00
nobu
51b6bfb011
* missing/*.c: include missing.h
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-28 08:12:01 +00:00
naruse
29b4247ca1
* missing/close.c: keep original errno.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-13 04:15:30 +00:00
naruse
8ff0574198
* missing/close.c: ignore ECONNRESET.
...
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
2010-07-07 01:29:22 +00:00
akr
a22df39467
* missing/ffs.c (ffs): fixed for non-zero values.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 12:41:29 +00:00
akr
dd6b923bf8
fix the comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 13:50:39 +00:00
akr
a00247f57a
* time.c (rb_big_abs_find_minbit): use ffs().
...
* 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
2010-05-12 13:23:20 +00:00
naruse
b919cb1d93
* include/ruby/ruby.h: replace snprintf and vsnprintf by
...
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
2010-04-04 01:10:53 +00:00
naruse
12b2e16e21
* sprintf.c (rb_str_format): support %a format. [ruby-dev:40650]
...
* missing/vsnprintf.c (BSD_vfprintf): ditto.
* missing/vsnprintf.c (cvt): ditto.
* util.c (BSD__hdtoa): added. This is 2-clause BSDL licensed
by David Schultz and from FreeBSD.
* LEGAL: add about hdtoa() in util.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 04:32:57 +00:00
nobu
5b8af7521f
* missing/signbit.c: added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-11 03:14:21 +00:00
kazu
e95a439c6d
* missing/alloca.c: s/RUBY_LIB/RUBY_LIB_PREFIX/ [ruby-dev:40395]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 10:20:43 +00:00
usa
f01d580142
* missing/vsnprintf.c (BSD_vfprintf): get rid of a warning of VC++ x64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-09 05:03:26 +00:00
yugui
4bdd854347
* missing/vsnprintf.c (errno): [BUG] fixes a compilation
...
error on SIZEOF_LONG > SIZEOF_INT.
(BSD_vfprintf): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-22 15:22:36 +00:00
nobu
08732d4f57
* missing/vsnprintf.c (BSD_vfprintf): support for 'z' modifier.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-21 12:07:25 +00:00
nobu
d1abc53721
* array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c,
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@22914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 09:16:15 +00:00
nobu
bb8a49812a
* missing/vsnprintf.c (BSD_vfprintf): commented out code which has
...
no effect at all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 20:09:58 +00:00
nobu
2e54fe9d4d
* array.c, bignum.c, gc.c, numeric.c, string.c, util.c, insns.def,
...
missing/crypt.c, missing/vsnprintf.c, : suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 05:43:14 +00:00
nobu
5028921a25
* missing/vsnprintf.c (BSD_vfprintf): ptrdiff_t may be larger than
...
long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-24 04:13:53 +00:00
usa
8563b285fb
* util.c (rv_alloc, freedtoa): use our normal xmalloc()/xfree() because
...
couldn't free the returned pointer from ruby_dtoa().
* missing/vsnprintf.c (cvt): receive buffer and use/return it instead
of returning the pointer returned from BSD__dtoa().
* missing/vsnprintf.c (BSD_vfprintf): pass buf to cvt() as the buffer.
[ruby-core:22184]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-20 14:29:00 +00:00
nobu
5610e5dc70
* configure.in (--with-arch): added new option to support
...
universal binary. replaced --enable-fat-binary option which
didn't work actually.
* configure.in (RUBY_FUNC_ATTRIBUTE): added conditional test.
* configure.in (ac_cv_type_getgroups): decalared because getgroups()
fills rest of the buffer with garbages on Rosetta.
* configure.in (alloca): defines only for powerpc, but always
create empty object to suppress ld warning.
* configure.in (LIBRUBY_DLDFLAGS): set compatibility version with
TEENY.
* configure.in (CFLAGS, LDFLAGS): separates ARCH_FLAG.
* configure.in (arch): renamed to "universal" from "fat".
* Makefile.in (ARCH_FLAG): added.
* include/ruby/defines.h (WORDS_BIGENDIAN): uses
AC_APPLE_UNIVERSAL_BUILD.
* missing/alloca.c (alloca): defines only if C_ALLOCA is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-07 09:02:50 +00:00
matz
049d98c6ff
* missing/vsnprintf.c (BSD_vfprintf): should support 't' format
...
modifier to handle PRIdPTRDIFF. thanks for the info from
Kazuhiro NISHIYAMA. [ruby-core:21807]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-04 01:16:14 +00:00
nobu
a1dd4a613a
* missing/langinfo.c (nl_langinfo_codeset): accepts iso-8859
...
fragment. [ruby-core:21757]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-02 22:02:16 +00:00
nobu
ece0628ebe
* configure.in, win32/Makefile.sub (MISSING): added langinfo on mingw
...
and mswin.
* encoding.c (rb_locale_charmap): use environments on mingw and mswin.
* missing/langinfo.c (nl_langinfo_codeset): MS-Windows Japanese
environment uses Windows-31J derived from Shift_JIS, not EUC-JP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-15 04:10:16 +00:00
nobu
22e711c4bf
* encoding.c (rb_locale_charmap): fallback to codepage if no
...
locale is found. [ruby-core:21110]
* missing/langinfo.c (nl_langinfo_codeset): returns NULL if no
locale is found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-14 14:57:34 +00:00
nobu
893efc4db9
* missing/langinfo.c (nl_langinfo_0): fixed typos for SJIS.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-05 08:59:46 +00:00
nobu
c6827f709c
* configure.in (cygwin): needs properly implemented nl_langinfo().
...
[ruby-core:21110]
* missing/langinfo.c: added as suggested at [ruby-core:21015], from
http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-05 08:51:44 +00:00
nobu
3bad2b6ed9
* missing/vsnprintf.c (BSD_vfprintf): fix for test_sprintf_comb.rb, by
...
wanabe in [ruby-dev:36935].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-22 03:25:14 +00:00
nobu
425dcb131e
* missing/vsnprintf.c (BSD__sfvwrite): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 06:05:21 +00:00
yugui
bbbd9c0b7b
* x68/_dtos18.c: removed. Ruby no longer supports human68k.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-04 13:12:13 +00:00
shugo
99155ccbf2
* configure.in: removed strftime from AC_REPLACE_FUNCS().
...
* include/ruby/missing.h: removed prototype for strftime().
* missing/strftime.c: removed.
* time.c (time_to_s): use rb_strftime() instead of strftime(3).
(time_zone): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-20 16:04:11 +00:00
nobu
473dbc4e3f
* transcode.c (load_transcoder): suppress warning.
...
* missing/vsnprintf.c (BSD_vfprintf): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 03:20:38 +00:00
nobu
6ccce7e3f5
* missing/vsnprintf.c (struct __sbuf, FILE): use size_t.
...
* sprintf.c (ruby__sfvwrite): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-21 06:29:35 +00:00
mame
ac6fd9384d
* missing/tgamma.c (tgamma): remove unused variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 16:02:52 +00:00
nobu
1316830179
* missing/vsnprintf.c (BSD__uqtoa): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 08:56:37 +00:00
nobu
5669377a57
* iseq.c (COMPILE_OPTION_FALSE), time.c (timegm_noleapsecond),
...
thread.c (eKillSignal, eTerminateSignal),
missing/vsnprintf.c (BSD_vfprintf): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 08:44:32 +00:00
usa
363b0bddde
* missing/acosh.c (atanh): should set ERANGE to errno if parameter
...
is the boundary case. fixed [ruby-dev:35155]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 07:51:46 +00:00
akr
e7a660a3cf
tgamma and lgamma_r is not a error function.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 02:18:06 +00:00
matz
e6c1752137
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
...
<evanfarrar at gmail.com> in [ruby-doc:1382] applied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 09:37:38 +00:00
nobu
7c5e3348f7
* suppress warnings on cygwin, mingw and mswin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01 19:55:25 +00:00
nobu
075530a685
* suppress warnings with -Wwrite-string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 09:28:20 +00:00
nobu
89c408704b
* enumerator.c (enumerator_each, enumerator_with_index): suppress
...
warnings.
* pack.c (pack_unpack): ditto.
* process.c (rb_syswait): ditto.
* re.c (rb_reg_prepare_enc, rb_reg_prepare_re,
rb_reg_adjust_startpos): ditto.
* regparse.c (onig_name_to_group_numbers): ditto.
* missing/vsnprintf.c (BSD_vfprintf): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-22 13:49:43 +00:00
mame
d0c2b919ed
* missing/tgamma.c: include config.h before math.h. [ruby-dev:34075]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-20 16:22:03 +00:00
akr
d1cd806372
* missing/lgamma_r.c (loggamma): return 0 for 1 and 2.
...
* test/ruby/test_math.rb: accept errors by functions under missing/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-06 05:53:03 +00:00
akr
d44f24c47c
* missing/tgamma.c (tgamma): use lgamma_r if available.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 14:45:43 +00:00
akr
b160d23c68
* math.c (math_cbrt): new method Math.cbrt.
...
* configure.in (cbrt): check for replacement functions.
* missing/cbrt.c: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 09:36:03 +00:00
akr
0e66903fca
* missing/tgamma.c (tgamma): add error check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 03:07:34 +00:00
akr
4c351aea17
* missing/xlgamma_r.c (lgamma_r): return HUGE_VAL for non-positive
...
integers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 02:10:57 +00:00
akr
185849a664
* missing/lgamma_r.c (lgamma_r): use smaller argument for sin function.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 14:53:09 +00:00
usa
4cd86dbe9f
* missing/lgamma_r.c (lgamma_r): some compilers don't permit dividing
...
by literal 0.0. use const variable instead.
* {bcc32,win32,wince}/Makefile.sub (MISSING): add lgamma_r.obj and
tgamma.obj.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 02:14:54 +00:00