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 as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: gdbmmod.c,v 1.16 2002/01/16 02:59:19 nilsson Exp $"); + RCSID("$Id: gdbmmod.c,v 1.17 2002/05/11 00:27:02 nilsson 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"    - /* THIS MUST BE INCLUDED LAST */ - #include "module_magic.h" -  +    #if defined(HAVE_GDBM_H) && defined(HAVE_LIBGDBM)      #include <gdbm.h>      #ifdef _REENTRANT   static MUTEX_T gdbm_lock STATIC_MUTEX_INIT;   #endif    -  + /* THIS MUST BE INCLUDED LAST */ + #include "module_magic.h" +  + #define sp Pike_sp +    struct gdbm_glue   {    GDBM_FILE dbf;   };      #define THIS ((struct gdbm_glue *)(Pike_fp->current_storage))      static void do_free(void)   {    if(THIS->dbf)