pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.152 2001/12/03 15:46:52 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.153 2008/09/14 07:17:11 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:2117: Inside #if defined(HAVE_MKTIME)
   }else{    date.tm_isdst=-1;    }      #if STRUCT_TM_HAS_GMTOFF    if(sp[7-args].subtype == NUMBER_NUMBER)    {    date.tm_gmtoff=-sp[7-args].u.integer;    }else{    time_t tmp=0; -  date.tm_gmtoff=localtime(&t)->tm_gmtoff; +  date.tm_gmtoff=localtime(&tmp)->tm_gmtoff;    }    retval=mktime(&date);   #else   #ifdef HAVE_EXTERNAL_TIMEZONE    if(sp[7-args].subtype == NUMBER_NUMBER)    {    retval=mktime(&date) + sp[7-args].u.integer - timezone;    }else{    retval=mktime(&date);    }