mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +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>
|
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()
|
* main.c (print_mc_usage): Use poptSetOtherOptionHelp()
|
||||||
From Andrew V. Samoilov <sav@bcs.zp.ua>
|
From Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
|
@ -2070,14 +2070,16 @@ init_sigchld (void)
|
|||||||
#endif /* NATIVE_WIN32, UNIX */
|
#endif /* NATIVE_WIN32, UNIX */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_mc_usage (poptContext ctx, FILE * stream)
|
print_mc_usage (poptContext ctx, FILE *stream)
|
||||||
{
|
{
|
||||||
|
int leftColWidth;
|
||||||
|
|
||||||
poptSetOtherOptionHelp (ctx,
|
poptSetOtherOptionHelp (ctx,
|
||||||
_("[flags] [this_dir] [other_panel_dir]\n\n"));
|
_("[flags] [this_dir] [other_panel_dir]\n\n"));
|
||||||
|
|
||||||
/* print help for options */
|
/* print help for options */
|
||||||
fprintf (stream, " %-*s %s\n", poptPrintHelp (ctx, stream, 0),
|
leftColWidth = poptPrintHelp (ctx, stream, 0);
|
||||||
_("+number"),
|
fprintf (stream, " %-*s %s\n", leftColWidth, _("+number"),
|
||||||
_("Set initial line number for the internal editor"));
|
_("Set initial line number for the internal editor"));
|
||||||
fprintf (stream,
|
fprintf (stream,
|
||||||
_("\n"
|
_("\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user