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
9dfbd68f
Commit
9dfbd68f
authored
Aug 21, 2014
by
Maxime Perrotin
Browse files
Merge pull request #23 from dbrabera/asn1constants
Normalize dash characters in ASN.1 constant names
parents
467418c6
8a7bf9c9
Changes
1
Show whitespace changes
Inline
Side-by-side
LlvmGenerator.py
View file @
9dfbd68f
...
...
@@ -415,8 +415,9 @@ def _process(process, ctx=None):
# Generate ASN.1 constants
for
name
,
t
in
process
.
dv
.
variables
.
viewitems
():
var_llty
=
ctx
.
lltype_of
(
t
.
type
)
global_var
=
ctx
.
module
.
add_global_variable
(
var_llty
,
str
(
name
))
ctx
.
scope
.
define
(
str
(
name
).
lower
(),
global_var
)
name
=
str
(
name
).
replace
(
'-'
,
'_'
).
lower
()
global_var
=
ctx
.
module
.
add_global_variable
(
var_llty
,
name
)
ctx
.
scope
.
define
(
name
,
global_var
)
# Generare process-level vars
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