pike.git / src / modules / Gdbm / gdbmmod.c

version» Context lines:

pike.git/src/modules/Gdbm/gdbmmod.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: gdbmmod.c,v 1.7 1999/02/10 21:47:17 hubbe Exp $"); + RCSID("$Id: gdbmmod.c,v 1.8 1999/06/19 20:20:38 hubbe Exp $");   #include "gdbm_machine.h"   #include "threads.h"      /* Todo: make sure only one thread accesses the same gdbmmod */      #if defined(HAVE_GDBM_H) && defined(HAVE_LIBGDBM)      #include "interpret.h"   #include "svalue.h"   #include "stralloc.h"
pike.git/src/modules/Gdbm/gdbmmod.c:333:   void pike_module_init(void)   {   #if defined(HAVE_GDBM_H) && defined(HAVE_LIBGDBM)    start_new_program();    ADD_STORAGE(struct gdbm_glue);       /* function(void|string,void|string:void) */    ADD_FUNCTION("create",gdbmmod_create,tFunc(tOr(tVoid,tStr) tOr(tVoid,tStr),tVoid),0);       /* function(:void) */ -  ADD_FUNCTION("close",gdbmmod_close,tFunc(,tVoid),0); +  ADD_FUNCTION("close",gdbmmod_close,tFunc(tNone,tVoid),0);    /* function(string,string:int) */    ADD_FUNCTION("store",gdbmmod_store,tFunc(tStr tStr,tInt),0);    /* function(string,string:int) */    ADD_FUNCTION("`[]=",gdbmmod_store,tFunc(tStr tStr,tInt),0);    /* function(string:string) */    ADD_FUNCTION("fetch",gdbmmod_fetch,tFunc(tStr,tStr),0);    /* function(string:string) */    ADD_FUNCTION("`[]",gdbmmod_fetch,tFunc(tStr,tStr),0);    /* function(string:int) */    ADD_FUNCTION("delete",gdbmmod_delete,tFunc(tStr,tInt),0);    /* function(:string) */ -  ADD_FUNCTION("firstkey",gdbmmod_firstkey,tFunc(,tStr),0); +  ADD_FUNCTION("firstkey",gdbmmod_firstkey,tFunc(tNone,tStr),0);    /* function(string:string) */    ADD_FUNCTION("nextkey",gdbmmod_nextkey,tFunc(tStr,tStr),0);    /* function(:int) */ -  ADD_FUNCTION("reorganize",gdbmmod_reorganize,tFunc(,tInt),0); +  ADD_FUNCTION("reorganize",gdbmmod_reorganize,tFunc(tNone,tInt),0);    /* function(:void) */ -  ADD_FUNCTION("sync",gdbmmod_sync,tFunc(,tVoid),0); +  ADD_FUNCTION("sync",gdbmmod_sync,tFunc(tNone,tVoid),0);       set_init_callback(init_gdbm_glue);    set_exit_callback(exit_gdbm_glue);    end_class("gdbm",0);   #endif   }