types.h

来自「用c语言开发的操作系统内核」· C头文件 代码 · 共 54 行

H
54
字号
/************************************************************************
*
*  Module name         : TYPES.H
*
*  Module description  :
*     This header file defines new types and symbols for RTMK.
*
*  Project             : RTMK
*
*  Target platform     : DOS
*
*  Compiler & Library  : BC++ 3.1
*
*  Author              : Richard Shen
*
*  Creation date       : 17 August, 1995
*
************************************************************************/
#ifndef TYPES_H
#define TYPES_H

#include <stddef.h>

#ifndef  XTYPES_H
   /* these following have already been defined in xtypes.h */
typedef unsigned char      uchar;
typedef unsigned int       uint;
typedef unsigned long      ulong;

#ifdef __cplusplus
   enum BOOLEAN            { FALSE, TRUE };
#else
   #ifdef __DOS__
      typedef int          BOOLEAN;
   #else
      typedef uchar        BOOLEAN;
   #endif /* __DOS__ */

   #define FALSE           0
   #define TRUE            1
#endif /* __cplusplus */

#ifdef __cplusplus
#  define   __CPPARGS      ...
#else
#  define   __CPPARGS      void
#endif /* __cplusplus */

#endif /* XTYPES_H */

typedef BOOLEAN            bool;

#endif /* TYPES_H */

⌨️ 快捷键说明

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