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
D
dmt
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
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
dmt
Commits
8d96d503
Commit
8d96d503
authored
Jul 29, 2019
by
Maxime Perrotin
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for MORA branch, don't delete adb and .c files from asn1scc
parent
dd06103f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
dmt/A_mappers/ada_A_mapper.py
dmt/A_mappers/ada_A_mapper.py
+1
-1
dmt/A_mappers/c_A_mapper.py
dmt/A_mappers/c_A_mapper.py
+6
-6
No files found.
dmt/A_mappers/ada_A_mapper.py
View file @
8d96d503
...
...
@@ -52,7 +52,7 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str,
(
"mono "
if
sys
.
platform
.
startswith
(
'linux'
)
else
""
)
+
"
\"
{}
\"
-typePrefix asn1Scc -Ada {} -o
\"
"
.
format
(
asn1SccPath
,
extraFlags
)
+
outputDir
+
"
\"
\"
"
+
"
\"
\"
"
.
join
(
asnFiles
)
+
"
\"
"
)
os
.
system
(
"rm -f
\"
"
+
outputDir
+
"
\"
/*.adb"
)
#
os.system("rm -f \"" + outputDir + "\"/*.adb")
def
OnBasic
(
unused_nodeTypename
:
str
,
unused_node
:
AsnBasicNode
,
unused_leafTypeDict
:
AST_Leaftypes
)
->
None
:
...
...
dmt/A_mappers/c_A_mapper.py
View file @
8d96d503
...
...
@@ -49,12 +49,12 @@ def OnStartup(unused_modelingLanguage: str, asnFiles: List[str], outputDir: str,
(
"mono "
if
sys
.
platform
.
startswith
(
'linux'
)
else
""
)
+
"
\"
{}
\"
-typePrefix asn1Scc -c -uPER -o
\"
"
.
format
(
asn1SccPath
)
+
outputDir
+
"
\"
\"
"
+
"
\"
\"
"
.
join
(
asnFiles
)
+
"
\"
"
)
cmd
=
'rm -f '
for
i
in
[
'real.c'
,
'asn1crt.c'
,
'acn.c'
]:
cmd
+=
' "'
+
outputDir
+
'"/'
+
i
os
.
system
(
cmd
)
for
tmp
in
asnFiles
:
os
.
system
(
"rm -f
\"
"
+
outputDir
+
os
.
sep
+
os
.
path
.
basename
(
os
.
path
.
splitext
(
tmp
)[
0
])
+
".c
\"
"
)
#
cmd = 'rm -f '
#
for i in ['real.c', 'asn1crt.c', 'acn.c']:
#
cmd += ' "' + outputDir + '"/' + i
#
os.system(cmd)
#
for tmp in asnFiles:
#
os.system("rm -f \"" + outputDir + os.sep + os.path.basename(os.path.splitext(tmp)[0]) + ".c\"")
def
OnBasic
(
unused_nodeTypename
:
str
,
unused_node
:
AsnBasicNode
,
unused_leafTypeDict
:
AST_Leaftypes
)
->
None
:
...
...
Thanassis Tsiodras
@ttsiodras
mentioned in commit
103d1e9e
·
Jul 29, 2019
mentioned in commit
103d1e9e
mentioned in commit 103d1e9e8bfef2278281aab235981c439f754922
Toggle commit list
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