/* check if user defined sequence */
err = attr(mp, cp = name);
/* check if user defined sequence */
err = attr(mp, cp = name);
/*
** Check for special beyond sequence, which
** is valid only if ALLOW_BEYOND is set.
/*
** Check for special beyond sequence, which
** is valid only if ALLOW_BEYOND is set.
*/
if ((mp->msgflags & ALLOW_BEYOND) && !strcmp(cp, seq_beyond)) {
if ((err = first = getbeyond(mp)) <= 0)
*/
if ((mp->msgflags & ALLOW_BEYOND) && !strcmp(cp, seq_beyond)) {
if ((err = first = getbeyond(mp)) <= 0)
if (!strcmp(cp, seq_all))
cp = concat(seq_first, "-", seq_last, NULL);
if (!strcmp(cp, seq_all))
cp = concat(seq_first, "-", seq_last, NULL);
} else if (first > mp->hghmsg || first < mp->lowmsg
|| !does_exist(mp, first)) {
if (!strcmp(name, seq_cur))
} else if (first > mp->hghmsg || first < mp->lowmsg
|| !does_exist(mp, first)) {
if (!strcmp(name, seq_cur))
else
advise(NULL, "message %d doesn't exist",
first);
return 0;
}
last = first; /* range of 1 */
else
advise(NULL, "message %d doesn't exist",
first);
return 0;
}
last = first; /* range of 1 */
- if (does_exist(mp, first) ||
- ((mp->msgflags & ALLOW_BEYOND) && is_select_empty(mp, first))) {
+ if (does_exist(mp, first) || (
+ (mp->msgflags & ALLOW_BEYOND) &&
+ is_select_empty(mp, first))) {
if (!strcmp(cp, seq_cur))
return 0;
/* "c:..." -- this code need to be rewritten... */
if (!strcmp(cp, seq_cur))
return 0;
/* "c:..." -- this code need to be rewritten... */