added command flags C == command is a conditional command and
authorKurt A. Schoens <kas@ucbvax.Berkeley.EDU>
Sun, 19 Oct 1980 10:15:07 +0000 (02:15 -0800)
committerKurt A. Schoens <kas@ucbvax.Berkeley.EDU>
Sun, 19 Oct 1980 10:15:07 +0000 (02:15 -0800)
thus should always be executed and T == command is transparent and does
not affect sawcom; defined conditional constants:  CANY -- execute in
either send or receive mode and CRCV/CSEND -- execute only in send/receive
mode

SCCS-vsn: usr.bin/mail/def.h 1.6

usr/src/usr.bin/mail/def.h

index ae74e87..cf16e5d 100644 (file)
@@ -9,7 +9,7 @@
 #undef isdigit
 
 /*
 #undef isdigit
 
 /*
- * Sccs Id = "@(#)def.h        1.5 %G%";
+ * Sccs Id = "@(#)def.h        1.6 %G%";
  */
 
 /*
  */
 
 /*
@@ -102,6 +102,8 @@ struct cmd {
 #define        I       0100            /* Interactive command bit */
 #define        M       0200            /* Illegal from send mode bit */
 #define        W       0400            /* Illegal when read only bit */
 #define        I       0100            /* Interactive command bit */
 #define        M       0200            /* Illegal from send mode bit */
 #define        W       0400            /* Illegal when read only bit */
+#define        C       01000           /* Is a conditional command */
+#define        T       02000           /* Is a transparent command */
 
 /*
  * Oft-used mask values
 
 /*
  * Oft-used mask values
@@ -207,6 +209,15 @@ struct grouphead {
 #define        REGDEP  2                       /* Maximum regret depth. */
 #define        STRINGLEN       64              /* Maximum length of string token */
 
 #define        REGDEP  2                       /* Maximum regret depth. */
 #define        STRINGLEN       64              /* Maximum length of string token */
 
+/*
+ * Constants for conditional commands.  These describe whether
+ * we should be executing stuff or not.
+ */
+
+#define        CANY            0               /* Execute in send or receive mode */
+#define        CRCV            1               /* Execute in receive mode only */
+#define        CSEND           2               /* Execute in send mode only */
+
 /*
  * Kludges to handle the change from setexit / reset to setjmp / longjmp
  */
 /*
  * Kludges to handle the change from setexit / reset to setjmp / longjmp
  */