mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* main.c (print_mc_usage): Partly revert previous patch -
poptPrintHelp() has side effects and should not be called inside fprintf(), which can be a macro.
This commit is contained in:
parent
1e080baf7a
commit
1c099a21ec
@ -1,5 +1,9 @@
|
||||
2002-10-21 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* main.c (print_mc_usage): Partly revert previous patch -
|
||||
poptPrintHelp() has side effects and should not be called
|
||||
inside fprintf(), which can be a macro.
|
||||
|
||||
* main.c (print_mc_usage): Use poptSetOtherOptionHelp()
|
||||
From Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
|
@ -2070,14 +2070,16 @@ init_sigchld (void)
|
||||
#endif /* NATIVE_WIN32, UNIX */
|
||||
|
||||
static void
|
||||
print_mc_usage (poptContext ctx, FILE * stream)
|
||||
print_mc_usage (poptContext ctx, FILE *stream)
|
||||
{
|
||||
int leftColWidth;
|
||||
|
||||
poptSetOtherOptionHelp (ctx,
|
||||
_("[flags] [this_dir] [other_panel_dir]\n\n"));
|
||||
|
||||
/* print help for options */
|
||||
fprintf (stream, " %-*s %s\n", poptPrintHelp (ctx, stream, 0),
|
||||
_("+number"),
|
||||
leftColWidth = poptPrintHelp (ctx, stream, 0);
|
||||
fprintf (stream, " %-*s %s\n", leftColWidth, _("+number"),
|
||||
_("Set initial line number for the internal editor"));
|
||||
fprintf (stream,
|
||||
_("\n"
|
||||
|
Loading…
Reference in New Issue
Block a user