mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
parent
fe2d13b6da
commit
5e449fb5c2
@ -991,9 +991,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