pike.git / lib / modules / Calendar.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/module.pmod:1:   #pike __REAL_VERSION__    - static private int stage=0; - static private int booted=0; - static private object defcal; - static private object iso_utc; - static private object default_rules; - static constant magic= // magic + indices(Calendar.ISO) without YMD + protected private int stage=0; + protected private int booted=0; + protected private object defcal; + protected private object iso_utc; + protected private object default_rules; + protected constant magic= // magic + indices(Calendar.ISO) without YMD   (<    "ISO_UTC","II", "default_rules",    "_sprintf", "set_timezone", "language", "Day", "Year", "Week",    "Month", "Hour", "Minute", "datetime", "format_iso",    "format_iso_short", "format_iso_tod", "YMD_Time", "parse", "dwim_day",    "dwim_time", "datetime_name", "datetime_short_name", "format_day_iso",    "format_day_iso_short", "SuperTimeRange",    "calendar_name", "calendar_object", "TimeRange",    "nulltimerange", "ruleset", "set_ruleset", "inano", "timezone",    "set_language", "default_rules", "TimeofDay",    "Second", "Fraction", "now", "Bahai" >);      array _indices()   {    return (array)magic;   }      #include "localization.h"      #if 1 - static mixed `[](string what) + protected mixed `[](string what)   {    if (!booted)    {    if (what == "_module_value") return UNDEFINED;    booted++;    stage++;      // load ISO   // it can crash here if you're loading from compiled modules   // that is updated without all of the calendar module is updated
pike.git/lib/modules/Calendar.pmod/module.pmod:74: Inside #if 1
   if (!defcal)    {    if (!iso_utc) `[]("ISO_UTC");    stage++;    defcal=master()->resolv("Calendar")[default_calendar];    stage--;    }    return defcal[what];   }    - static mixed `-> (string what) + protected mixed `-> (string what)   {    // This becomes an alias.    return `[] (what);   }   #endif -  +