Browse Source

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.
pre-master-46
rlar 11 years ago
parent
commit
86c61c1909
  1. 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…
Cancel
Save