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

version» Context lines:

pike.git/src/modules/Yp/yp.c:21:   #include "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"    - RCSID("$Id: yp.c,v 1.14 1998/08/08 13:56:56 grubba Exp $"); + RCSID("$Id: yp.c,v 1.15 1999/02/01 02:45:31 hubbe Exp $");      #define YPERROR(fun,err) do{ if(err) error("yp->%s(): %s\n", (fun), \    yperr_string(err)); }while(0)      struct my_yp_domain   {    char *domain;    int last_size; /* Optimize some allocations */   };   
pike.git/src/modules/Yp/yp.c:214:   /******************** PUBLIC FUNCTIONS BELOW THIS LINE */         void pike_module_init(void)   {    add_efun("default_yp_domain", f_default_yp_domain, "function(void:string)",    OPT_EXTERNAL_DEPEND);       start_new_program();    -  add_storage(sizeof(struct my_yp_domain)); +  ADD_STORAGE(struct my_yp_domain);       set_init_callback( init_yp_struct );    set_exit_callback( exit_yp_struct );       add_function("create", f_create, "function(string|void:void)", 0);    add_function("bind", f_create, "function(string:void)", 0);       add_function("match", f_match, "function(string,string:string)", 0);    add_function("server", f_server, "function(string:string)", 0);    add_function("all", f_all, "function(string:mapping(string:string))", 0);