about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <andersrb@gmail.com>2012-01-09 17:13:35 -0800
committerBrian Anderson <andersrb@gmail.com>2012-01-09 17:13:35 -0800
commitd8a0ef1c84886c2c780fceb1f1b0122118a385a6 (patch)
treee35b59c07ba3d68fbfbef106a9a1a2d7f8ae43a9
parent8387896ddaa5fbe2ba39b9ad06fd02e1bfcb76e7 (diff)
parentae76a7db5d5747aad7e572911848800e139f127b (diff)
downloadrust-d8a0ef1c84886c2c780fceb1f1b0122118a385a6.tar.gz
rust-d8a0ef1c84886c2c780fceb1f1b0122118a385a6.zip
Merge pull request #1477 from erickt/master
Adding longlong and ulonglong types
-rw-r--r--src/libcore/ctypes.rs14
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