Back to home page

Quest Cross Reference

 
 

    


Warning, cross-references for /libc/src/buffer.h need to be fixed.

0001 /*                    The Quest Operating System
0002  *  Copyright (C) 2005-2010  Richard West, Boston University
0003  *
0004  *  This program is free software: you can redistribute it and/or modify
0005  *  it under the terms of the GNU General Public License as published by
0006  *  the Free Software Foundation, either version 3 of the License, or
0007  *  (at your option) any later version.
0008  *
0009  *  This program is distributed in the hope that it will be useful,
0010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  *  GNU General Public License for more details.
0013  *
0014  *  You should have received a copy of the GNU General Public License
0015  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
0016  */
0017 
0018 #define MAXBLKS 128       /* --??-- Max blocks (holes) in free memory.   */
0019 
0020 #ifndef FALSE
0021 #define FALSE 0
0022 #endif
0023 #ifndef TRUE
0024 #define TRUE 1
0025 #endif
0026 
0027 typedef struct frec *frec_p;
0028 typedef char *addrs_t;
0029 typedef void *any_t;
0030 
0031 typedef struct frec {
0032   addrs_t fbp;                  /* Free block pointer.                    */  
0033   size_t size;
0034   frec_p next;
0035 } frec_t;                       /* Free record type.                      */
0036 
0037 
0038 /* 
0039  * Local Variables:
0040  * indent-tabs-mode: nil
0041  * mode: C
0042  * c-file-style: "gnu"
0043  * c-basic-offset: 2
0044  * End: 
0045  */
0046 
0047 /* vi: set et sw=2 sts=2: */