Browse Source

Added a check. Minis & shorties need an N or P argument.

keie 40 years ago
parent
commit
cb84476be0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      util/ass/maktab.c

+ 4 - 1
util/ass/maktab.c

@@ -220,7 +220,10 @@ int decflag(str) char *str ; {
 	if ( escape!=ILLGL ) type|=OPESC ;
 	if ( wordm!=ILLGL ) type|=OPWORD ;
 	switch ( range) {
-	case ILLGL : type|=OP_BOTH ; break ;
+	case ILLGL : type|=OP_BOTH ;
+		     if ( type==OPMINI || type==OPSHORT )
+			     error("Minies and shorties must have P or N") ;
+		     break ;
 	case 1     : type|=OP_POS  ; break ;
 	case 2     : type|=OP_NEG  ; break ;
 	}