Branch: Tag:

1997-06-09

1997-06-09 18:44:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a minor bug.

Rev: src/modules/Yp/module.pmod.in:1.2

1:   /* -  * $Id: module.pmod.in,v 1.1 1997/06/09 18:37:59 grubba Exp $ +  * $Id: module.pmod.in,v 1.2 1997/06/09 18:44:56 grubba Exp $    *    * YP (NIS) Functionality for Pike    *
31:    }    string `[](string key)    { -  return(match(key)); +  return(domain->match(ypmap, key));    }    mapping all()    {
63:    }    array(string) values()    { -  return(values(domain->all(ypmap)); +  return(values(domain->all(ypmap)));    } -  +  mixed cast(string type) +  { +  switch(type) { +  case "mapping": +  return(cast_to_mapping()); +  default: +  throw(({ "Yp.YpDomain: Cast to " + type + " not supported.\n", +  backtrace() })); +  } +  }   };