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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Timezone.pmod:759:    }       int lastoffset=0;    tr+=({" "*12,"return ({"});    foreach (z,Shift s)    {    tr+=({s->dump(lastoffset,my),"\n"," "*21});    lastoffset=s->offset;    }    tr[-3]=replace(tr[-3],", ","});"); -  sr=tr[..sizeof(tr)-2]+sr; +  sr=tr[..<1]+sr;    }    res+=sr+    ({" }\n"    " }\n"    "\n"    "constant firstyear="+firstyear+";\n"    "constant lastyear="+lastyear+";\n",    "array(string) rule_s=\n"});       multiset tzname=(<>);
pike.git/lib/modules/Calendar.pmod/Timezone.pmod:998:    program r=find_rule(a[1]);    foreach (r(0,a[2])->rule_s,string s)    tzname[sprintf(a[2],s)]=1;    }       res+=({"array(string) zone_s=({"+    map((array)tzname,    lambda(string s) { return sprintf("%O",s); })*",",    "});\n",    "array(int) shifts=({"}); -  foreach (rules[..sizeof(rules)-2],array a) +  foreach (rules[..<1],array a)    res+=({a[5]+","});    res+=({"});\n",    sprintf(    "string _sprintf(int t) { return (t=='O')?"    "%O:0; }\n"    "string zoneid=%O;\n","Rule.Timezone("+id+")",id)});       return res*"";    }    }