pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-05-09
2016-05-09 16:28:36 by Martin Nilsson <nilsson@fastmail.com>
0a3c553806fd3a01462d9f67fc9a11c1fe3b6009 (
11
lines) (+
6
/-
5
)
[
Show
|
Annotate
]
Branch:
8.1
LONGEST is just INT64, so use that instead.
5387:
struct tm tm_s; #endif struct tm *tm;
-
LONGEST
tt;
+
INT64
tt;
time_t t; get_all_args("gmtime", args, "%l", &tt);
-
#if SIZEOF_TIME_T < SIZEOF_
LONGEST
+
#if SIZEOF_TIME_T < SIZEOF_
INT64
if (tt > MAX_TIME_T || tt < MIN_TIME_T) SIMPLE_ARG_ERROR ("gmtime", 1, "Timestamp outside valid range."); #endif
5406:
tm = gmtime(&t); #endif if (!tm) Pike_error ("gmtime() on this system cannot handle "
-
"the timestamp %"
PRINTLONGEST
"d.\n", (
LONGEST
) t);
+
"the timestamp %"
PRINTINT64
"d.\n", (
INT64
) t);
pop_n_elems(args); encode_struct_tm(tm);
5458:
PMOD_EXPORT void f_localtime(INT32 args) { struct tm *tm;
-
LONGEST
tt;
+
INT64
tt;
time_t t; get_all_args("localtime", args, "%l", &tt);
-
#if SIZEOF_TIME_T < SIZEOF_
LONGEST
+
#if SIZEOF_TIME_T < SIZEOF_
INT64
if (tt > MAX_TIME_T || tt < MIN_TIME_T) SIMPLE_ARG_ERROR ("localtime", 1, "Timestamp outside valid range."); #endif