aboutsummaryrefslogtreecommitdiff
path: root/project/src/wlect.c
diff options
context:
space:
mode:
authorWiimm <none>2020-09-30 13:20:16 +0200
committerWiimm <none>2020-09-30 13:20:16 +0200
commit646b95d113309378591b75a290ee6c62a04f3772 (patch)
treea94864e8cef5fc0fbffb7e69d46d688e7caaae3d /project/src/wlect.c
parenteaf1f8f8ce68b80ebdcefb45896461a89b47e1e1 (diff)
SZS v2.20a.beta1: Test Mac build
Diffstat (limited to 'project/src/wlect.c')
-rw-r--r--project/src/wlect.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/project/src/wlect.c b/project/src/wlect.c
index 5794e6a..373cd27 100644
--- a/project/src/wlect.c
+++ b/project/src/wlect.c
@@ -146,11 +146,11 @@ static void hint_exit ( enumError stat )
if ( current_command )
fprintf(stderr,
"-> Type '%s help %s' (pipe it to a pager like 'less') for more help.\n\n",
- progname, CommandInfo[current_command->id].name1 );
+ ProgInfo.progname, CommandInfo[current_command->id].name1 );
else
fprintf(stderr,
"-> Type '%s -h' or '%s help' (pipe it to a pager like 'less') for more help.\n\n",
- progname, progname );
+ ProgInfo.progname, ProgInfo.progname );
exit(stat);
}
@@ -377,7 +377,9 @@ static enumError LoadLECODE ( raw_data_t *raw, le_analyse_t *ana, ccp fname )
if ( raw->fform != FF_LE_BIN )
{
- err = ERROR0(ERR_WRONG_FILE_TYPE,"Not a LECODE binary file: %s\n",raw->fname);
+ err = ERROR0(ERR_WRONG_FILE_TYPE,
+ "Not a LECODE binary file: %s:%s\n",
+ GetNameFF(raw->fform,0), raw->fname);
goto abort;
}
@@ -1172,7 +1174,7 @@ static enumError CheckOptions ( int argc, char ** argv, bool is_env )
SetupBMG(0);
UsePatchingListBMG(&opt_load_bmg);
- return !err ? ERR_OK : max_error ? max_error : ERR_SYNTAX;
+ return !err ? ERR_OK : ProgInfo.max_error ? ProgInfo.max_error : ERR_SYNTAX;
}
//
@@ -1264,7 +1266,7 @@ static enumError CheckCommand ( int argc, char ** argv )
#endif
{
print_title_func = print_title;
- SetupLib(argc,argv,WLECT_SHORT);
+ SetupLib(argc,argv,WLECT_SHORT,VERSION,TITLE);
ctcode_enabled = true;
lecode_enabled = true;