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.22 2002/10/21 17:06:12 marcus Exp $ + || $Id: gdbmmod.c,v 1.23 2002/12/30 13:06:19 grubba Exp $   */      #include "global.h" - RCSID("$Id: gdbmmod.c,v 1.22 2002/10/21 17:06:12 marcus Exp $"); + RCSID("$Id: gdbmmod.c,v 1.23 2002/12/30 13:06:19 grubba 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"
pike.git/src/modules/Gdbm/gdbmmod.c:315:    if(ret.dptr)    {    push_string(DATUM_TO_STRING(ret));    free(ret.dptr);    }else{    push_int(0);    }   }      /*! @decl int store(string key, string data) -  *! @decl int `[]= (string key, stirng data) +  *! @decl int `[]= (string key, string data)    *!    *! Associate the contents of 'data' with the key 'key'. If the key 'key'    *! already exists in the database the data for that key will be replaced.    *! If it does not exist it will be added. An error will be generated if    *! the database was not open for writing.    *!    *! @example    *! gdbm[key] = data;    */