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/YapRegs.h

29 lines
411 B
C

#ifndef YAP_REGS_H
#define YAP_REGS_H 1
#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;
#define TrailTerm(X) ((X)->term)
#endif
typedef void *choiceptr;
typedef void *yamop;
typedef char *ADDR;
#define RESET_VARIABLE(X) (*(X) = (CELL)(X))
#include "src/Regs.h"
#endif