Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cbindgen
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cbindgen
Commits
1160d13c
Commit
1160d13c
authored
5 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Plain Diff
Merge branch 'add_va_list' into 'master'
Add VaList as a primitive See merge request
!5
parents
dabcb2d9
fd662045
Branches
master
No related tags found
1 merge request
!5
Add VaList as a primitive
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bindgen/ir/ty.rs
+4
-0
4 additions, 0 deletions
src/bindgen/ir/ty.rs
with
4 additions
and
0 deletions
src/bindgen/ir/ty.rs
+
4
−
0
View file @
1160d13c
...
...
@@ -45,6 +45,7 @@ pub enum PrimitiveType {
Int64
,
Float
,
Double
,
VaList
,
//SizeT,
}
...
...
@@ -79,6 +80,7 @@ impl PrimitiveType {
"i64"
|
"int64_t"
=>
Some
(
PrimitiveType
::
Int64
),
"f32"
=>
Some
(
PrimitiveType
::
Float
),
"f64"
=>
Some
(
PrimitiveType
::
Double
),
"VaList"
=>
Some
(
PrimitiveType
::
VaList
),
//"size_t" => Some(PrimitiveType::SizeT),
_
=>
None
,
}
...
...
@@ -112,6 +114,7 @@ impl PrimitiveType {
&
PrimitiveType
::
Int64
=>
"i64"
,
&
PrimitiveType
::
Float
=>
"f32"
,
&
PrimitiveType
::
Double
=>
"f64"
,
&
PrimitiveType
::
VaList
=>
"va_list"
,
//&PrimitiveType::SizeT => "size_t",
}
}
...
...
@@ -144,6 +147,7 @@ impl PrimitiveType {
&
PrimitiveType
::
Int64
=>
"int64_t"
,
&
PrimitiveType
::
Float
=>
"float"
,
&
PrimitiveType
::
Double
=>
"double"
,
&
PrimitiveType
::
VaList
=>
"va_list"
,
//&PrimitiveType::SizeT => "size_t",
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment