diff options
Diffstat (limited to 'editors/diff.c')
-rw-r--r-- | editors/diff.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/editors/diff.c b/editors/diff.c index 62f558944..1ff399ffb 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -988,6 +988,11 @@ static const char diff_longopts[] ALIGN1 = | |||
988 | "starting-file\0" Required_argument "S" | 988 | "starting-file\0" Required_argument "S" |
989 | "minimal\0" No_argument "d" | 989 | "minimal\0" No_argument "d" |
990 | ; | 990 | ; |
991 | # define GETOPT32 getopt32long | ||
992 | # define LONGOPTS ,diff_longopts | ||
993 | #else | ||
994 | # define GETOPT32 getopt32 | ||
995 | # define LONGOPTS | ||
991 | #endif | 996 | #endif |
992 | 997 | ||
993 | int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 998 | int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
@@ -1000,11 +1005,8 @@ int diff_main(int argc UNUSED_PARAM, char **argv) | |||
1000 | INIT_G(); | 1005 | INIT_G(); |
1001 | 1006 | ||
1002 | /* exactly 2 params; collect multiple -L <label>; -U N */ | 1007 | /* exactly 2 params; collect multiple -L <label>; -U N */ |
1003 | opt_complementary = "=2"; | 1008 | GETOPT32(argv, "^" "abdiL:*NqrsS:tTU:+wupBE" "\0" "=2" |
1004 | #if ENABLE_FEATURE_DIFF_LONG_OPTIONS | 1009 | LONGOPTS, |
1005 | applet_long_options = diff_longopts; | ||
1006 | #endif | ||
1007 | getopt32(argv, "abdiL:*NqrsS:tTU:+wupBE", | ||
1008 | &L_arg, &s_start, &opt_U_context); | 1010 | &L_arg, &s_start, &opt_U_context); |
1009 | argv += optind; | 1011 | argv += optind; |
1010 | while (L_arg) | 1012 | while (L_arg) |