| # | Line 17 | Line 17 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 17 | ||
| 18 | ||
| 19 | int | |
| 20 | + | isxfopt(char *p) /* check whether option begins transform */ |
| 21 | + | { |
| 22 | + | if (*p++ != '-') |
| 23 | + | return(0); |
| 24 | + | |
| 25 | + | if ((p[0] == 't') | (p[0] == 's') | (p[0] == 'i') && |
| 26 | + | !p[1]) |
| 27 | + | return(1); |
| 28 | + | |
| 29 | + | if ((p[0] == 'r') | (p[0] == 'm') && |
| 30 | + | ('x' <= p[1]) & (p[1] <= 'z') && |
| 31 | + | !p[2]) |
| 32 | + | return(1); |
| 33 | + | |
| 34 | + | return(0); |
| 35 | + | } |
| 36 | + | |
| 37 | + | |
| 38 | + | int |
| 39 | xf(XF *ret, int ac, char *av[]) /* get transform specification */ | |
| 40 | { | |
| 41 | MAT4 xfmat, m4; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |