Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cbindgen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dan Robertson
cbindgen
Commits
fd662045
Unverified
Commit
fd662045
authored
Dec 04, 2018
by
Dan Robertson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add VaList as a primitive
parent
9deed39f
Pipeline
#2090
failed with stages
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/bindgen/ir/ty.rs
src/bindgen/ir/ty.rs
+4
-0
No files found.
src/bindgen/ir/ty.rs
View file @
fd662045
...
...
@@ -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",
}
}
...
...
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