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
OpenGEODE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
OpenGEODE
Commits
86fc31b5
Commit
86fc31b5
authored
Dec 23, 2016
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix send/restore context function (for simulation)
parent
33aa6c52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
README.md
README.md
+3
-0
opengeode/AdaGenerator.py
opengeode/AdaGenerator.py
+2
-2
opengeode/opengeode.py
opengeode/opengeode.py
+1
-1
No files found.
README.md
View file @
86fc31b5
...
...
@@ -142,6 +142,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.
5.22 (12/2016)
-
Simulation function save/restore context fix
1.
5.21 (11/2016)
-
Fix regression with test-math (import of external functions)
-
Use monospace font in the HTML rendering of ASN.1 files
...
...
opengeode/AdaGenerator.py
View file @
86fc31b5
...
...
@@ -394,12 +394,12 @@ package {process_name} is'''.format(process_name=process_name,
ads_template
.
append
(
'pragma Export(C, restore_context, "_restore_context");'
)
dll_api
.
append
(
"{} is"
.
format
(
save_state_decl
))
dll_api
.
append
(
"begin"
)
dll_api
.
append
(
"{ctxt}
:= {ctxt}_bk
;"
.
format
(
ctxt
=
LPREFIX
))
dll_api
.
append
(
"{ctxt}
_bk := {ctxt}
;"
.
format
(
ctxt
=
LPREFIX
))
dll_api
.
append
(
"end save_context;"
)
dll_api
.
append
(
""
)
dll_api
.
append
(
"{} is"
.
format
(
restore_state_decl
))
dll_api
.
append
(
"begin"
)
dll_api
.
append
(
"{ctxt}
_bk := {ctxt}
;"
.
format
(
ctxt
=
LPREFIX
))
dll_api
.
append
(
"{ctxt}
:= {ctxt}_bk
;"
.
format
(
ctxt
=
LPREFIX
))
dll_api
.
append
(
"end restore_context;"
)
dll_api
.
append
(
""
)
...
...
opengeode/opengeode.py
View file @
86fc31b5
...
...
@@ -138,7 +138,7 @@ except ImportError:
__all__
=
[
'opengeode'
,
'SDL_Scene'
,
'SDL_View'
,
'parse'
]
__version__
=
'1.5.2
1
'
__version__
=
'1.5.2
2
'
if
hasattr
(
sys
,
'frozen'
):
# Detect if we are running on Windows (py2exe-generated)
...
...
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