ruby-changes:19000
From: kosaki <ko1@a...>
Date: Sun, 6 Mar 2011 23:49:36 +0900 (JST)
Subject: [ruby-changes:19000] Ruby:r31036 (trunk): * configure.in: rlim_t use standard RUBY_REPLACE_TYPE mechanism.
kosaki 2011-03-06 23:47:27 +0900 (Sun, 06 Mar 2011) New Revision: 31036 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31036 Log: * configure.in: rlim_t use standard RUBY_REPLACE_TYPE mechanism. Modified files: trunk/ChangeLog trunk/configure.in trunk/process.c Index: configure.in =================================================================== --- configure.in (revision 31035) +++ configure.in (revision 31036) @@ -689,6 +689,7 @@ RUBY_REPLACE_TYPE(time_t, [], TIMET, [@%:@include <time.h>]) RUBY_REPLACE_TYPE(dev_t, [int long "long long"], DEVT) RUBY_REPLACE_TYPE(mode_t, ["unsigned int" long], MODET, [@%:@include <sys/stat.h>]) +RUBY_REPLACE_TYPE(rlim_t, [int long "long long"], RLIM, [@%:@include <sys/resource.h>]) AC_CACHE_CHECK(for prototypes, rb_cv_have_prototypes, [AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);], @@ -1126,23 +1127,6 @@ ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \ net/socket.h sys/socket.h) -dnl Check additional types. -RUBY_CHECK_SIZEOF(rlim_t, [int long "long long"], [], [ - #ifdef HAVE_SYS_TYPES_H - # include <sys/types.h> - #endif - #ifdef HAVE_SYS_TIME_H - # include <sys/time.h> - #endif - #ifdef HAVE_SYS_RESOURCE_H - # include <sys/resource.h> - #endif - #ifdef HAVE_UNISTD_H - # include <unistd.h> - #endif - #include <stdio.h> -]) - AC_TYPE_SIZE_T RUBY_CHECK_SIZEOF(size_t, [int long void*], [], [@%:@include <sys/types.h>]) RUBY_CHECK_SIZEOF(ptrdiff_t, size_t, [], [@%:@include <stddef.h>]) Index: ChangeLog =================================================================== --- ChangeLog (revision 31035) +++ ChangeLog (revision 31036) @@ -1,3 +1,7 @@ +Sun Mar 6 23:45:40 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * configure.in: rlim_t use standard RUBY_REPLACE_TYPE mechanism. + Sun Mar 6 23:26:07 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * process.c (proc_setmaxgroups): added negative value check. Index: process.c =================================================================== --- process.c (revision 31035) +++ process.c (revision 31036) @@ -122,17 +122,6 @@ #endif #endif -#if SIZEOF_RLIM_T == SIZEOF_INT -# define RLIM2NUM(v) UINT2NUM(v) -# define NUM2RLIM(v) NUM2UINT(v) -#elif SIZEOF_RLIM_T == SIZEOF_LONG -# define RLIM2NUM(v) ULONG2NUM(v) -# define NUM2RLIM(v) NUM2ULONG(v) -#elif SIZEOF_RLIM_T == SIZEOF_LONG_LONG -# define RLIM2NUM(v) ULL2NUM(v) -# define NUM2RLIM(v) NUM2ULL(v) -#endif - #define preserving_errno(stmts) \ do {int saved_errno = errno; stmts; errno = saved_errno;} while (0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/