summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-09 23:15:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-09 23:15:08 +0000
commita64266a72837c350ac6552ac5cb14591b5cb2b05 ()
tree8fc8ade904dee168adf5d78483b31e9008442641
parent0e3d10173bec301c075555e20a0fc1da853ab35c (diff)
* configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),
ext/digest/md5/md5.c, ext/openssl/ossl.c (main), ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int. * main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is no longer used so long time. based on a from Peter Bowen at [ruby-core:18208] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog10
-rw-r--r--configure.in14
-rw-r--r--ext/digest/md5/md5.c2
-rw-r--r--ext/openssl/ossl.c2
-rw-r--r--ext/socket/extconf.rb2
-rw-r--r--main.c2
-rw-r--r--win32/winmain.c4
-rw-r--r--wince/wincemain.c13
8 files changed, 32 insertions, 17 deletions
@@ -1,3 +1,13 @@
Sat Aug 9 22:05:29 2008 Tanaka Akira <[email protected]>
* transcode.c (transcode_loop): take destination and resize function
@@ -1534,11 +1534,12 @@ case "$target_os" in
changequote(<<, >>)dnl
<<
#include <stdio.h>
-main ()
{
char buf[256];
- sprintf (buf, "%g", 1e+300);
- exit (strcmp (buf, "1e+300") ? 0 : 1);
}
>>,
changequote([, ])dnl
@@ -1553,11 +1554,12 @@ changequote(<<, >>)dnl
<<
#include <stdio.h>
#include <math.h>
-main ()
{
char buf[256];
- sprintf (buf, "%f", log(exp(1.0)));
- exit (strcmp (buf, "1.000000") ? 0 : 1);
}
>>,
changequote([, ])dnl
@@ -60,6 +60,7 @@
* A.5 of RFC 1321, reproduced below.
*/
#include <string.h>
main()
{
static const char *const test[7*2] = {
@@ -100,6 +101,7 @@ main()
*/
#ifdef COMPUTE_T_VALUES
#include <math.h>
main()
{
int i;
@@ -488,7 +488,7 @@ Init_openssl()
* Check if all symbols are OK with 'make LDSHARED=gcc all'
*/
int
-main(int argc, char *argv[], char *env[])
{
return 0;
}
@@ -38,6 +38,7 @@ if enable_config("ipv6", default_ipv6)
if checking_for("ipv6") {try_link(<<EOF)}
#include <sys/types.h>
#include <sys/socket.h>
main()
{
socket(AF_INET6, SOCK_STREAM, 0);
@@ -123,6 +124,7 @@ getaddr_info_ok = enable_config("wide-getaddrinfo") do
#define AF_LOCAL AF_UNIX
#endif
main()
{
int passive, gaierr, inet4 = 0, inet6 = 0;
@@ -18,7 +18,7 @@
RUBY_GLOBAL_SETUP
int
-main(int argc, char **argv, char **envp)
{
#ifdef RUBY_DEBUG_ENV
ruby_set_debug_option(getenv("RUBY_DEBUG"));
@@ -1,10 +1,10 @@
#include <windows.h>
#include <stdio.h>
-extern int main(int, char**, char**);
int WINAPI
WinMain(HINSTANCE current, HINSTANCE prev, LPSTR cmdline, int showcmd)
{
- return main(0, NULL, NULL);
}
@@ -2,18 +2,17 @@
#include <stdio.h>
#include "wince.h"
-extern int main(int, char**, char**);
int WINAPI
WinMain(HINSTANCE current, HINSTANCE prev, LPWSTR wcmd, int showcmd)
{
- /* wchar_t -> char */
- wce_SetCommandLine(wcmd);
- wce_SetCurrentDir();
- /* main. */
- return main(0, NULL, NULL);
}
-