]> git.lizzy.rs Git - rust.git/commitdiff
Merge pull request #1477 from erickt/master
authorBrian Anderson <andersrb@gmail.com>
Tue, 10 Jan 2012 01:13:35 +0000 (17:13 -0800)
committerBrian Anderson <andersrb@gmail.com>
Tue, 10 Jan 2012 01:13:35 +0000 (17:13 -0800)
Adding longlong and ulonglong types

src/libcore/ctypes.rs

index d26b183a2f38d2a7badf196bb345df36a6e646d0..b9d42275824dfc997cb14cd9b137f9622feee469 100644 (file)
 */
 type long = int;
 
+/*
+Type: longlong
+
+A signed integer with the same size as a C `long long`
+*/
+type longlong = i64;
+
 /*
 Type: unsigned
 
 */
 type ulong = uint;
 
+/*
+Type: ulonglong
+
+An unsigned integer with the same size as a C `unsigned long long`
+*/
+type ulonglong = u64;
+
 /*
 Type: intptr_t