Commit 998e9f8c authored by Dave Love's avatar Dave Love
Browse files

Unprotoized.

parent d1504184
No preview for this file type
...@@ -117,7 +117,9 @@ const unsigned short int __mon_yday[2][13] = ...@@ -117,7 +117,9 @@ const unsigned short int __mon_yday[2][13] =
localtime to localtime_r, since many localtime_r implementations localtime to localtime_r, since many localtime_r implementations
are buggy. */ are buggy. */
static struct tm * static struct tm *
my_mktime_localtime_r (const time_t *t, struct tm *tp) my_mktime_localtime_r (t, tp)
const time_t *t;
struct tm *tp;
{ {
struct tm *l = localtime (t); struct tm *l = localtime (t);
if (! l) if (! l)
...@@ -135,8 +137,9 @@ my_mktime_localtime_r (const time_t *t, struct tm *tp) ...@@ -135,8 +137,9 @@ my_mktime_localtime_r (const time_t *t, struct tm *tp)
If TP is null, return a nonzero value. If TP is null, return a nonzero value.
If overflow occurs, yield the low order bits of the correct answer. */ If overflow occurs, yield the low order bits of the correct answer. */
static time_t static time_t
ydhms_tm_diff (int year, int yday, int hour, int min, int sec, ydhms_tm_diff (year, yday, hour, min, sec, tp)
const struct tm *tp) int year, yday, hour, min, sec;
const struct tm *tp;
{ {
if (!tp) if (!tp)
return 1; return 1;
...@@ -167,8 +170,14 @@ ydhms_tm_diff (int year, int yday, int hour, int min, int sec, ...@@ -167,8 +170,14 @@ ydhms_tm_diff (int year, int yday, int hour, int min, int sec,
If *T is out of range for conversion, adjust it so that If *T is out of range for conversion, adjust it so that
it is the nearest in-range value and then convert that. */ it is the nearest in-range value and then convert that. */
static struct tm * static struct tm *
ranged_convert (struct tm *(*convert) (const time_t *, struct tm *), ranged_convert (convert, t, tp)
time_t *t, struct tm *tp) #ifdef PROTOTYPES
struct tm *(*convert) (const time_t *, struct tm *);
#else
struct tm *(*convert)();
#endif
time_t *t;
struct tm *tp;
{ {
struct tm *r; struct tm *r;
...@@ -215,9 +224,14 @@ ranged_convert (struct tm *(*convert) (const time_t *, struct tm *), ...@@ -215,9 +224,14 @@ ranged_convert (struct tm *(*convert) (const time_t *, struct tm *),
compared to what the result would be for UTC without leap seconds. compared to what the result would be for UTC without leap seconds.
If *OFFSET's guess is correct, only one CONVERT call is needed. */ If *OFFSET's guess is correct, only one CONVERT call is needed. */
time_t time_t
__mktime_internal (struct tm *tp, __mktime_internal (tp, convert, offset)
struct tm *(*convert) (const time_t *, struct tm *), struct tm *tp;
time_t *offset) #ifdef PROTOTYPES
struct tm *(*convert) (const time_t *, struct tm *);
#else
struct tm *(*convert)();
#endif
time_t *offset;
{ {
time_t t, dt, t0, t1, t2; time_t t, dt, t0, t1, t2;
struct tm tm; struct tm tm;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment