/* prassert.c */ /* implementation of assertz, asserta and clause handling */ #include "prtypes.h" #include #include "prstdio.h" #include "prlex.h" #include "prextern.h" static void ini_copy(void); static struct clause *copy_clause(int status, struct node *nodeptr, struct subst *substptr, struct atom * *predptr); static void copy_node(int status,struct node *target,struct node *source,struct subst *substptr); static int add_as_nth(struct clause *clauseptr,struct atom *pred,long n); #ifndef SEGMENTED_ACHITECTURE #define IS_DYNAMIC(X) ((Dyn_mem <= (dyn_ptr_t)(X)) && ((dyn_ptr_t)(X)= 0) { clp = CLAUSEPTR_NEXT( clp); if( clp == NULL) return 0; } CLAUSEPTR_NEXT( clauseptr) = CLAUSEPTR_NEXT( clp ); CLAUSEPTR_NEXT( clp) = clauseptr; return 1; } /* end of file */