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
Open sidebar
RiscOS
S
Sources
Desktop
Filter
Commits
a119c768
Commit
a119c768
authored
Dec 22, 2019
by
Robert Sprowson
Committed by
ROOL
Jan 18, 2020
Browse files
Remove signed pointer comparison
Linked lists end with NULL, not <= 0.
parent
110fd564
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
s/FilterMgr
s/FilterMgr
+2
-2
s/Tail
s/Tail
+1
-1
No files found.
s/FilterMgr
View file @
a119c768
...
...
@@ -80,8 +80,8 @@ $lab ADD$cc $to,$from,#1
; ----------------------------------------------------------------------------------------------------------------------
; Filter block structure
^
0
next_ptr
#
4
; Pointer to next in chain
(-1
if none)
prev_ptr
#
4
; Pointer to previous entry in chain
(-1
if none)
next_ptr
#
4
; Pointer to next in chain
(0
if none)
prev_ptr
#
4
; Pointer to previous entry in chain
(0
if none)
f_task
#
4
; Task ID for which the filter is to be called.
f_mask
#
4
; Event mask.
f_address
#
4
; Address to call.
...
...
s/Tail
View file @
a119c768
...
...
@@ -28,7 +28,7 @@ free_list
01
MOV
r0
,
#
ModHandReason_Free
SUBS
r2
,
r1
,
#
0
MOV
L
E
PC
,
R3
MOVE
Q
PC
,
R3
; Free the workspace
LDR
r1
,
[
r2
,#
next_ptr
]
SWI
XOS_Module
...
...
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