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

version» Context lines:

pike.git/src/modules/Gdbm/gdbmmod.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: gdbmmod.c,v 1.33 2007/04/25 15:33:22 grubba Exp $ + || $Id: gdbmmod.c,v 1.34 2008/06/28 23:05:58 nilsson Exp $   */      #include "global.h"   #include "gdbm_machine.h"   #include "threads.h"      /* Todo: make sure only one thread accesses the same gdbmmod */      #include "interpret.h"   #include "svalue.h"
pike.git/src/modules/Gdbm/gdbmmod.c:519:   PIKE_MODULE_EXIT {}      PIKE_MODULE_INIT   {   #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 /*ID_STATIC*/); +  tFunc(tOr(tVoid,tStr) tOr(tVoid,tStr), tVoid), 0 /*ID_PROTECTED*/);       /* function(:void) */    ADD_FUNCTION("close",gdbmmod_close,tFunc(tNone,tVoid),0);    /* function(string, string, int(0..1)|void: int) */    ADD_FUNCTION("store", gdbmmod_store_compat,    tFunc(tStr tStr tOr(tInt01, tVoid), tInt), 0);    /* function(string, string, int(0..1)|void: string) */    ADD_FUNCTION("`[]=", gdbmmod_store,    tFunc(tStr tSetvar(0, tStr) tOr(tInt01, tVoid), tVar(0)), 0);    /* function(string:string) */