SQLITE源码分析(9)wangyi - 凯时娱乐

SQLITE源码分析(9)wangyi

2019-02-09 09:14:52 | 作者: 幻莲 | 标签: 类型,整数,符号 | 浏览: 8445

/*声明:本SQLite源码分析系列为刘兴(原创,未经笔者授权,任何人和组织不能转载

** CAPI3REF: 64-Bit Integer Types

** KEYWORDS: sqlite_int64 sqlite_uint64

**64位整数类型

**关键字:sqlite_int64 sqlite_uint64

 

** Because there is no cross-platform way to specify 64-bit integer types

** SQLite includes typedefs for 64-bit signed and unsigned integers.

**没有跨渠道的办法界说64位整数,SQLite包含64位有符号和无符号整数

** The sqlite3_int64 and sqlite3_uint64 are the preferred type definitions.

**sqlite3_int64和sqlite3_uint64是首选类型, sqlite_int64和***sqlite_uint64仅支撑向后兼容性。

** The sqlite_int64 and sqlite_uint64 types are supported for backwards

** compatibility only.

**sqlite3_int64 和 sqlite_int64 类型的范围在-922337203685477580

**和+9223372036854775807之间,sqlite3_uint64 和sqlite_uint64在

** 0 和 +18446744073709551615 之间

** ^The sqlite3_int64 and sqlite_int64 types can store integer values

** between -9223372036854775808 and +9223372036854775807 inclusive.  ^The

** sqlite3_uint64 and sqlite_uint64 types can store integer values

** between 0 and +18446744073709551615 inclusive.

*/

//以下依据前面界说的宏,界说sqlite_int64、sqlite_uint64、sqlite3_int64、sqlite_uint64实际使用的类型

#ifdef SQLITE_INT64_TYPE

  typedef SQLITE_INT64_TYPE sqlite_int64;

  typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;

#elif defined(_MSC_VER) || defined(__BORLANDC__)

  typedef __int64 sqlite_int64;

  typedef unsigned __int64 sqlite_uint64;

#else

  typedef long long int sqlite_int64;

  typedef unsigned long long int sqlite_uint64;

#endif

typedef sqlite_int64 sqlite3_int64;

typedef sqlite_uint64 sqlite3_uint64;

 

版权声明
本文来源于网络,版权归原作者所有,其内容与观点不代表凯时娱乐立场。转载文章仅为传播更有价值的信息,如采编人员采编有误或者版权原因,请与我们联系,我们核实后立即修改或删除。

猜您喜欢的文章