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

📄 stdint.h.svn-base

📁 wipfw 是windows下的网络控制工具
💻 SVN-BASE
字号:
#ifndef _types_h_
#define _types_h_

#define CHAR_BIT        8

#ifndef ULONG_MAX
# define ULONG_MAX  (~0UL)
#endif

#ifdef __LCC__
typedef unsigned int        uint32_t;
typedef long long           _int64;
typedef unsigned long long  uint64_t;
#endif  /* __LCC__ */

#define UCHAR   unsigned char
#define USHORT  unsigned short
#define ULONG   unsigned long

#ifdef _MSC_VER
typedef char                int8_t;
typedef int                 int32_t;
typedef unsigned char       uint8_t;
typedef unsigned short      uint16_t;
typedef unsigned int        uint32_t;
typedef unsigned __int64    uint64_t;
typedef unsigned char       u_char;
typedef unsigned short      u_short;
typedef unsigned int        u_int;
typedef unsigned long       u_long;
#endif  /* _MSC_VER */

typedef unsigned char           u_int8_t;
typedef unsigned short          u_int16_t;
typedef unsigned int            u_int32_t;
typedef unsigned __int64        u_int64_t;
typedef unsigned int            uint;

#define uintptr_t               unsigned long

/*
 * Network types.
 *
 * Internally the system keeps counters in the headers with the bytes
 * swapped so that VAX instructions will work on them.  It reverses
 * the bytes before transmission at each protocol level.  The n_ types
 * represent the types with the bytes in ``high-ender'' order.
 */
typedef u_int16_t n_short;              /* short as received from the net */
typedef u_int32_t n_long;               /* long as received from the net */

typedef u_int32_t n_time;               /* ms since 00:00 GMT, byte rev */

typedef u_int32_t       uid_t;  // Vlad: TODO: replace to GUID
typedef u_int32_t       gid_t;  // Vlad: TODO: replace to GUID

#define LITTLE_ENDIAN   1234
#define BIG_ENDIAN      4321

#endif /* _types_h_ */

⌨️ 快捷键说明

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