Browse Source

fix the filetype problem if set in spinit

pre-master-46
dwarning 19 years ago
parent
commit
7f157c76a2
  1. 3
      ChangeLog
  2. 4
      src/frontend/runcoms.c
  3. 4
      src/frontend/runcoms2.c

3
ChangeLog

@ -1,3 +1,6 @@
2007-12-14 Holger Vogt
* src/frontend/runcoms.c, runcoms2.c: fix the filetype problem if set in spinit
2007-12-15 Steven Borley 2007-12-15 Steven Borley
* Added automake warning and output verbosity to autogen.sh * Added automake warning and output verbosity to autogen.sh
* src/frontend/spiceif.c: Avoid invalid lvalue assignment errors when * src/frontend/spiceif.c: Avoid invalid lvalue assignment errors when

4
src/frontend/runcoms.c

@ -176,9 +176,9 @@ dosim(char *what, wordlist *wl)
} }
if (cp_getvar("filetype", VT_STRING, buf)) { if (cp_getvar("filetype", VT_STRING, buf)) {
if (eq(buf, "binary"))
if (eq(buf, "binary") || eq(buf, "{binary}"))
ascii = FALSE; ascii = FALSE;
else if (eq(buf, "ascii"))
else if (eq(buf, "ascii") || eq(buf, "{ascii}"))
ascii = TRUE; ascii = TRUE;
else else
fprintf(cp_err, fprintf(cp_err,

4
src/frontend/runcoms2.c

@ -82,9 +82,9 @@ com_resume(wordlist *wl)
dofile = TRUE; dofile = TRUE;
if (cp_getvar("filetype", VT_STRING, buf)) { if (cp_getvar("filetype", VT_STRING, buf)) {
if (eq(buf, "binary"))
if (eq(buf, "binary") || eq(buf, "{binary}"))
ascii = FALSE; ascii = FALSE;
else if (eq(buf, "ascii"))
else if (eq(buf, "ascii") || eq(buf, "{ascii}"))
ascii = TRUE; ascii = TRUE;
else else
fprintf(cp_err, fprintf(cp_err,

Loading…
Cancel
Save