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.
2011-11-02 22:46:52 +00:00
|
|
|
#ifndef YAP_REGS_H
|
|
|
|
|
|
|
|
#define YAP_REGS_H 1
|
|
|
|
|
2011-11-30 13:05:06 +00:00
|
|
|
#ifdef THREADS
|
|
|
|
#if USE_PTHREAD_LOCKING
|
|
|
|
#ifndef _XOPEN_SOURCE
|
|
|
|
#define _XOPEN_SOURCE 600
|
|
|
|
#endif /* !_XOPEN_SOURCE */
|
|
|
|
#endif /* USE_PTHREAD_LOCKING */
|
|
|
|
#include <pthread.h>
|
|
|
|
#endif
|
|
|
|
|
2011-11-02 22:46:52 +00:00
|
|
|
#if defined(TABLING) || defined(YAPOR_SBA)
|
|
|
|
typedef struct trail_frame {
|
|
|
|
Term term;
|
|
|
|
CELL value;
|
|
|
|
} *tr_fr_ptr;
|
|
|
|
|
|
|
|
#define TrailTerm(X) ((X)->term)
|
|
|
|
#else
|
|
|
|
typedef Term *tr_fr_ptr;
|
|
|
|
|
2011-11-30 15:19:37 +00:00
|
|
|
#define TrailTerm(X) (*(CELL*)(X))
|
2011-11-02 22:46:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef void *choiceptr;
|
|
|
|
|
|
|
|
typedef void *yamop;
|
|
|
|
|
|
|
|
typedef char *ADDR;
|
|
|
|
|
2014-05-30 01:06:09 +01:00
|
|
|
// #define RESET_VARIABLE(X) (*(X) = (CELL)(X))
|
2011-11-02 22:46:52 +00:00
|
|
|
|
2011-11-10 12:26:23 +00:00
|
|
|
#ifdef _YAP_NOT_INSTALLED_
|
|
|
|
#include "Regs.h"
|
|
|
|
#else
|
2011-11-02 22:46:52 +00:00
|
|
|
#include "src/Regs.h"
|
2011-11-10 12:26:23 +00:00
|
|
|
#endif
|
2011-11-02 22:46:52 +00:00
|
|
|
|
|
|
|
#endif
|