pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:5686:    push_static_text("year");    push_static_text("isdst");    push_static_text("timezone");    f_aggregate(8);    f_rows(2);    Pike_sp--;    dmalloc_touch_svalue(Pike_sp);    push_array_items(Pike_sp->u.array);   }    - static int get_tm(const char*fname, int args, struct tm*date) + static int get_tm(const char *fname, int args, struct tm *date)   {    INT_TYPE sec, min, hour, mday, mon, year;    INT_TYPE isdst = -1, tz = 0;       get_all_args(fname, args, "%i%i%i%i%i%i.%i%i",    &sec, &min, &hour, &mday, &mon, &year, &isdst, &tz);       memset(date, 0, sizeof(*date));    date->tm_sec = sec;    date->tm_min = min;    date->tm_hour = hour;    date->tm_mday = mday;    date->tm_mon = mon;    date->tm_year = year;    date->tm_isdst = isdst; -  /* date->tm_zone = NULL; */ + #ifdef NULL_IS_SPECIAL +  date->tm_zone = NULL; + #endif    return tz;   }      /*! @decl int mktime(mapping(string:int) tm)    *! @decl int mktime(int sec, int min, int hour, int mday, int mon, int year, @    *! int|void isdst, int|void tz)    *!    *! This function converts information about date and time into an integer    *! which contains the number of seconds since 00:00:00 UTC, Jan 1, 1970.    *!