lib/selection: minor refactorings and comments
Small things I've noticed while reading it all. - line breaks: I believe <90 is OK, as usually the attempts to reduce lengths impair readability - avoid unnecessary casts; usually the type was visible on the same line anyway - avoid `|` on booleans - one block gets de-indented (often badly shown in diffs) - no need for UNRECOVERABLE_ERRORS in a header (and a weird one, too) - recoverability from failed assertions (in case they're turned off)
Showing
- lib/layer/iterate.c 2 additions, 4 deletionslib/layer/iterate.c
- lib/selection.c 40 additions, 31 deletionslib/selection.c
- lib/selection.h 14 additions, 7 deletionslib/selection.h
- lib/selection_forward.c 6 additions, 9 deletionslib/selection_forward.c
- lib/selection_iter.c 60 additions, 78 deletionslib/selection_iter.c
- lib/selection_iter.h 2 additions, 22 deletionslib/selection_iter.h
Please register or sign in to comment