mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
parent
d638f2b9a0
commit
e5aa419d35
@ -980,9 +980,9 @@ class file:
|
||||
else:
|
||||
if len(ifls) >= 3:
|
||||
for op in ['==', '!=', '>=', '=>', '=<', '<=', '>', '<']:
|
||||
ops = s.split(op)
|
||||
if len(ops) == 2:
|
||||
ifls = (ops[0], op, ops[1])
|
||||
if op in ifls:
|
||||
op_pos = ifls.index(op)
|
||||
ifls = (' '.join(ifls[:op_pos]), op, ' '.join(ifls[op_pos + 1:]))
|
||||
break
|
||||
if len(ifls) != 3:
|
||||
self._error('malformed if: ' + reduce(add, ls, ''))
|
||||
|
Loading…
x
Reference in New Issue
Block a user