Branch: Tag:

2003-08-07

2003-08-07 14:20:19 by Martin Nilsson <mani@lysator.liu.se>

Don't user search for has_value

Rev: lib/modules/Calendar.pmod/Events.pmod:1.15
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.30
Rev: lib/modules/Calendar.pmod/mkrules.pike:1.9

990:       multiset tzname=(<>);    foreach (rules,array a) -  if (search(a[2],"%s")==-1) +  if (!has_value(a[2], "%s"))    tzname[a[2]]=1;    else    {
1288:    {    offset_to_utc=offset;    name=_name; -  if (search(name,"/")!=-1) +  if (has_value(name, "/"))    {    names=name/"/";    tzformat=lambda(string s)