Branch: Tag:

1998-03-12

1998-03-12 13:34:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

time() now updates current_time.

Rev: src/builtin_functions.c:1.63

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.62 1998/03/03 14:28:47 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.63 1998/03/12 13:34:28 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
684:   void f_time(INT32 args)   {    pop_n_elems(args); -  if(args) +  if(!args) +  GETTIMEOFDAY(&current_time);    push_int(current_time.tv_sec); -  else -  push_int((INT32)TIME(0)); +    }      void f_crypt(INT32 args)