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.364 2002/10/15 13:51:39 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.365 2002/10/15 13:59:12 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:4114: Inside #if defined(HAVE_MKTIME)
   *!    *! @seealso    *! @[time()], @[ctime()], @[localtime()], @[gmtime()]    */   PMOD_EXPORT void f_mktime (INT32 args)   {    INT_TYPE sec, min, hour, mday, mon, year, isdst;    struct tm date;    struct svalue s;    struct svalue * r; -  int retval, raw; +  int retval;    if (args<1)    SIMPLE_TOO_FEW_ARGS_ERROR("mktime", 1);       if(args == 1)    {    MEMSET(&date, 0, sizeof(date));       push_text("sec");    push_text("min");    push_text("hour");
pike.git/src/builtin_functions.c:4196: Inside #if defined(HAVE_MKTIME) and #if defined(HAVE_EXTERNAL_TIMEZONE)
  #ifdef HAVE_EXTERNAL_TIMEZONE    - timezone   #endif /* HAVE_EXTERNAL_TIMEZONE */    ;    }   #endif /* STRUCT_TM_HAS___TM_GMTOFF */   #endif /* STRUCT_TM_HAS_GMTOFF */       retval = mktime(&date);    -  if (raw == -1) +  if (retval == -1)    PIKE_ERROR("mktime", "Cannot convert.\n", Pike_sp, args);      #if defined(STRUCT_TM_HAS_GMTOFF) || defined(STRUCT_TM_HAS___TM_GMTOFF)    if((args > 7) && (Pike_sp[7-args].subtype == NUMBER_NUMBER))    {    /* Adjust for the timezone. */   #ifdef STRUCT_TM_HAS_GMTOFF    retval += Pike_sp[7-args].u.integer + date.tm_gmtoff;   #else   #ifdef STRUCT_TM_HAS___TM_GMTOFF