X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=isam%2Fmemory.h;h=77bc660224e256c2ffa46e431483bbc2502624dc;hp=d082556f4074f2c17f2a81ee68a38378861eefa0;hb=896c0427df9d8eff5de6a1735dcd992e067df844;hpb=06cef3aac0230e856f36e61533e2a4e60f299a02 diff --git a/isam/memory.h b/isam/memory.h index d082556..77bc660 100644 --- a/isam/memory.h +++ b/isam/memory.h @@ -1,29 +1,34 @@ -/* - * Copyright (C) 1994, Index Data I/S - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: memory.h,v $ - * Revision 1.4 1995-12-06 15:48:47 quinn - * Fixed update-problem. - * - * Revision 1.3 1994/09/28 16:58:33 quinn - * Small mod. - * - * Revision 1.2 1994/09/27 20:03:52 quinn - * Seems relatively bug-free. - * - * Revision 1.1 1994/09/26 17:12:32 quinn - * Back again - * - * Revision 1.1 1994/09/26 16:07:57 quinn - * Most of the functionality in place. - * - */ +/* $Id: memory.h,v 1.8 2002-08-02 19:26:56 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #ifndef MEMORY_H #define MEMORY_H +#ifdef __cplusplus +extern "C" { +#endif + extern int is_mbuf_size[3]; typedef unsigned int ISAM_P; @@ -76,6 +81,7 @@ typedef struct is_mtable int num_records; /* total number of records */ int pos_type; /* blocktype */ is_mblock *cur_mblock; + is_mbuf *last_mbuf; is_mblock *data; /* blocks contained in this table */ ISAM is; } is_mtable; @@ -100,4 +106,9 @@ int is_m_peek_record(is_mtable *tab, void *rec); int is_m_read_full(is_mtable *tab, is_mblock *mblock); int is_m_num_records(is_mtable *tab); +#ifdef __cplusplus +} +#endif + + #endif