⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cosbase.h

📁 COS 0.0.1.rar Cos操作系统源代码
💻 H
字号:
/* cosbase.h - basic definitions as used by COS.   Author:        Paul Barker Part of:       COS Created:       25/04/04 Last Modified: 11/09/04 Copyright (C) 2004 Paul Barker        This particular header could be useful to any project and provides    several "utility" definitions. Therefore I've decided you can do what    you want with it, its now Public Domain.*//*26/08/04:	Changed NULL from ((void*)0) to (0)02/09/04:	Changed name to cosbase.h		Added UNUSED()*/#ifndef _COSBASE_H_#define _COSBASE_H_// word types, platform-dependent sizestypedef unsigned char		half_t;typedef unsigned short		word_t;typedef unsigned long		dword_t;typedef unsigned long long	quad_t;// integer types, independent sizestypedef signed char		i8_t;	// 8-bit, signedtypedef unsigned char		u8_t;	// 8-bit, unsignedtypedef signed short		i16_t;	// 16-bit, signedtypedef unsigned short		u16_t;	// 16-bit, unsignedtypedef signed long		i32_t;	// 32-bit, signedtypedef unsigned long		u32_t;	// 32-bit, unsignedtypedef signed long long	i64_t;	// 64-bit, signedtypedef unsigned long long	u64_t;	// 64-bit, unsigned// integer types, dependent sizestypedef int			int_t;typedef unsigned int		uint_t;typedef short			short_t;typedef unsigned short		ushort_t;typedef long long		long_t;typedef unsigned long long	ulong_t;// string typestypedef char			char_t;typedef char*			string_t;typedef const char*		cstring_t;// pointer and memory types (should all be the same size)typedef void*			pvoid_t;typedef void*			ptr_t;typedef const void*		cptr_t;typedef unsigned long		ptrdiff_t;typedef unsigned long		size_t;typedef unsigned long		iptr_t;// otherstypedef int			count_t;	// allow negative countstypedef signed char		bool_t;		// allow -ve values for bool// register sizetypedef unsigned int		register_t;// filestypedef dword_t			fileh;typedef unsigned long		fresult_t;// boolean values#define True 1#define False 0#define IsTrue(x) (x != 0)#define IsFalse(x) (x == 0)#define NULL (0)// some other generally useful things#define UNUSED(x)#endif // !_COS_STDTYPES_H_

⌨️ 快捷键说明

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