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

version» Context lines:

pike.git/src/modules/Yp/yp.c:11:   #ifdef HAVE_RPC_RPC_H   #include <rpc/rpc.h>   #endif /* HAVE_RPC_RPC_H */   #ifdef HAVE_RPC_CLNT_H   #include <rpc/clnt.h>   #endif /* HAVE_RPC_CLNT_H */   #include <rpcsvc/yp_prot.h>   #include <rpcsvc/ypclnt.h>      #include "stralloc.h" - #include "error.h" + #include "pike_error.h"   #include "pike_macros.h"   #include "object.h"   #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.19 2000/08/17 18:31:26 grubba Exp $"); + RCSID("$Id: yp.c,v 1.20 2000/12/01 08:10:24 hubbe Exp $");      #ifdef HAVE_YPERR_STRING - #define YPERROR(fun,err) do{ if(err) error("yp->%s(): %s\n", (fun), \ + #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) error("yp->%s(): YP error %d.\n", (fun), \ + #define YPERROR(fun,err) do{ if(err) Pike_error("yp->%s(): YP Pike_error %d.\n", (fun), \    (err)); }while(0)   #endif /* HAVE_YPERR_STRING */      struct my_yp_domain   {    char *domain;    int last_size; /* Optimize some allocations */   };      #define this ((struct my_yp_domain *)fp->current_storage)