Annotation of 43BSD/contrib/X/libvs100/mem.h, revision 1.1.1.1

1.1       root        1: /* $Header: mem.h,v 10.3 86/02/01 15:47:01 tony Rel $ */
                      2: /* mem.h       Data structure for maintaining memory allocation of vs100
                      3:  *             framebuffer memory.
                      4:  *
                      5:  * Author:     Paul J. Asente
                      6:  *             Digital Equipment Corporation
                      7:  *             Western Reseach Lab
                      8:  * Date:       June 1983
                      9:  */
                     10: 
                     11: /****************************************************************************
                     12:  *                                                                         *
                     13:  *  Copyright (c) 1983, 1984 by                                                    *
                     14:  *  DIGITAL EQUIPMENT CORPORATION, Maynard, Massachusetts.                 *
                     15:  *  All rights reserved.                                                   *
                     16:  *                                                                         *
                     17:  *  This software is furnished on an as-is basis and may be used and copied *
                     18:  *  only with inclusion of the above copyright notice. This software or any *
                     19:  *  other copies thereof may be provided or otherwise made available to     *
                     20:  *  others only for non-commercial purposes.  No title to or ownership of   *
                     21:  *  the software is hereby transferred.                                            *
                     22:  *                                                                         *
                     23:  *  The information in this software is  subject to change without notice   *
                     24:  *  and  should  not  be  construed as  a commitment by DIGITAL EQUIPMENT   *
                     25:  *  CORPORATION.                                                           *
                     26:  *                                                                         *
                     27:  *  DIGITAL assumes no responsibility for the use  or  reliability of its   *
                     28:  *  software on equipment which is not supplied by DIGITAL.                *
                     29:  *                                                                         *
                     30:  *                                                                         *
                     31:  ****************************************************************************/
                     32: 
                     33: #include "param.h"
                     34: 
                     35: typedef struct _VSArea {
                     36:        struct _VSArea *next;
                     37:        struct _VSArea *prev;
                     38:        caddr_t vsPtr;
                     39:        struct {
                     40:            unsigned int _vsFreeFlag : 1;
                     41:            int _vsSize : 31;
                     42:        } s;
                     43:        union {
                     44:            struct {
                     45:                struct _VSArea *next;
                     46:                struct _VSArea *prev;
                     47:            } _vsFree;
                     48:            int _vsType;
                     49:        } u;
                     50: } VSArea;
                     51: 
                     52: #define vsFreeFlag s._vsFreeFlag
                     53: #define vsSize s._vsSize
                     54: #define vsFree u._vsFree
                     55: #define vsType u._vsType
                     56: 
                     57: #define VS_FREE        0
                     58: #define VS_INUSE 1
                     59: 
                     60: #define BITMAP_TYPE 1
                     61: #define HALFTONE_TYPE 2
                     62: #define FONT_TYPE 3

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.