Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cbindgen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dan Robertson
cbindgen
Commits
97ceb586
Commit
97ceb586
authored
Mar 03, 2018
by
Jeremy Soller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove non-primitive types wchar_t and size_t
parent
7a2225a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ty.rs
src/bindgen/ir/ty.rs
+9
-9
No files found.
src/bindgen/ir/ty.rs
View file @
97ceb586
...
...
@@ -21,7 +21,7 @@ pub enum PrimitiveType {
Void
,
Bool
,
Char
,
WChar
,
//
WChar,
SChar
,
UChar
,
Short
,
...
...
@@ -44,7 +44,7 @@ pub enum PrimitiveType {
Int64
,
Float
,
Double
,
SizeT
,
//
SizeT,
}
impl
PrimitiveType
{
...
...
@@ -65,7 +65,7 @@ impl PrimitiveType {
"c_ulong"
=>
Some
(
PrimitiveType
::
ULong
),
"c_ulonglong"
=>
Some
(
PrimitiveType
::
ULongLong
),
"bool"
=>
Some
(
PrimitiveType
::
Bool
),
"char"
=>
Some
(
PrimitiveType
::
WChar
),
//
"char" => Some(PrimitiveType::WChar),
"usize"
|
"uintptr_t"
=>
Some
(
PrimitiveType
::
USize
),
"u8"
|
"uint8_t"
=>
Some
(
PrimitiveType
::
UInt8
),
"u16"
|
"uint16_t"
=>
Some
(
PrimitiveType
::
UInt16
),
...
...
@@ -78,7 +78,7 @@ impl PrimitiveType {
"i64"
|
"int64_t"
=>
Some
(
PrimitiveType
::
Int64
),
"f32"
=>
Some
(
PrimitiveType
::
Float
),
"f64"
=>
Some
(
PrimitiveType
::
Double
),
"size_t"
=>
Some
(
PrimitiveType
::
SizeT
),
//
"size_t" => Some(PrimitiveType::SizeT),
_
=>
None
,
}
}
...
...
@@ -97,7 +97,7 @@ impl PrimitiveType {
&
PrimitiveType
::
UInt
=>
"c_uint"
,
&
PrimitiveType
::
ULong
=>
"c_ulong"
,
&
PrimitiveType
::
ULongLong
=>
"c_ulonglong"
,
&
PrimitiveType
::
WChar
=>
"char"
,
//
&PrimitiveType::WChar => "char",
&
PrimitiveType
::
Bool
=>
"bool"
,
&
PrimitiveType
::
USize
=>
"usize"
,
&
PrimitiveType
::
UInt8
=>
"u8"
,
...
...
@@ -111,7 +111,7 @@ impl PrimitiveType {
&
PrimitiveType
::
Int64
=>
"i64"
,
&
PrimitiveType
::
Float
=>
"f32"
,
&
PrimitiveType
::
Double
=>
"f64"
,
&
PrimitiveType
::
SizeT
=>
"size_t"
,
//
&PrimitiveType::SizeT => "size_t",
}
}
...
...
@@ -120,7 +120,7 @@ impl PrimitiveType {
&
PrimitiveType
::
Void
=>
"void"
,
&
PrimitiveType
::
Bool
=>
"bool"
,
&
PrimitiveType
::
Char
=>
"char"
,
&
PrimitiveType
::
WChar
=>
"wchar_t"
,
//
&PrimitiveType::WChar => "wchar_t",
&
PrimitiveType
::
SChar
=>
"signed char"
,
&
PrimitiveType
::
UChar
=>
"unsigned char"
,
&
PrimitiveType
::
Short
=>
"short"
,
...
...
@@ -131,7 +131,7 @@ impl PrimitiveType {
&
PrimitiveType
::
UInt
=>
"unsigned int"
,
&
PrimitiveType
::
ULong
=>
"unsigned long"
,
&
PrimitiveType
::
ULongLong
=>
"unsigned long long"
,
&
PrimitiveType
::
USize
=>
"
size
_t"
,
&
PrimitiveType
::
USize
=>
"
uintptr
_t"
,
&
PrimitiveType
::
UInt8
=>
"uint8_t"
,
&
PrimitiveType
::
UInt16
=>
"uint16_t"
,
&
PrimitiveType
::
UInt32
=>
"uint32_t"
,
...
...
@@ -143,7 +143,7 @@ impl PrimitiveType {
&
PrimitiveType
::
Int64
=>
"int64_t"
,
&
PrimitiveType
::
Float
=>
"float"
,
&
PrimitiveType
::
Double
=>
"double"
,
&
PrimitiveType
::
SizeT
=>
"size_t"
,
//
&PrimitiveType::SizeT => "size_t",
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment