emptybuffer
This commit is contained in:
parent
2d94bba498
commit
9e5675755e
@ -1296,6 +1296,13 @@ X_API Term Yap_StringToTerm(const char *s, size_t len, encoding_t *encp,
|
|||||||
Term bvar = MkVarTerm(), ctl;
|
Term bvar = MkVarTerm(), ctl;
|
||||||
yhandle_t sl;
|
yhandle_t sl;
|
||||||
|
|
||||||
|
if (len == 0) {
|
||||||
|
Term rval = TermEof;
|
||||||
|
if (rval && bindings) {
|
||||||
|
*bindings = TermNil;
|
||||||
|
}
|
||||||
|
return rval;
|
||||||
|
}
|
||||||
if (bindings) {
|
if (bindings) {
|
||||||
ctl = Yap_MkApplTerm(Yap_MkFunctor(AtomVariableNames, 1), 1, &bvar);
|
ctl = Yap_MkApplTerm(Yap_MkFunctor(AtomVariableNames, 1), 1, &bvar);
|
||||||
sl = Yap_PushHandle(bvar);
|
sl = Yap_PushHandle(bvar);
|
||||||
|
Reference in New Issue
Block a user