Removed redundant {sim_name}.rc initialization file.
This commit is contained in:
parent
04098f6007
commit
330839888d
1 changed files with 1 additions and 4 deletions
5
scp.c
5
scp.c
|
@ -740,7 +740,6 @@ int setenv(const char *envname, const char *envval, int overwrite)
|
||||||
int main (int argc, char *argv[])
|
int main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char cbuf[CBUFSIZE], gbuf[CBUFSIZE], *cptr;
|
char cbuf[CBUFSIZE], gbuf[CBUFSIZE], *cptr;
|
||||||
char nbuf[PATH_MAX + 7];
|
|
||||||
int32 i, sw;
|
int32 i, sw;
|
||||||
t_bool lookswitch;
|
t_bool lookswitch;
|
||||||
t_stat stat, stat_nomessage;
|
t_stat stat, stat_nomessage;
|
||||||
|
@ -819,12 +818,10 @@ if (sim_dflt_dev == NULL) /* if no default */
|
||||||
sim_dflt_dev = sim_devices[0];
|
sim_dflt_dev = sim_devices[0];
|
||||||
|
|
||||||
stat = do_cmd (-1, "simh.rc"); /* simh.rc proc cmd file */
|
stat = do_cmd (-1, "simh.rc"); /* simh.rc proc cmd file */
|
||||||
sprintf(nbuf, "%s.rc", sim_name);
|
|
||||||
stat = do_cmd (-1, nbuf); /* {sim_name}.rc proc cmd file */
|
|
||||||
if (*cbuf) /* cmd file arg? */
|
if (*cbuf) /* cmd file arg? */
|
||||||
stat = do_cmd (0, cbuf); /* proc cmd file */
|
stat = do_cmd (0, cbuf); /* proc cmd file */
|
||||||
else if (*argv[0]) { /* sim name arg? */
|
else if (*argv[0]) { /* sim name arg? */
|
||||||
char *np; /* "path.ini" */
|
char nbuf[PATH_MAX + 7], *np; /* "path.ini" */
|
||||||
nbuf[0] = '"'; /* starting " */
|
nbuf[0] = '"'; /* starting " */
|
||||||
strncpy (nbuf + 1, argv[0], PATH_MAX + 1); /* copy sim name */
|
strncpy (nbuf + 1, argv[0], PATH_MAX + 1); /* copy sim name */
|
||||||
if (np = match_ext (nbuf, "EXE")) /* remove .exe */
|
if (np = match_ext (nbuf, "EXE")) /* remove .exe */
|
||||||
|
|
Loading…
Add table
Reference in a new issue