Advertisement
logicmoo

Untitled

Aug 13th, 2018
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.72 KB | None | 0 0
  1. typedef struct pl_term_type
  2. { uintptr_t     magic;          /* PL_TYPE_MAGIC */
  3.   char *        name;           /* name of the type */
  4.   int           (*release)(pl_term a);
  5.   int           (*compare)(pl_term a, pl_term b);
  6.   int           (*pre_unify)(pl_term a, pl_term b);
  7.   pl_term       (*deep_copy_term)(pl_term a, pl_term b);
  8.   pl_term       (*copy_term)(pl_term a, pl_term b);
  9.   int           (*post_unify)(pl_term a, pl_term b);
  10.   int           (*write)(IOSTREAM *s, pl_term a, int flags);
  11.   void          (*acquire)(pl_term a);
  12.   ...
  13. }
  14.  
  15. typedef struct pl_term
  16. { uintptr_t     magic;          /* PL_TERM_MAGIC */
  17.   pl_term_type  type;          /* shared method mapping */
  18.   pl_term_type  personal_overrides;  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement