Browse Source

runcoms.c, rawfile.c, include filename in the 'ASCII/binary raw file' printout

pre-master-46
h_vogt 9 years ago
committed by rlar
parent
commit
d7a1899210
  1. 4
      src/frontend/rawfile.c
  2. 4
      src/frontend/runcoms.c

4
src/frontend/rawfile.c

@ -71,13 +71,13 @@ raw_write(char *name, struct plot *pl, bool app, bool binary)
perror(name);
return;
}
fprintf(cp_out, "binary raw file\n");
fprintf(cp_out, "binary raw file \"%s\"\n", name);
} else {
if ((fp = fopen(name, app ? "a" : "w")) == NULL) {
perror(name);
return;
}
fprintf(cp_out, "ASCII raw file\n");
fprintf(cp_out, "ASCII raw file \"%s\"\n", name);
}
/* --------------------------------------------------------------------*/

4
src/frontend/runcoms.c

@ -265,7 +265,7 @@ dosim(
ft_setflag = FALSE;
return 1;
}
fprintf(cp_out, "ASCII raw file\n");
fprintf(cp_out, "ASCII raw file \"%s\"\n", wl->wl_word);
}
else if (!ascii) {
if ((rawfileFp = fopen(wl->wl_word, "wb")) == NULL) {
@ -273,7 +273,7 @@ dosim(
ft_setflag = FALSE;
return 1;
}
fprintf(cp_out, "binary raw file\n");
fprintf(cp_out, "binary raw file \"%s\"\n", wl->wl_word);
}
/*---------------------------------------------------------------------------*/
#else

Loading…
Cancel
Save