mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* time.c (find_time_t): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7618e3b5ad
commit
ac3dcc30da
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Apr 22 00:32:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* time.c (find_time_t): constified.
|
||||
|
||||
Wed Apr 22 00:11:19 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* time.c (leap_year_v_p): removed.
|
||||
|
|
6
time.c
6
time.c
|
@ -48,7 +48,7 @@ static VALUE time_localtime(VALUE);
|
|||
static time_t timegm_noleapsecond(struct tm *tm);
|
||||
static int tmcmp(struct tm *a, struct tm *b);
|
||||
static int vtmcmp(struct vtm *a, struct vtm *b);
|
||||
static char *find_time_t(struct tm *tptr, int utc_p, time_t *tp);
|
||||
static const char *find_time_t(struct tm *tptr, int utc_p, time_t *tp);
|
||||
|
||||
static struct vtm *localtimev(VALUE timev, struct vtm *result);
|
||||
|
||||
|
@ -566,7 +566,7 @@ timegmv(struct vtm *vtm)
|
|||
VALUE timev;
|
||||
struct tm tm;
|
||||
time_t t;
|
||||
char *errmsg;
|
||||
const char *errmsg;
|
||||
|
||||
/* The first leap second is 1972-06-30 23:59:60 UTC.
|
||||
* No leap seconds before. */
|
||||
|
@ -1535,7 +1535,7 @@ timegm_noleapsecond(struct tm *tm)
|
|||
DIV(tm_year+299,400))*86400;
|
||||
}
|
||||
|
||||
static char *
|
||||
static const char *
|
||||
find_time_t(struct tm *tptr, int utc_p, time_t *tp)
|
||||
{
|
||||
time_t guess, guess_lo, guess_hi;
|
||||
|
|
Loading…
Add table
Reference in a new issue