include support for working_directory/2 as a system predicate.

This commit is contained in:
Vitor Santos Costa
2011-02-12 00:26:28 +00:00
parent 2451a052cb
commit 712300027e
5 changed files with 18 additions and 13 deletions

View File

@@ -862,7 +862,13 @@ typedef double real;
#define false(s, a) (!true((s), (a)))
#define set(s, a) ((s)->flags |= (a))
#define clear(s, a) ((s)->flags &= ~(a))
#ifdef DEBUG
/* should have messages here */
#undef DEBUG
#define DEBUG(LEVEL, COMMAND)
#else
#define DEBUG(LEVEL, COMMAND)
#endif
#define forwards static /* forwards function declarations */

View File

@@ -27,7 +27,7 @@
typedef YAP_Term Module;
typedef YAP_Term *Word; /* Anonymous 4 byte object */
typedef YAP_Atom Atom;
typedef YAP_Term (*Func)(); /* foreign functions */
typedef YAP_Term (*Func)(term_t); /* foreign functions */
const char *Yap_GetCurrentPredName(void);
YAP_Int Yap_GetCurrentPredArity(void);