Commit 7ee0448b authored by Danilo Bargen's avatar Danilo Bargen Committed by Ryan Hunt

Add more libc primitive types

parent 9abaf017
......@@ -66,16 +66,16 @@ impl PrimitiveType {
"c_ulonglong" => Some(PrimitiveType::ULongLong),
"bool" => Some(PrimitiveType::Bool),
"char" => Some(PrimitiveType::WChar),
"usize" => Some(PrimitiveType::USize),
"u8" => Some(PrimitiveType::UInt8),
"u16" => Some(PrimitiveType::UInt16),
"u32" => Some(PrimitiveType::UInt32),
"u64" => Some(PrimitiveType::UInt64),
"isize" => Some(PrimitiveType::ISize),
"i8" => Some(PrimitiveType::Int8),
"i16" => Some(PrimitiveType::Int16),
"i32" => Some(PrimitiveType::Int32),
"i64" => Some(PrimitiveType::Int64),
"usize" | "uintptr_t" => Some(PrimitiveType::USize),
"u8" | "uint8_t" => Some(PrimitiveType::UInt8),
"u16" | "uint16_t" => Some(PrimitiveType::UInt16),
"u32" | "uint32_t" => Some(PrimitiveType::UInt32),
"u64" | "uint64_t" => Some(PrimitiveType::UInt64),
"isize" | "intptr_t" => Some(PrimitiveType::ISize),
"i8" | "int8_t" => Some(PrimitiveType::Int8),
"i16" | "int16_t" => Some(PrimitiveType::Int16),
"i32" | "int32_t" => Some(PrimitiveType::Int32),
"i64" | "int64_t" => Some(PrimitiveType::Int64),
"f32" => Some(PrimitiveType::Float),
"f64" => Some(PrimitiveType::Double),
"size_t" => Some(PrimitiveType::SizeT),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment