small changes

This commit is contained in:
Vítor Santos Costa
2015-08-18 15:08:52 -05:00
parent f41a8c19ef
commit 880a9989c3
12 changed files with 102 additions and 47 deletions

View File

@@ -249,8 +249,6 @@ int PL_get_wchars(term_t l, size_t *lengthp, wchar_t **s, unsigned flags)
CACHE_REGS
seq_tv_t inp, out;
size_t leng;
encoding_t enc;
int minimal;
void *buf = NULL;
inp.val.t = Yap_GetFromSlot( l );
inp.type = cvtFlags( flags );
@@ -721,6 +719,8 @@ X_API int PL_get_functor(term_t ts, functor_t *f)
Term t = Yap_GetFromSlot(ts);
if ( IsAtomTerm(t)) {
*f = t;
} else if ( IsPairTerm(t)) {
*f = FunctorToSWIFunctor(FunctorDot);
} else {
*f = FunctorToSWIFunctor(FunctorOfTerm(t));
}