changes to compile YAP in WIN32

This commit is contained in:
Vitor Santos Costa
2009-05-29 14:36:49 -05:00
parent 2dae7fd5ef
commit 0cd72ad258
7 changed files with 44 additions and 10 deletions

View File

@@ -186,5 +186,16 @@ valHandle(term_t tt)
#endif /* __YAP_PROLOG__ */
static int
stripostfix(const char *s, const char *e)
{ size_t ls = strlen(s);
size_t le = strlen(e);
if ( ls >= le )
return strcasecmp(&s[ls-le], e) == 0;
return FALSE;
}
#endif /* PL_YAP_H */