Commit 815cf875 by Richard Kenner

(DEFAULT_SWITCH_TAKES_ARG): New macro, from SWITCH_TAKES_ARG.

(SWITCH_TAKES_ARG): Use it.

From-SVN: r11265
parent e3b776dc
...@@ -552,12 +552,14 @@ static struct { char *name, *spec; } extra_specs[] = { EXTRA_SPECS }; ...@@ -552,12 +552,14 @@ static struct { char *name, *spec; } extra_specs[] = { EXTRA_SPECS };
/* This defines which switch letters take arguments. */ /* This defines which switch letters take arguments. */
#ifndef SWITCH_TAKES_ARG #define DEFAULT_SWITCH_TAKES_ARG(CHAR) \
#define SWITCH_TAKES_ARG(CHAR) \
((CHAR) == 'D' || (CHAR) == 'U' || (CHAR) == 'o' \ ((CHAR) == 'D' || (CHAR) == 'U' || (CHAR) == 'o' \
|| (CHAR) == 'e' || (CHAR) == 'T' || (CHAR) == 'u' \ || (CHAR) == 'e' || (CHAR) == 'T' || (CHAR) == 'u' \
|| (CHAR) == 'I' || (CHAR) == 'm' || (CHAR) == 'x' \ || (CHAR) == 'I' || (CHAR) == 'm' || (CHAR) == 'x' \
|| (CHAR) == 'L' || (CHAR) == 'A') || (CHAR) == 'L' || (CHAR) == 'A')
#ifndef SWITCH_TAKES_ARG
#define SWITCH_TAKES_ARG(CHAR) DEFAULT_SWITCH_TAKES_ARG(CHAR)
#endif #endif
/* This defines which multi-letter switches take arguments. */ /* This defines which multi-letter switches take arguments. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment