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.3 1997/05/19 22:48:34 hubbe Exp $"); + RCSID("$Id: gdbmmod.c,v 1.4 1997/08/30 18:36:04 grubba 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:25:   static MUTEX_T gdbm_lock;   #endif      struct gdbm_glue   {    GDBM_FILE dbf;   };      #define THIS ((struct gdbm_glue *)(fp->current_storage))    - static void do_free() + static void do_free(void)   {    if(THIS->dbf)    {    GDBM_FILE dbf;    dbf=THIS->dbf;    THIS->dbf=0;       THREADS_ALLOW();    mt_lock(& gdbm_lock);    gdbm_close(dbf);