### Trivial
-- [ ] give every pane a link to root/editor main and use that
+- [X] give every pane a link to root/editor main and use that
instead of statics. Then maybe times_up() can use pane_too_long()
- [ ] mark DEF_CMD structs as const
-- [ ] rexel: don't abort if something looks wrong, just fail.
+- [X] rexel: don't abort if something looks wrong, just fail.
### Small
### rexel
-- [ ] don't abort if something looks wrong, just fail.
+- [X] don't abort if something looks wrong, just fail.
- [ ] move to separate git repo and document well.
- [ ] review return code of rxl_advance(). What should be
returned if a flag allowed a match, but the char didn't.
advance = -2;
} else
/* Nothing else is possible here */
- abort();
+ /* abort(); */
+ advance = -2;
if (advance < 0)
/* no match on this path */
;
else if (*s <= 'f')
rv += *s - 'a' + 10;
else
- abort();
+ return WERR;
s++;
len--;
}
start = newstart;
max -= 1;
}
- if (last != st->next)
+ if (last != st->next) {
+ #ifdef DEBUG
abort();
+ #else
+ return False;
+ #endif
+ }
}
return True;
}
st.capture = 0;
if (nocase)
add_cmd(&st, REC_IGNCASE);
- if (!parse_re(&st, DoCapture))
+ if (!parse_re(&st, DoCapture)) {
+ #ifdef DEBUG
abort();
+ #else
+ free(st.rxl);
+ return NULL;
+ #endif
+ }
add_cmd(&st, REC_MATCH);
return st.rxl;
}