Branch: Tag:

1998-03-09

1998-03-09 23:23:53 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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(&current_time);    push_int(current_time.tv_sec); -  else -  push_int((INT32)TIME(0)); +    }      void f_crypt(INT32 args)