History

fftools/cmdutils: drop alt_flags parameter from show_help_options()

No user sets it to more than one flag, so it is redundant with req_flags.

Anton Khirnov committed 2 years ago

Commit 67529ad1 parent 03aedbd5 files · +19 −21Browse files

Showing the changes to fftools/cmdutils.c (1 of 5 files). Show all

Unified · Split

fftools/cmdutils.c+1−2
@@ -108,7 +108,7 @@ int parse_number(const char *context, const char *numstr, enum OptionType type, · 107 unmodified lines
108}108}
109 109
110void show_help_options(const OptionDef *options, const char *msg, int req_flags,110void show_help_options(const OptionDef *options, const char *msg, int req_flags,
111 int rej_flags, int alt_flags)111 int rej_flags)
112{112{
113 const OptionDef *po;113 const OptionDef *po;
114 int first;114 int first;
@@ -118,7 +118,6 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags, · 3 unmodified lines
118 char buf[128];118 char buf[128];
119 119
120 if (((po->flags & req_flags) != req_flags) ||120 if (((po->flags & req_flags) != req_flags) ||
121 (alt_flags && !(po->flags & alt_flags)) ||
122 (po->flags & rej_flags))121 (po->flags & rej_flags))
123 continue;122 continue;
124 123

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t