pike.git / src / modules / Yp / module.pmod.in

version» Context lines:

pike.git/src/modules/Yp/module.pmod.in:1:   // -*- Pike -*-   //   // YP (NIS) Functionality for Pike   // Per Hedbor & Henrik Grubbström 1996-1997   // - // $Id: module.pmod.in,v 1.17 2002/09/21 15:08:31 mast Exp $ + // $Id: module.pmod.in,v 1.18 2002/11/28 06:04:32 nilsson Exp $      #pike __REAL_VERSION__   inherit @module@;      #if constant(@module@.Domain)      // Usual nicknames   constant nicknames = ([    "passwd":"passwd.byname",    "group":"group.byname",
pike.git/src/modules/Yp/module.pmod.in:126:    {    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() })); +  error( "Cast to " + type + " not supported.\n" );    }    }   }      #endif