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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/mkrules.pike:3:   // ftp://elsie.nci.nih.gov/pub/   // (timezone mailing list: tz@elsie.nci.nih.gov)   //   // source datafile are usually found somewhere around zic(8),   // if they exist in the system.   //   // Most systems only have compiled files, just like pike,   // and zic(8) is the usual compiler.      // pike mkrules.pike ../data/{africa,antarctica,asia,australasia,backward,etcetera,europe,northamerica,pacificnew,southamerica,systemv} - // $Id: mkrules.pike,v 1.11 2006/11/04 19:06:48 nilsson Exp $ + // $Id: mkrules.pike,v 1.12 2008/05/18 13:15:17 grubba Exp $      #pike __REAL_VERSION__      object cal=Calendar.ISO->set_timezone("UTC");   function Year=cal->Year;   object nleapy=Year(1999);      object tzrules; // needed to make timezones, compiled below      mapping rules=([]);
pike.git/lib/modules/Calendar.pmod/mkrules.pike:669:    if (links[s]) links[s]+=({t});    else links[s]=({t});    }    else if (sscanf(line,"%*[ \t]%[-0-9]%s",s,t)==3 && sizeof(s))    {    if (!lastz) complain("implicit zone line w/o zone\n");    lastz->add(s+t);    }    else if ((t="",sscanf(line,"%[ \t]",t),t==line))    ; -  else if (sscanf(line,"%*[ \t]#%s",t,s)==2) +  else if (sscanf(line,"%*[ \t]#%s",t)==2)    ;    else    complain("unknown keyword %O...\n",line[..10]);    };    if (err)    if (stringp(err))    werror("%s:%d: %s",file,n,err);    else    throw(err);    }