projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed test programs from makefile.
[idzebra-moved-to-github.git]
/
isam
/
memory.h
diff --git
a/isam/memory.h
b/isam/memory.h
index
2948448
..
2f92ee0
100644
(file)
--- a/
isam/memory.h
+++ b/
isam/memory.h
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: memory.h,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: memory.h,v $
- * Revision 1.1 1994-09-26 17:12:32 quinn
+ * 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
* Back again
*
* Revision 1.1 1994/09/26 16:07:57 quinn
@@
-15,10
+21,10
@@
#ifndef MEMORY_H
#define MEMORY_H
#ifndef MEMORY_H
#define MEMORY_H
-#include <isam.h>
-
extern int is_mbuf_size[3];
extern int is_mbuf_size[3];
+typedef unsigned int ISAM_P;
+
/*
* Memory buffer. Used to manage records (keys) in memory for
* reading and insertion/deletion.
/*
* Memory buffer. Used to manage records (keys) in memory for
* reading and insertion/deletion.
@@
-58,6
+64,7
@@
typedef struct is_mblock
struct is_mblock *next; /* next diskblock */
} is_mblock;
struct is_mblock *next; /* next diskblock */
} is_mblock;
+typedef struct isam_struct *ISAM;
/*
* Descriptor for a specific table.
*/
/*
* Descriptor for a specific table.
*/
@@
-73,8
+80,12
@@
typedef struct is_mtable
is_mblock *xmalloc_mblock();
is_mbuf *xmalloc_mbuf(int type);
void xfree_mblock(is_mblock *p);
is_mblock *xmalloc_mblock();
is_mbuf *xmalloc_mbuf(int type);
void xfree_mblock(is_mblock *p);
-void xfree_mbuf(is_mblock *p);
+void xfree_mblocks(is_mblock *l);
+void xfree_mbuf(is_mbuf *p);
+void xfree_mbufs(is_mbuf *l);
+void xrelease_mblock(is_mblock *p);
void is_m_establish_tab(ISAM is, is_mtable *tab, ISAM_P pos);
void is_m_establish_tab(ISAM is, is_mtable *tab, ISAM_P pos);
+void is_m_release_tab(is_mtable *tab);
void is_m_rewind(is_mtable *tab);
void is_m_replace_record(is_mtable *tab, const void *rec);
int is_m_write_record(is_mtable *tab, const void *rec);
void is_m_rewind(is_mtable *tab);
void is_m_replace_record(is_mtable *tab, const void *rec);
int is_m_write_record(is_mtable *tab, const void *rec);
@@
-84,5
+95,6
@@
int is_m_seek_record(is_mtable *tab, const void *rec);
void is_m_delete_record(is_mtable *tab);
int is_m_peek_record(is_mtable *tab, void *rec);
int is_m_read_full(is_mtable *tab, is_mblock *mblock);
void is_m_delete_record(is_mtable *tab);
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);
#endif
#endif