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.21 2002/10/11 01:39:40 nilsson Exp $ + || $Id: gdbmmod.c,v 1.22 2002/10/21 17:06:12 marcus Exp $   */      #include "global.h" - RCSID("$Id: gdbmmod.c,v 1.21 2002/10/11 01:39:40 nilsson Exp $"); + RCSID("$Id: gdbmmod.c,v 1.22 2002/10/21 17:06:12 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" -  + #include "module.h"      #if defined(HAVE_GDBM_H) && defined(HAVE_LIBGDBM)      #include <gdbm.h>    - #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;   };
pike.git/src/modules/Gdbm/gdbmmod.c:454:   }      /*! @endclass    */      /*! @endmodule    */      #endif /* defined(HAVE_GDBM_H) && defined(HAVE_LIBGDBM) */    - void pike_module_exit(void) {} + PIKE_MODULE_EXIT {}    - void pike_module_init(void) + 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*/);       /* function(:void) */