- * Make sure sequence name doesn't clash with one
- * of the `reserved' sequence names.
- */
- 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);
+ ** Make sure sequence name doesn't clash with one
+ ** of the `reserved' sequence names.
+ ** Note: Accept `cur' here! But why is it treated special? --meillo
+ */
+ 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);