X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fnmem.c;h=ab897c1f3388c587b68d36dda2709bf8fb0a8b86;hb=33ec719e54ba8b5cc86c7745ebcbcfa572eb3e0d;hp=ebd7de2be9ea5c3bcb4ec9914e4291c9c1089ab2;hpb=d296bf4d8d017e615b5030f422b99053c4e382e0;p=yaz-moved-to-github.git 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;