Branch: Tag:

2003-03-12

2003-03-12 17:02:13 by Martin Nilsson <mani@lysator.liu.se>

Made more stuff static. No need to resolve Language in the bootstrap.

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

5:   static private object defcal;   static private object iso_utc;   static private object default_rules; - constant magic= // magic + indices(Calendar.ISO) without YMD + static constant magic= // magic + indices(Calendar.ISO) without YMD   (<    "ISO_UTC","II", "default_rules",    "_sprintf", "set_timezone", "language", "Day", "Year", "Week",
21:   #include "localization.h"      #if 1 - mixed `[](string what) + static mixed `[](string what)   {    if (!booted)    {
29: Inside #if 1
   stage++;   // bootstrap in the right order    master()->resolv("Calendar")["Timezone"]; -  master()->resolv("Calendar")["Language"]; +     master()->resolv("Calendar")["TimeRanges"];    master()->resolv("Calendar")["Calendar"];    master()->resolv("Calendar")["Time"];
78: Inside #if 1
   }    return defcal[what];   } - mixed `-> = `[]; + static mixed `-> = `[];   #endif