public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d07b17c
)
Added a check. Minis & shorties need an N or P argument.
author
keie
<none@none>
Thu, 8 Nov 1984 11:09:56 +0000
(11:09 +0000)
committer
keie
<none@none>
Thu, 8 Nov 1984 11:09:56 +0000
(11:09 +0000)
util/ass/maktab.c
patch
|
blob
|
history
diff --git
a/util/ass/maktab.c
b/util/ass/maktab.c
index
9fa57e3
..
31c5bdc
100644
(file)
--- a/
util/ass/maktab.c
+++ b/
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 ;
}