X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isam%2Fmemory.h;h=4a69110f724415ffa7d67d453b0f1e7f2a8639de;hb=49f1c8c877affdeb9e9221047c48beed3f475afb;hp=d082556f4074f2c17f2a81ee68a38378861eefa0;hpb=06cef3aac0230e856f36e61533e2a4e60f299a02;p=idzebra-moved-to-github.git diff --git a/isam/memory.h b/isam/memory.h index d082556..4a69110 100644 --- a/isam/memory.h +++ b/isam/memory.h @@ -1,10 +1,21 @@ /* - * Copyright (C) 1994, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: memory.h,v $ - * Revision 1.4 1995-12-06 15:48:47 quinn + * Revision 1.7 1999-02-02 14:51:21 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.6 1997/09/05 15:30:10 adam + * Changed prototype for chr_map_input - added const. + * Added support for C++, headers uses extern "C" for public definitions. + * + * Revision 1.5 1996/03/11 14:52:25 quinn + * Fixed update bug. Repeated insertion in the same area sometimes caused + * problems. + * + * Revision 1.4 1995/12/06 15:48:47 quinn * Fixed update-problem. * * Revision 1.3 1994/09/28 16:58:33 quinn @@ -24,6 +35,10 @@ #ifndef MEMORY_H #define MEMORY_H +#ifdef __cplusplus +extern "C" { +#endif + extern int is_mbuf_size[3]; typedef unsigned int ISAM_P; @@ -76,6 +91,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 +116,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