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

184:    string all=read_all_namedays();       int i=search(all,"\nRegion \""+region+"\""); -  if (i==-1) return ([])[0]; // not found +  if (i==-1) return UNDEFINED; // not found       int i2=search(all,"\nRegion",i+1);    if (i2==-1) i2=strlen(all)-1;
279:    return find_namedays(s[9..]);       int i=search(all_data,sprintf("Event %O",s)); -  if (i==-1) return ([])[0]; +  if (i==-1) return UNDEFINED;       int j=search(all_data,"\n",i);    if (j==-1) j=0x7fffffff;
294:    if (!all_data) read_all_data();       int i=search(all_data,sprintf("\nRegion %O",c)); -  if (i==-1) return ([])[0]; +  if (i==-1) return UNDEFINED;       int j=search(all_data,"\nRegion \"",i+1);    if (j==-1) j=0x7fffffff;
394:    if (s=="tzshift")    return loaded_events->tzshift=Event.TZShift_Event();    -  return ([])[0]; +  return UNDEFINED;   }      Event.SuperEvent country(string s)