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

@@ -54,7 +54,7 @@ C_SOURCES=$(srcdir)/pl-buffer.c $(srcdir)/pl-ctype.c \
OBJS=pl-buffer.o pl-ctype.o pl-error.o pl-feature.o \
pl-file.o pl-os.o \
pl-stream.o pl-string.o pl-table.o pl-text.o pl-utf8.o \
pl-yap.o @ENABLE_WINCONSOLE@ popen.o utf8.o uxnt.o
pl-yap.o @ENABLE_WINCONSOLE@ utf8.o uxnt.o
SOBJS=plstream@SHLIB_SUFFIX@
#in some systems we just create a single object, in others we need to

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 */