pike.git / src / modules / Yp / yp.c

version» Context lines:

pike.git/src/modules/Yp/yp.c:24:   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "mapping.h"   #include "builtin_functions.h"   #include "module_support.h"      /* must be included last */   #include "module_magic.h"    - RCSID("$Id: yp.c,v 1.23 2001/12/08 01:52:34 nilsson Exp $"); + RCSID("$Id: yp.c,v 1.24 2002/02/14 01:43:26 nilsson Exp $");      #ifdef HAVE_YPERR_STRING   #define YPERROR(fun,err) do{ if(err) Pike_error("yp->%s(): %s\n", (fun), \    yperr_string(err)); }while(0)   #else /* !HAVE_YPERR_STRING */   #define YPERROR(fun,err) do{ if(err) Pike_error("yp->%s(): YP error %d.\n", (fun), \    (err)); }while(0)   #endif /* HAVE_YPERR_STRING */      struct my_yp_domain
pike.git/src/modules/Yp/yp.c:171:       this->last_size = num;    pop_n_elems(args);    push_mapping( res_map );   }      /*! @decl void map(string map, function(string, string:void) fun)    *!    *! For each entry in @[map], call the function specified by @[fun].    *! -  *! @[fun()] will get two arguments, the first being the key, and the +  *! @[fun] will get two arguments, the first being the key, and the    *! second the value.    *!    *! @[map] is the YP-map to search in. This must be the full map name.    *! eg @tt{passwd.byname@} instead of just @tt{passwd@}.    */   static void f_map(INT32 args)   {    int err;    char *retval, *retkey;    int retlen, retkeylen;