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.13 2001/01/23 13:47:31 grubba Exp $"); + RCSID("$Id: gdbmmod.c,v 1.14 2001/01/23 22:12:39 grubba Exp $");   #include "gdbm_machine.h"   #include "threads.h"      /* Todo: make sure only one thread accesses the same gdbmmod */      #include "interpret.h"   #include "svalue.h"   #include "stralloc.h"   #include "array.h"   #include "object.h"
pike.git/src/modules/Gdbm/gdbmmod.c:346:   void pike_module_exit(void) {}      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), ID_STATIC); +  tFunc(tOr(tVoid,tStr) tOr(tVoid,tStr), tVoid), 0 /*ID_STATIC*/);       /* function(:void) */    ADD_FUNCTION("close",gdbmmod_close,tFunc(tNone,tVoid),0);    /* function(string, string, int(0..1)|void: int) */    ADD_FUNCTION("store", gdbmmod_store,    tFunc(tStr tStr tOr(tInt01, tVoid), tInt), 0);    /* function(string, string, int(0..1)|void: int) */    ADD_FUNCTION("`[]=", gdbmmod_store,    tFunc(tStr tStr tOr(tInt01, tVoid), tInt), 0);    /* function(string:string) */