Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xcap
xcap-capability-linux
Commits
78f016d1
Commit
78f016d1
authored
Oct 02, 2014
by
Sarah Spall
Committed by
Vikram Narayanan
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scope init code
parent
f9c94ba0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
tools/lcd/idl/lcd_ast.cpp
tools/lcd/idl/lcd_ast.cpp
+17
-0
No files found.
tools/lcd/idl/lcd_ast.cpp
View file @
78f016d1
#include "lcd_ast.h"
Scope
::
Scope
()
{
// init builtin int types
builtin
=
new
map
<
PrimType
,
Type
>
();
// instert for each builtin in type, add size to type if not done alreayd
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kChar
,
false
,
sizeof
(
"char"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kChar
,
true
,
sizeof
(
"char"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kShort
,
false
,
sizeof
(
"short"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kShort
,
true
,
sizeof
(
"short"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kInt
,
false
,
sizeof
(
"int"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kInt
,
true
,
sizeof
(
"int"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kLong
,
false
,
sizeof
(
"long"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kLong
,
true
,
sizeof
(
"long"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kLongLong
,
false
,
sizeof
(
"long long"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kLongLong
,
true
,
sizeof
(
"long long"
))));
builtin
->
insert
(
std
::
pair
<
int
,
Type
>
(
1
,
new
IntegerType
(
kCapability
,
false
,
sizeof
(
"int"
))));
}
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