ruby-changes:8232
From: nobu <ko1@a...>
Date: Sun, 12 Oct 2008 09:48:04 +0900 (JST)
Subject: [ruby-changes:8232] Ruby:r19760 (trunk): * strftime.c (rb_strftime): suppressed warnings on cygwin.
nobu 2008-10-12 09:46:59 +0900 (Sun, 12 Oct 2008) New Revision: 19760 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19760 Log: * strftime.c (rb_strftime): suppressed warnings on cygwin. Modified files: trunk/ChangeLog trunk/strftime.c trunk/version.h Index: ChangeLog =================================================================== --- ChangeLog (revision 19759) +++ ChangeLog (revision 19760) @@ -1,3 +1,7 @@ +Sun Oct 12 09:46:36 2008 Nobuyoshi Nakada <nobu@r...> + + * strftime.c (rb_strftime): suppressed warnings on cygwin. + Sat Oct 11 19:49:35 2008 Nobuyoshi Nakada <nobu@r...> * parse.y (parser_prepare): use utf-8 encoding directly. Index: strftime.c =================================================================== --- strftime.c (revision 19759) +++ strftime.c (revision 19760) @@ -195,12 +195,11 @@ #endif /* POSIX_SEMANTICS */ #ifndef HAVE_TM_ZONE #ifndef HAVE_TM_NAME -#if !defined HAVE_VAR_TIMEZONE || defined HAVE_TIMEZONE +#if ((defined(MAILHEADER_EXT) && !HAVE_VAR_TIMEZONE && HAVE_GETTIMEOFDAY) || \ + (!HAVE_TZNAME && HAVE_TIMEZONE)) struct timeval tv; -#endif -#ifdef HAVE_TIMEZONE struct timezone zone; -#endif /* HAVE_TIMEZONE */ +#endif #endif /* HAVE_TM_NAME */ #endif /* HAVE_TM_ZONE */ int precision, flags; @@ -473,7 +472,7 @@ #else off = -timezone / 60; #endif -#else /* !HAVE_TIMEZONE */ +#else /* !HAVE_VAR_TIMEZONE */ #ifdef HAVE_GETTIMEOFDAY gettimeofday(&tv, &zone); off = -zone.tz_minuteswest; @@ -487,7 +486,7 @@ off = (now - mktime(&utc)) / 60; } #endif -#endif /* !HAVE_TIMEZONE */ +#endif /* !HAVE_VAR_TIMEZONE */ #endif /* !HAVE_TM_ZONE */ #endif /* !HAVE_TM_NAME */ } Index: version.h =================================================================== --- version.h (revision 19759) +++ version.h (revision 19760) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2008-10-11" +#define RUBY_RELEASE_DATE "2008-10-12" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20081011 +#define RUBY_RELEASE_CODE 20081012 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 10 -#define RUBY_RELEASE_DAY 11 +#define RUBY_RELEASE_DAY 12 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; @@ -32,23 +32,26 @@ #define RUBY_REVISION 0 #endif -#if RUBY_VERSION_TEENY > 0 && RUBY_PATCHLEVEL < 5000 && !RUBY_REVISION -#define RUBY_RELEASE_STR "patchlevel" -#define RUBY_RELEASE_NUM RUBY_PATCHLEVEL +#if RUBY_PATCHLEVEL +#define RUBY_PATCHLEVEL_STR " patchlevel "STRINGIZE(RUBY_PATCHLEVEL) #else +#define RUBY_PATCHLEVEL_STR "" +#endif +#if RUBY_REVISION #ifdef RUBY_BRANCH_NAME -#define RUBY_RELEASE_STR RUBY_BRANCH_NAME +#define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "STRINGIZE(RUBY_REVISION) #else -#define RUBY_RELEASE_STR "revision" +#define RUBY_REVISION_STR " revision "STRINGIZE(RUBY_REVISION) #endif -#define RUBY_RELEASE_NUM RUBY_REVISION +#else +#define RUBY_REVISION_STR "" #endif # define RUBY_DESCRIPTION \ "ruby "RUBY_VERSION \ " ("RUBY_RELEASE_DATE" " \ - RUBY_RELEASE_STR" " \ - STRINGIZE(RUBY_RELEASE_NUM)") " \ + RUBY_PATCHLEVEL_STR \ + RUBY_REVISION_STR") " \ "["RUBY_PLATFORM"]" # define RUBY_COPYRIGHT \ "ruby - Copyright (C) " \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/