ps_def.h

来自「我自己写的一个文本阅读器」· C头文件 代码 · 共 54 行

H
54
字号
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifndef PS_DEF_H_20050601
#define PS_DEF_H_20050601

typedef 	char	 		ps_s8;
typedef unsigned char 		ps_u8;

typedef  short 				ps_s16;
typedef unsigned short 		ps_u16;

typedef int 				ps_s32;
typedef unsigned int 		ps_u32;

//typedef long long  			ps_s64;

typedef char				ps_char;
typedef unsigned char		ps_byte;
typedef ps_char *			ps_string;

typedef int				ps_bool;
typedef int				ps_int; 
typedef unsigned int			ps_uint;
typedef short	int			ps_short;
typedef unsigned short		ps_word;

typedef long				ps_long;
typedef ps_u32				ps_dword;
typedef unsigned long		ps_ulong;
typedef ps_int				ps_ret;

typedef void				ps_void;	
typedef ps_void *			ps_handle;

//#define ST_ALIGN_BYTE	 __attribute__ ((packed))


#define PS_TRUE			1
#define PS_FALSE			0
#define PSS_NULL			((ps_void *)0)


#define min_t(type,a,b)	(((a)<(b))?(a):(b))

//#define PS_LOG
//#define PS_DEBUG_MEMORY 


//#define ps_inline 

#endif		//#define PS_DEF_H_20050601

⌨️ 快捷键说明

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