Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
cbindgen
Commits
c36a6ff6
Commit
c36a6ff6
authored
Jul 19, 2017
by
Ryan Hunt
Browse files
Use intptr_t for isize
parent
5fcd4ed4
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bindgen/items.rs
View file @
c36a6ff6
...
...
@@ -71,12 +71,7 @@ impl PrimitiveType {
"u16"
=>
Some
(
PrimitiveType
::
UInt16
),
"u32"
=>
Some
(
PrimitiveType
::
UInt32
),
"u64"
=>
Some
(
PrimitiveType
::
UInt64
),
"isize"
=>
{
#[cfg(not(target_os=
"linux"
))]
{
warn!
(
"ssize_t isn't supported on all platforms."
);
}
Some
(
PrimitiveType
::
ISize
)
}
"isize"
=>
Some
(
PrimitiveType
::
ISize
),
"i8"
=>
Some
(
PrimitiveType
::
Int8
),
"i16"
=>
Some
(
PrimitiveType
::
Int16
),
"i32"
=>
Some
(
PrimitiveType
::
Int32
),
...
...
@@ -139,7 +134,7 @@ impl PrimitiveType {
&
PrimitiveType
::
UInt16
=>
"uint16_t"
,
&
PrimitiveType
::
UInt32
=>
"uint32_t"
,
&
PrimitiveType
::
UInt64
=>
"uint64_t"
,
&
PrimitiveType
::
ISize
=>
"
ssize
_t"
,
&
PrimitiveType
::
ISize
=>
"
intptr
_t"
,
&
PrimitiveType
::
Int8
=>
"int8_t"
,
&
PrimitiveType
::
Int16
=>
"int16_t"
,
&
PrimitiveType
::
Int32
=>
"int32_t"
,
...
...
Write
Preview
Supports
Markdown
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