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.   \*/   #include "global.h" - RCSID("$Id: gdbmmod.c,v 1.18 2002/05/31 22:31:39 nilsson Exp $"); + RCSID("$Id: gdbmmod.c,v 1.19 2002/09/25 14:12:44 marcus 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"   #include "pike_macros.h"      #if defined(HAVE_GDBM_H) && defined(HAVE_LIBGDBM)      #include <gdbm.h>    - #ifdef _REENTRANT - static MUTEX_T gdbm_lock STATIC_MUTEX_INIT; - #endif + #endif /* defined(HAVE_GDBM_H) && defined(HAVE_LIBGDBM) */      /* THIS MUST BE INCLUDED LAST */   #include "module_magic.h"    -  + #if defined(HAVE_GDBM_H) && defined(HAVE_LIBGDBM) +  + #ifdef _REENTRANT + static MUTEX_T gdbm_lock STATIC_MUTEX_INIT; + #endif +    #define sp Pike_sp      struct gdbm_glue   {    GDBM_FILE dbf;   };      #define THIS ((struct gdbm_glue *)(Pike_fp->current_storage))      static void do_free(void)