version 1.49, 2009/10/26 08:42:37 |
version 1.50, 2009/10/26 15:44:51 |
|
|
foptions(int *fflags, char *arg) |
foptions(int *fflags, char *arg) |
{ |
{ |
char *v, *o; |
char *v, *o; |
const char *toks[7]; |
const char *toks[8]; |
|
|
toks[0] = "ign-scope"; |
toks[0] = "ign-scope"; |
toks[1] = "no-ign-escape"; |
toks[1] = "no-ign-escape"; |
Line 579 foptions(int *fflags, char *arg) |
|
Line 579 foptions(int *fflags, char *arg) |
|
toks[3] = "no-ign-chars"; |
toks[3] = "no-ign-chars"; |
toks[4] = "ign-errors"; |
toks[4] = "ign-errors"; |
toks[5] = "strict"; |
toks[5] = "strict"; |
toks[6] = NULL; |
toks[6] = "ign-escape"; |
|
toks[7] = NULL; |
|
|
while (*arg) { |
while (*arg) { |
o = arg; |
o = arg; |
Line 602 foptions(int *fflags, char *arg) |
|
Line 603 foptions(int *fflags, char *arg) |
|
case (5): |
case (5): |
*fflags |= NO_IGN_ESCAPE | |
*fflags |= NO_IGN_ESCAPE | |
NO_IGN_MACRO | NO_IGN_CHARS; |
NO_IGN_MACRO | NO_IGN_CHARS; |
|
break; |
|
case (6): |
|
*fflags &= ~NO_IGN_ESCAPE; |
break; |
break; |
default: |
default: |
warnx("bad argument: -f%s", o); |
warnx("bad argument: -f%s", o); |