pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.674 2008/06/23 20:56:52 mast Exp $ + || $Id: builtin_functions.c,v 1.675 2008/06/25 16:35:31 mast Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:5085: Inside #if defined (HAVE_GMTIME) || defined (HAVE_GMTIME_R) || defined (HAVE_GMTIME_S) and #if SIZEOF_TIME_T < SIZEOF_LONGEST
     #if SIZEOF_TIME_T < SIZEOF_LONGEST    if (tt > MAX_TIME_T || tt < MIN_TIME_T)    SIMPLE_ARG_ERROR ("gmtime", 1, "Timestamp outside valid range.");   #endif    t = (time_t) tt;      #ifdef HAVE_GMTIME_R    tm = gmtime_r (&t, &tm_s);   #elif defined (HAVE_GMTIME_S) -  if (!gmtime_s (&tm_s, &t)) tm = &tm_s; +  if (!gmtime_s (&tm_s, &t)) tm = &tm_s; else tm = NULL;   #else    tm = gmtime(&t);   #endif    if (!tm) Pike_error ("gmtime() on this system cannot handle " -  "the timestamp %ld.\n", (long) t); +  "the timestamp %"PRINTLONGEST"d.\n", (LONGEST) t);    pop_n_elems(args);    encode_struct_tm(tm);       push_text("timezone");    push_int(0);    f_aggregate_mapping(20);   }   #endif      #ifdef HAVE_LOCALTIME