projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e0d889d
)
Moved definition of nmem_control and nmem_block.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 21 Jul 1997 12:47:38 +0000
(12:47 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 21 Jul 1997 12:47:38 +0000
(12:47 +0000)
util/nmem.c
patch
|
blob
|
history
diff --git
a/util/nmem.c
b/util/nmem.c
index
ebd7de2
..
ab897c1
100644
(file)
--- a/
util/nmem.c
+++ b/
util/nmem.c
@@
-1,10
+1,13
@@
/*
/*
- * Copyright (c) 1995, Index Data.
+ * Copyright (c) 1995-1997, Index Data.
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: nmem.c,v $
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: nmem.c,v $
- * Revision 1.2 1995-12-13 13:44:37 quinn
+ * Revision 1.3 1997-07-21 12:47:38 adam
+ * Moved definition of nmem_control and nmem_block.
+ *
+ * Revision 1.2 1995/12/13 13:44:37 quinn
* Modified Data1-system to use nmem
*
* Revision 1.1 1995/11/13 09:27:52 quinn
* Modified Data1-system to use nmem
*
* Revision 1.1 1995/11/13 09:27:52 quinn
@@
-23,21
+26,6
@@
#define NMEM_CHUNK (10*1024)
#define NMEM_CHUNK (10*1024)
-typedef struct nmem_block
-{
- char *buf; /* memory allocated in this block */
- int size; /* size of buf */
- int top; /* top of buffer */
- struct nmem_block *next;
-} nmem_block;
-
-typedef struct nmem_control
-{
- int total;
- nmem_block *blocks;
- struct nmem_control *next;
-} nmem_control;
-
static nmem_block *freelist = 0; /* global freelists */
static nmem_control *cfreelist = 0;
static nmem_block *freelist = 0; /* global freelists */
static nmem_control *cfreelist = 0;