This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/include/clause_list.h

23 lines
539 B
C
Raw Normal View History

struct ClauseList
{
int n; /*counter*/
void *start;
void *end;
};
typedef struct ClauseList *clause_list_t;
2016-01-31 10:29:36 +00:00
clause_list_t Yap_ClauseListInit(clause_list_t in);
2016-01-31 10:29:36 +00:00
int Yap_ClauseListExtend(clause_list_t cl, void * clause, void *pred);
void Yap_ClauseListClose(clause_list_t cl);
int Yap_ClauseListDestroy(clause_list_t cl);
void *Yap_ClauseListToClause(clause_list_t cl);
void *Yap_ClauseListCode(clause_list_t cl);
void *Yap_FAILCODE(void);
2009-02-16 12:53:29 +00:00
#define Yap_ClauseListCount(cl) ((cl)->n)