Branch: Tag:

2000-09-17

2000-09-17 20:00:23 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

traced bad loading of pre-compiled modules; just added a comment about it

Rev: lib/modules/Calendar.pmod/module.pmod:1.4

3:   static private object defcal;   static private object iso_utc;   static private object default_rules; - static private multiset magic= // magic + indices(Calendar.ISO) without YMD + constant magic= // magic + indices(Calendar.ISO) without YMD   (<    "ISO_UTC","II", "default_rules",    "_sprintf", "set_timezone", "language", "Day", "Year", "Week",
21: Inside #if 1
  #if 1   mixed `[](string what)   { - // werror("%O\n",what); +     if (!booted)    {    booted++;
37: Inside #if 1
   master()->resolv("Calendar")["Gregorian"];      // load ISO -  iso_utc=master()->resolv("Calendar")["ISO"]->set_timezone("UTC"); + // it can crash here if you're loading from compiled modules + // that is updated without all of the calendar module is updated +  iso_utc=master()->resolv("Calendar")["ISO"]; +  iso_utc=iso_utc->set_timezone("UTC");    stage--;    object tz=    master()->resolv("Calendar")["Timezone"][default_timezone];
50: Inside #if 1
   switch (what)    {    case "ISO_UTC": +  if (!iso_utc) +  error("ERROR\n");    return iso_utc;    case "II":    return 1;
59: Inside #if 1
   default_rules=master()->resolv("Calendar")["Ruleset"]();    default_rules=default_rules->set_language(default_language);    } -  // load ISO_UTC and set timezone -  if (!iso_utc) `[]("ISO_UTC"); +  // load ISO_UTC and set timezone there + // if (!iso_utc) `[]("ISO_UTC"); +  // timezone will be set on the way out, through boot above    return default_rules;    }    if (!defcal)