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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/mkexpert.pike:107:    }    return res;   }      mapping|array|string generate_expert_tree(array(object) zones)   {    if (sizeof(zones) == 1) {    // A single zone.    return zones[0]->zoneid;    } +  // FIXME: Do we need to also incorporate summer-time transitions? +  // FIXME: Move the probes to the middle between transitions for +  // improved robustness against differing versions of tzdata.    array(int) times = Array.uniq(sort(zones->shifts * ({})));    times = ({ times[0]-1 }) + times;    int l, h = sizeof(times);    int start;    while (l+1 < h) {    int m = (l + h)/2;    if (times[m] < 0) l = m+1;    else h = m;    }    start = l;