pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-03-09
1998-03-09 23:23:53 by Henrik Grubbström (Grubba) <grubba@grubba.org>
7b52a02f687276f774b715fdcb311bf1a43cb1ab (
10
lines) (+
5
/-
5
)
[
Show
|
Annotate
]
Branch:
7.9
time() now updates current_time if no arguments are given.
Rev: src/builtin_functions.c:1.79
4:
||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
78
1998/03/
06
16
:
28
:
47
grubba Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
79
1998/03/
09
23
:
23
:
53
grubba Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
663:
void f_time(INT32 args) { pop_n_elems(args);
-
if(args)
+
if(
!
args)
+
GETTIMEOFDAY(¤t_time);
push_int(current_time.tv_sec);
-
else
-
push_int((INT32)TIME(0));
+
} void f_crypt(INT32 args)