Renamed all standard sequences (e.g. cur->c) and made them globally changeable
[mmh] / sbr / seq_read.c
index 26337c0..c1ac9fa 100644 (file)
@@ -29,9 +29,9 @@ seq_read(struct msgs *mp)
 {
        /*
        ** Initialize the list of sequence names.  Go ahead and
 {
        /*
        ** Initialize the list of sequence names.  Go ahead and
-       ** add the "cur" sequence to the list of sequences.
+       ** add the cur sequence to the list of sequences.
        */
        */
-       mp->msgattrs[0] = getcpy(current);
+       mp->msgattrs[0] = getcpy(seq_cur);
        mp->msgattrs[1] = NULL;
        make_all_public(mp);  /* initially, make all public */
 
        mp->msgattrs[1] = NULL;
        make_all_public(mp);  /* initially, make all public */
 
@@ -163,10 +163,10 @@ seq_init(struct msgs *mp, char *name, char *field)
        char *cp, **ap;
 
        /*
        char *cp, **ap;
 
        /*
-       ** Check if this is "cur" sequence,
+       ** Check if this is the cur sequence,
        ** so we can do some special things.
        */
        ** so we can do some special things.
        */
-       is_current = !strcmp(current, name);
+       is_current = !strcmp(seq_cur, name);
 
        /*
        ** Search for this sequence name to see if we've seen
 
        /*
        ** Search for this sequence name to see if we've seen
@@ -210,7 +210,7 @@ seq_init(struct msgs *mp, char *name, char *field)
                        k = cp ? m_atoi(cp) : j;
 
                        /*
                        k = cp ? m_atoi(cp) : j;
 
                        /*
-                       ** Keep mp->curmsg and "cur" sequence in synch.  Unlike
+                       ** Keep mp->curmsg and cur sequence in sync.  Unlike
                        ** other sequences, this message doesn't need to exist.
                        ** Think about the series of command (rmm; next) to
                        ** understand why this can be the case.  But if it does
                        ** other sequences, this message doesn't need to exist.
                        ** Think about the series of command (rmm; next) to
                        ** understand why this can be the case.  But if it does