Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
8a7bf9c9
Commit
8a7bf9c9
authored
Aug 21, 2014
by
dbarbera
Browse files
Normalize dash characters in ASN.1 constant names
parent
5bb148ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
LlvmGenerator.py
View file @
8a7bf9c9
...
@@ -415,8 +415,9 @@ def _process(process, ctx=None):
...
@@ -415,8 +415,9 @@ def _process(process, ctx=None):
# Generate ASN.1 constants
# Generate ASN.1 constants
for
name
,
t
in
process
.
dv
.
variables
.
viewitems
():
for
name
,
t
in
process
.
dv
.
variables
.
viewitems
():
var_llty
=
ctx
.
lltype_of
(
t
.
type
)
var_llty
=
ctx
.
lltype_of
(
t
.
type
)
global_var
=
ctx
.
module
.
add_global_variable
(
var_llty
,
str
(
name
))
name
=
str
(
name
).
replace
(
'-'
,
'_'
).
lower
()
ctx
.
scope
.
define
(
str
(
name
).
lower
(),
global_var
)
global_var
=
ctx
.
module
.
add_global_variable
(
var_llty
,
name
)
ctx
.
scope
.
define
(
name
,
global_var
)
# Generare process-level vars
# Generare process-level vars
for
name
,
(
asn1ty
,
expr
)
in
process
.
variables
.
viewitems
():
for
name
,
(
asn1ty
,
expr
)
in
process
.
variables
.
viewitems
():
...
...
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