YAP 7.1.0
cut_c.h
1#ifndef __CUT_C_H__
2#define __CUT_C_H__
3
4/* Some definitions */
5#define Choice_Point_Type void *
6
7/* necessary for not redefine NULL*/
8#ifndef NULL
9#define NULL nil
10#endif
11
12typedef struct cut_c_str *cut_c_str_ptr;
13struct cut_c_str {
14 cut_c_str_ptr before;
15 void *try_userc_cut_yamop;
16};
17
18#define CUT_C_STR_SIZE ((sizeof(struct cut_c_str)) / (sizeof(CELL)))
19
20#define EXTRA_CBACK_CUT_ARG(Type, Offset) EXTRA_CBACK_ARG(PP->ArityOfPE, Offset)
21
22#define CBACK_CUT_ARG(Offset) B->cp_args[(Offset)-1]
23
24#define CUT_C_PUSH(YAMOP, S_YREG)
25
26#define POP_CHOICE_POINT(cp) false
27#define POP_EXECUTE()
28
29#define POP_FAIL(handler)
30#define POP_FAIL_EXECUTE(handler)
31
32/*Initializes CUT_C_TOP*/
33void cut_c_initialize(int wid);
34
35/*Removes a choice_point from the stack*/
36void cut_c_pop(void);
37
38/*Insert a choice_point in the stack*/
39void cut_c_push(cut_c_str_ptr);
40
41#endif /*_CUT_C_H__*/