types.h

来自「一个操作系统的源代码」· C头文件 代码 · 共 53 行

H
53
字号
/** io.h
 **
 ** Original Author: Kasper Verdich Lund
 ** Date: 10/11/99
 **
 ** Description:
 ** Type definitions
 **
 ** 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 or 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
 **
 *********************************************************Apostle OS**/

#ifndef __TYPES_H_
#define __TYPES_H_

typedef signed char schar;
typedef unsigned char uchar;
typedef signed short sshort;
typedef unsigned short ushort;
typedef signed int sint;
typedef unsigned int uint;
typedef signed long slong;
typedef unsigned long ulong;

typedef uchar byte;
typedef ushort word;
typedef ulong dword;

typedef uchar bool;
typedef ulong size_t;
typedef slong ptrdiff_t;

#define TRUE (bool)1
#define FALSE (bool)0

#define NULL (void *)0

#endif /* __TYPES_H_ */

⌨️ 快捷键说明

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