umem.h

来自「CC386 is a general-purpose 32-bit C comp」· C头文件 代码 · 共 73 行

H
73
字号
/* 
Copyright 2001-2003 Free Software Foundation, Inc.
Written by David Lindauer, LADSoft

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.  

You may contact the author at:

mailto::camille@bluegrass.net

or by snail mail at:

David Lindauer
850 Washburn Ave Apt 99
Louisville, KY 40222
 */
#ifndef _MEM_H_
    #define _MEM_H_
    /*
     * EMS mem control type
     */
    #define MAX_EMS_READWRITE 16384

    typedef struct _emsmem
    {
        struct _emsmem *next;
        union
        {
            BYTE *address;
            unsigned short handle;
        } id;
        long size;
        BOOL inems;
        BYTE fill;
    }
    EMSMEM;

    /*
     * Linked list type.  Used for filenames, module number list, segment lists
     */
    typedef struct _list_
    {
        struct _list_ *link; /* Link to next element */
        void *data; /* Generic data */
    } LIST;

    /* Hash table record definition, all entries in a hash table must be
     * structures with the first two elements as given because hash table
     * entries are sometimes handled generically */

    typedef struct _hashrec_
    {
        struct _hashrec_ *link; /* Link to next element in list */
        char *key; /* Full key */
    } HASHREC;

    #include "umem.p"

#endif /* _MEM_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?