Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vmspython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
vmspython
Commits
81352acd5b36
Commit
81352acd5b36
authored
5 months ago
by
jfp
Browse files
Options
Downloads
Patches
Plain Diff
Temporary, dont't check IOSB status if is zero
parent
a39600d0b52c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/local/ovms_module/ovms/itemList/_itemList.pyx
+11
-6
11 additions, 6 deletions
python/local/ovms_module/ovms/itemList/_itemList.pyx
python/local/ovms_module/ovms/ptd/_vmsptd.pyx
+2
-1
2 additions, 1 deletion
python/local/ovms_module/ovms/ptd/_vmsptd.pyx
with
13 additions
and
7 deletions
python/local/ovms_module/ovms/itemList/_itemList.pyx
+
11
−
6
View file @
81352acd
...
...
@@ -41,6 +41,10 @@
[
type
ItemList_Type
,
object
ItemListObject
]
:
def
__init__
(
self
,
unsigned
short
code
=
0
,
value
=
None
,
int
dtype
=
noType
,
unsigned
short
length
=
0
,
unsigned
int
flags
=
0
):
if
value
is
True
and
dtype
==
noType
:
dtype
=
booleanType
if
isinstance
(
value
,
str
):
value
=
value
.
encode
(
"
iso-8859-15
"
)
if
dtype
==
noType
and
isinstance
(
value
,
bytes
):
dtype
=
stringType
if
dtype
==
noType
and
value
is
None
:
...
...
@@ -56,7 +60,10 @@
if
dtype
==
signedLongByValueType
and
value
is
None
:
raise
error
(
'
signedLongByValue: missing value
'
)
if
dtype
==
booleanType
:
pass
if
value
is
None
:
value
=
True
elif
value
is
not
True
:
raise
error
(
"
boolean value should be True or None (same as True)
"
)
elif
dtype
==
lkiDefListType
:
if
value
is
not
None
:
raise
error
(
"
Should not specified a value with lkiDefListType
"
)
...
...
@@ -306,10 +313,8 @@
cdef
LKIDEF
*
lkiptr
=
NULL
for
i
from
0
<=
i
<
itmcard
:
itm
=
itmlst
[
i
]
if
itm
.
value
is
None
:
# output argument
if
itm
.
dtype
==
booleanType
:
pass
elif
itm
.
dtype
==
signedByteType
:
if
itm
.
value
is
None
:
# output argument, can't be boolean type
if
itm
.
dtype
==
signedByteType
:
val
=
int
((
<
char
*>
pile3
.
ile3_ps_bufaddr
)[
0
])
elif
itm
.
dtype
==
unsignedByteType
:
val
=
int
((
<
unsigned
char
*>
pile3
.
ile3_ps_bufaddr
)[
0
])
...
...
This diff is collapsed.
Click to expand it.
python/local/ovms_module/ovms/ptd/_vmsptd.pyx
+
2
−
1
View file @
81352acd
...
...
@@ -420,6 +420,7 @@
handler
.
handler
.
buflen
-
1024
-
4
)
checkStatus
(
s
)
s
=
(
<
unsigned
short
*>
(
handler
.
handler
.
inadr
.
va_range_ps_start_va
))[
0
]
if
s
!=
0
:
checkStatus
(
s
)
cdef
char
*
buf
=
<
char
*>
(
handler
.
handler
.
inadr
.
va_range_ps_start_va
)
+
4
cdef
unsigned
short
*
retlenPtr
=
<
unsigned
short
*>
(
buf
-
2
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment