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

version» Context lines:

pike.git/src/modules/Yp/yp.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: yp.c,v 1.27 2002/10/11 01:39:49 nilsson Exp $ + || $Id: yp.c,v 1.28 2002/10/21 17:06:23 marcus Exp $   */      #include "global.h"   #include "config.h"      #if defined(HAVE_RPCSVC_YPCLNT_H) && defined(HAVE_RPCSVC_YP_PROT_H)   #ifdef HAVE_SYS_TYPES_H   #include <sys/types.h>   #endif /* HAVE_SYS_TYPES_H */   #ifdef HAVE_RPC_TYPES_H
pike.git/src/modules/Yp/yp.c:28:   #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" +       #define sp Pike_sp    - RCSID("$Id: yp.c,v 1.27 2002/10/11 01:39:49 nilsson Exp $"); + RCSID("$Id: yp.c,v 1.28 2002/10/21 17:06:23 marcus 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:301:      /*! @endclass    */      /*! @endmodule    */      /******************** PUBLIC FUNCTIONS BELOW THIS LINE */       - void pike_module_init(void) + PIKE_MODULE_INIT   {      /* function(void:string) */    ADD_EFUN("default_yp_domain", f_default_yp_domain,tFunc(tVoid,tStr),    OPT_EXTERNAL_DEPEND);       start_new_program();       ADD_STORAGE(struct my_yp_domain);   
pike.git/src/modules/Yp/yp.c:334:    /* function(string:mapping(string:string)) */    ADD_FUNCTION("all", f_all,tFunc(tStr,tMap(tStr,tStr)), 0);    /* function(string,function|array(function):void) */    ADD_FUNCTION("map", f_map,tFunc(tStr tOr(tFunction,tArr(tFunction)),tVoid), 0);    /* function(string:int) */    ADD_FUNCTION("order", f_order,tFunc(tStr,tInt), 0);       end_class("Domain", 0);   }    - void pike_module_exit(void) + PIKE_MODULE_EXIT   {      }   #else    - #include "module_magic.h" - void pike_module_init(void) {} - void pike_module_exit(void) {} + #include "module.h" + PIKE_MODULE_INIT {} + PIKE_MODULE_EXIT {}      #endif