support parms.h

pass argv[0]
This commit is contained in:
Vitor Santos Costa
2009-10-23 09:09:16 +01:00
parent da0186a0aa
commit 253444d7ca
11 changed files with 154 additions and 41 deletions

View File

@@ -29,8 +29,8 @@ static char SccsId[] = "%W% %G%.2";
#include "Foreign.h"
#if _WIN32 || defined(__CYGWIN__)
#ifndef SHLIB_SUFFIX
#define SHLIB_SUFFIX "dll"
#ifndef YAP_SHLIB_SUFFIX
#define YAP_SHLIB_SUFFIX ".dll"
#endif
#endif
@@ -111,7 +111,7 @@ p_load_foreign(void)
static Int
p_obj_suffix(void) {
return(Yap_unify(Yap_StringToList(SHLIB_SUFFIX),ARG1));
return(Yap_unify(TailOfTerm(Yap_StringToList(YAP_SHLIB_SUFFIX)),ARG1));
}
void