diff options
| author | Brian Anderson <andersrb@gmail.com> | 2012-01-09 17:13:35 -0800 |
|---|---|---|
| committer | Brian Anderson <andersrb@gmail.com> | 2012-01-09 17:13:35 -0800 |
| commit | d8a0ef1c84886c2c780fceb1f1b0122118a385a6 (patch) | |
| tree | e35b59c07ba3d68fbfbef106a9a1a2d7f8ae43a9 | |
| parent | 8387896ddaa5fbe2ba39b9ad06fd02e1bfcb76e7 (diff) | |
| parent | ae76a7db5d5747aad7e572911848800e139f127b (diff) | |
| download | rust-d8a0ef1c84886c2c780fceb1f1b0122118a385a6.tar.gz rust-d8a0ef1c84886c2c780fceb1f1b0122118a385a6.zip | |
Merge pull request #1477 from erickt/master
Adding longlong and ulonglong types
| -rw-r--r-- | src/libcore/ctypes.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libcore/ctypes.rs b/src/libcore/ctypes.rs index d26b183a2f3..b9d42275824 100644 --- a/src/libcore/ctypes.rs +++ b/src/libcore/ctypes.rs @@ -33,6 +33,13 @@ A signed integer with the same size as a C `long` type long = int; /* +Type: longlong + +A signed integer with the same size as a C `long long` +*/ +type longlong = i64; + +/* Type: unsigned An unsigned integer with the same size as a C `unsigned int` @@ -47,6 +54,13 @@ An unsigned integer with the same size as a C `unsigned long` type ulong = uint; /* +Type: ulonglong + +An unsigned integer with the same size as a C `unsigned long long` +*/ +type ulonglong = u64; + +/* Type: intptr_t A signed integer with the same size as a pointer. This is |
