Branch: Tag:

2002-02-14

2002-02-14 17:24:27 by Martin Nilsson <mani@lysator.liu.se>

([])[0] -> UNDEFINED

Rev: lib/modules/ADT.pmod/Queue.pike:1.5
Rev: lib/modules/Calendar.pmod/Event.pmod:1.16
Rev: lib/modules/Calendar.pmod/Events.pmod:1.12
Rev: lib/modules/Calendar.pmod/Language.pmod:1.17
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.25
Rev: lib/modules/Calendar.pmod/module.pmod:1.7
Rev: lib/modules/GDK.pmod:1.11
Rev: lib/modules/Gnome.pmod:1.5
Rev: lib/modules/Remote.pmod/connection.pike:1.22

259:   static private Ruleset.Timezone _make_new_timezone_i(string tz,int plusminus)   {    object(Ruleset.Timezone) z=`[](tz); -  if (!z) return ([])[0]; +  if (!z) return UNDEFINED;    return make_new_timezone(z,plusminus);   }   
1069:    werror("Searching for zone %O\n",s);   #endif    if (zone_cache[s]) return zone_cache[s]; -  if (s=="") return ([])[0]; +  if (s=="") return UNDEFINED;       if (!all_rules) all_rules=get_all_rules();   
1087:    werror("hit at: %O\n",n);   #endif    if (n==-1) -  return ([])[0]; +  return UNDEFINED;    int i=max(n-100,0)-1,j;    do i=search(all_rules,"\nZone",(j=i)+1); while (i<n && i!=-1);   
1179:    werror("hit at: %O\n",n);   #endif    if (n==-1) -  return ([])[0]; +  return UNDEFINED;       int i=max(n-100,0)-1,j;    do i=search(all_rules,"\nRule",(j=i)+1); while (i<n && i!=-1);