types.h
来自「一个很有名的浏览器」· C头文件 代码 · 共 87 行
H
87 行
/* $Id: types.h,v 1.8 2004/09/26 16:09:17 jonas Exp $ */#ifndef EL__UTIL_TYPES_H#define EL__UTIL_TYPES_H#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <sys/types.h>#ifdef HAVE_STDINT_H#include <stdint.h>#endif#ifdef HAVE_INTTYPES_H#include <inttypes.h>#endif#ifndef HAVE_UINT16_T#if SIZEOF_CHAR == 2typedef unsigned char uint16_t;#elif SIZEOF_SHORT == 2typedef unsigned short uint16_t;#elif SIZEOF_INT == 2typedef unsigned int uint16_t;#elif SIZEOF_LONG == 2typedef unsigned long uint16_t;#elif defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 2typedef unsigned long long uint16_t;#else#error You have no 16-bit integer type. Get in touch with reality.#endif#endif#ifndef HAVE_INT32_T#if SIZEOF_CHAR == 4typedef char int32_t;#elif SIZEOF_SHORT == 4typedef short int32_t;#elif SIZEOF_INT == 4typedef int int32_t;#elif SIZEOF_LONG == 4typedef long int32_t;#elif defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 4typedef long long int32_t;#else#error You have no 32-bit integer type. Get in touch with reality.#endif#endif#ifndef HAVE_UINT32_T#if SIZEOF_CHAR == 4typedef unsigned char uint32_t;#elif SIZEOF_SHORT == 4typedef unsigned short uint32_t;#elif SIZEOF_INT == 4typedef unsigned int uint32_t;#elif SIZEOF_LONG == 4typedef unsigned long uint32_t;#elif defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 4typedef unsigned long long uint32_t;#else#error You have no 32-bit integer type. Get in touch with reality.#endif#endif#ifdef HAVE_LONG_LONG#define longlong long long#else#define longlong long#endif/* *_info() types */enum info_type { INFO_BYTES, INFO_FILES, INFO_LOCKED, INFO_LOADING, INFO_TIMERS, INFO_TRANSFER, INFO_CONNECTING, INFO_KEEP,};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?