line numbers for clauses and clause properties

This commit is contained in:
Vítor Santos Costa
2013-11-05 17:59:19 +00:00
parent e06b160da2
commit 917d5ad75b
17 changed files with 374 additions and 192 deletions

View File

@@ -826,7 +826,8 @@ typedef enum
LogUpdMask = 0x0200, /* logic update index. */
StaticMask = 0x0100, /* static predicates */
DirtyMask = 0x0080, /* LUIndices */
HasCutMask = 0x0040 /* ! */
HasCutMask = 0x0040, /* ! */
SrcMask = 0x0020, /* has a source term, only for static references */
/* other flags belong to DB */
} dbentry_flags;
@@ -837,6 +838,7 @@ typedef struct DB_TERM
#ifdef COROUTINING
union {
CELL attachments; /* attached terms */
Int line_number;
struct DB_TERM *NextDBT;
} ag;
#endif
@@ -1524,6 +1526,7 @@ void Yap_ErDBE(DBRef);
DBTerm *Yap_StoreTermInDB(Term, int);
DBTerm *Yap_StoreTermInDBPlusExtraSpace(Term, UInt, UInt *);
Term Yap_FetchTermFromDB(DBTerm *);
Term Yap_FetchClauseTermFromDB(DBTerm *);
Term Yap_PopTermFromDB(DBTerm *);
void Yap_ReleaseTermFromDB(DBTerm *);