📄 common.hpp
字号:
/** * 基础包含文件 Version 1.0 * * Create: 2004-06-30 Modify: 2004-06-30 Complete: 2004-06-30 */#ifndef __COMMON_H__#define __COMMON_H__// 标准头文件#include <stdio.h>#include <stdlib.h>#include <memory.h>#include <fcntl.h>#include <stdarg.h>#include <time.h>#include <string.h>#include <ctype.h>#include <sys/types.h>#ifdef WIN32 #include <direct.h> #include <io.h> // Windows #define vsnprintf _vsnprintf // vsnprintf() in WIN32 is _vsnprintf#else #include <unistd.h> // Unix #include <signal.h>#endif // 基本类型定义#define BASETYPES#ifndef BYTE #define BYTE unsigned char#endif#ifndef WORD #define WORD unsigned int#endif#ifndef DWORD #define DWORD unsigned long#endif#ifndef WORD32 #define WORD32 unsigned long#endif#ifndef UCHAR #define UCHAR unsigned char#endif#ifndef UINT #define UINT unsigned int#endif#ifndef ULONG #define ULONG unsigned long#endif#ifndef LPCSTR #define LPCSTR const char* #define LPTSTR char*#endif#ifndef LPSTR #define LPSTR char *#endif#ifndef BOOL #define BOOL int#endif#ifndef TRUE #define TRUE 1 #define FALSE 0#endif// 兼容性宏定义#ifndef WIN32 #define O_BINARY 0 // Using in Windows only, unix is not need#endif #include "cstring.hpp" // Current using CString#ifndef __CSTRING__ #define CString String // STL using String,MFC using CString#endif// 输出调试信息#ifdef _DEBUG void DEBUG(LPCSTR sTraceInfo,...);#else #define DEBUG(sTraceInfo,sExtMsg)#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -