diff options
| author | Wiimm <wiimm@wiimm.de> | 2024-03-26 10:35:38 +0100 |
|---|---|---|
| committer | Wiimm <wiimm@wiimm.de> | 2024-03-26 10:35:38 +0100 |
| commit | 246fdb38d7c2fb3054b8f8528e11dc8f17691750 (patch) | |
| tree | c106adbb6c640ab93c4b3f19864fde6046b1a759 /project/src/wlect.c | |
| parent | b8aca433e32346c9293acc34a9e2242809ac5692 (diff) | |
SZS 2.42a
Diffstat (limited to 'project/src/wlect.c')
| -rw-r--r-- | project/src/wlect.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/project/src/wlect.c b/project/src/wlect.c index 257f24d..6191272 100644 --- a/project/src/wlect.c +++ b/project/src/wlect.c @@ -75,7 +75,7 @@ static void help_exit ( bool xmode ) PrintHelpCmd(&InfoUI_wlect,stdout,0,0,"HELP",0,URI_HOME); ClosePager(); - exit(ERR_OK); + ExitFixed(ERR_OK); } /////////////////////////////////////////////////////////////////////////////// @@ -100,7 +100,7 @@ static void version_exit() else fputs( TITLE "\n", stdout ); - exit(ERR_OK); + ExitFixed(ERR_OK); } /////////////////////////////////////////////////////////////////////////////// @@ -134,7 +134,7 @@ static void hint_exit ( enumError stat ) fprintf(stderr, "-> Type '%s -h' or '%s help' (pipe it to a pager like 'less') for more help.\n\n", ProgInfo.progname, ProgInfo.progname ); - exit(stat); + ExitFixed(stat); } // @@ -1021,7 +1021,7 @@ static void help_create ( enumError exit_code ) ProgInfo.progname, ProgInfo.progname ); ClosePager(); - exit(exit_code); + ExitFixed(exit_code); } /////////////////////////////////////////////////////////////////////////////// @@ -2031,7 +2031,7 @@ static void help_distrib ( enumError exit_code ) ,GetLecodeInfoLEREG(LEREG_KOR) ); ClosePager(); - exit(exit_code); + ExitFixed(exit_code); } /////////////////////////////////////////////////////////////////////////////// @@ -2751,6 +2751,7 @@ static enumError CheckOptions ( int argc, char ** argv, bool is_env ) case GO_WIDTH: err += ScanOptWidth(optarg); break; case GO_MAX_WIDTH: err += ScanOptMaxWidth(optarg); break; case GO_NO_PAGER: opt_no_pager = true; break; + case GO_ZERO: opt_zero++; break; case GO_QUIET: verbose = verbose > -1 ? -1 : verbose - 1; break; case GO_VERBOSE: verbose = verbose < 0 ? 0 : verbose + 1; break; case GO_LOGGING: logging++; break; @@ -3018,7 +3019,7 @@ static enumError CheckCommand ( int argc, char ** argv ) if (SIGINT_level) err = ERROR0(ERR_INTERRUPT,"Program interrupted by user."); ClosePager(); - return err; + return FixExitStatus(err); } // |
