From 20cae8a917916791dde5c0318a7b18f0ad5a4d67 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 21 Jul 1997 12:47:38 +0000 Subject: [PATCH] Moved definition of nmem_control and nmem_block. --- util/nmem.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/util/nmem.c b/util/nmem.c index ebd7de2..ab897c1 100644 --- 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 $ - * 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 @@ -23,21 +26,6 @@ #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; -- 1.7.10.4