src/main.c, nutmeg, cleanup `ft_loadfile()' invocation
drop non functional code which might originally have been meant to read a default `ft_rawfile' when no other file was given on the command line. this would be disturbing behaviour anyway, since it would be impossible to start nutmeg interactively without any file.
This commit is contained in:
parent
a820d11451
commit
86c61c1909
14
src/main.c
14
src/main.c
|
|
@ -1325,20 +1325,10 @@ main(int argc, char **argv)
|
|||
|
||||
} else {
|
||||
|
||||
bool gdata = TRUE;
|
||||
|
||||
if (optind == argc) /* No raw file */
|
||||
gdata = FALSE;
|
||||
|
||||
cp_interactive = FALSE;
|
||||
|
||||
if (gdata) {
|
||||
if (optind < argc)
|
||||
while (optind < argc)
|
||||
ft_loadfile(argv[optind++]);
|
||||
else
|
||||
ft_loadfile(ft_rawfile);
|
||||
}
|
||||
while (optind < argc)
|
||||
ft_loadfile(argv[optind++]);
|
||||
}
|
||||
|
||||
#endif /* ~ SIMULATOR */
|
||||
|
|
|
|||
Loading…
Reference in New Issue