-
-static void
-addtosel(struct msgs *mp, int msg)
-{
- if (is_selected(mp, msg)) {
- return; /* dont select twice */
- }
- set_selected(mp, msg);
- mp->numsel++;
- if (mp->lowsel == 0 || msg < mp->lowsel) {
- mp->lowsel = msg;
- }
- if (msg > mp->hghsel) {
- mp->hghsel = msg;
- }
-}
-