fix write '$VAR'('_A').
This commit is contained in:
parent
247aa54046
commit
98b2cf70c2
@ -987,7 +987,7 @@ writeTerm(Term t, int p, int depth, int rinfixarg, struct write_globs *wglb, str
|
|||||||
if (lastw == alphanum) {
|
if (lastw == alphanum) {
|
||||||
wrputc(' ', wglb->stream);
|
wrputc(' ', wglb->stream);
|
||||||
}
|
}
|
||||||
if (!IsVarTerm(ti) && (IsIntTerm(ti) || IsStringTerm(ti))) {
|
if (!IsVarTerm(ti) && (IsIntTerm(ti) || IsStringTerm(ti)) || IsAtomTerm(ti)) {
|
||||||
if (IsIntTerm(ti)) {
|
if (IsIntTerm(ti)) {
|
||||||
Int k = IntOfTerm(ti);
|
Int k = IntOfTerm(ti);
|
||||||
if (k == -1) {
|
if (k == -1) {
|
||||||
@ -1003,6 +1003,8 @@ writeTerm(Term t, int p, int depth, int rinfixarg, struct write_globs *wglb, str
|
|||||||
} else
|
} else
|
||||||
lastw = alphanum;
|
lastw = alphanum;
|
||||||
}
|
}
|
||||||
|
} else if (IsAtomTerm(ti)) {
|
||||||
|
putAtom(AtomOfTerm(ti), FALSE, wglb->stream);
|
||||||
} else {
|
} else {
|
||||||
putUnquotedString(ti, wglb->stream);
|
putUnquotedString(ti, wglb->stream);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user