- if (!(strcmp(s, "new") &&
- strcmp(s, "all") &&
- strcmp(s, "first") &&
- strcmp(s, "last") &&
- strcmp(s, "prev") &&
- strcmp(s, "next"))) {
- advise(NULL, "illegal sequence name: %s", s);
+ if (strcmp(s, seq_first)==0 || strcmp(s, seq_last)==0 ||
+ strcmp(s, seq_prev)==0 || strcmp(s, seq_next)==0 ||
+ strcmp(s, seq_all)==0 || strcmp(s, seq_beyond)==0) {
+ advise(NULL, "collision with reserved sequence name: `%s'", s);