copyright header in OPTYap files

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1315 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
ricroc 2005-05-31 08:24:24 +00:00
parent 9cf12ce705
commit b8546491fc
29 changed files with 320 additions and 17 deletions

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: alpha_locks.h
version: $Id: alpha_locks.h,v 1.2 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------------------- **
** Atomic lock for ALPHA **
** ------------------------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: alpha_locks_funcs.h
version: $Id: alpha_locks_funcs.h,v 1.2 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------------------- **
** Atomic lock for ALPHA **
** ------------------------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: mips_locks.h
version: $Id: mips_locks.h,v 1.2 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------------------- **
** Atomic locking for MIPS **
** ------------------------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: mips_locks_funcs.h
version: $Id: mips_locks_funcs.h,v 1.2 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------------------- **
** Atomic locking for MIPS **
** ------------------------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: opt.config.h
version: $Id: opt.config.h,v 1.5 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ---------------------------------- **
** Configuration Parameters **
** ---------------------------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: opt.init.c
version: $Id: opt.init.c,v 1.6 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------ **
** Includes **
** ------------------ */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: opt.macros.h
version: $Id: opt.macros.h,v 1.6 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* --------------------------- **
** Memory management **
** --------------------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: opt.mavar.h
version: $Id: opt.mavar.h,v 1.3 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
#ifdef MULTI_ASSIGNMENT_VARIABLES
/*
Set of routines to allow restoring updatable variables when we go *up*

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: opt.memory.c
version: $Id: opt.memory.c,v 1.8 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------------------------------------------ **
** **
** By default we use mmap to map memory. **

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: opt.misc.c
version: $Id: opt.misc.c,v 1.10 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------ **
** Includes **
** ------------------ */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: opt.preds.c
version: $Id: opt.preds.c,v 1.15 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ----------------------------------------------- **
** Includes, defines and local variables **
** ----------------------------------------------- */

View File

@ -1,6 +1,13 @@
/* -------------------------------------- **
** Prototypes for opt.*.c files **
** -------------------------------------- */
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: opt.proto.h
version: $Id: opt.proto.h,v 1.7 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* -------------- **
** opt.memory.c **
@ -51,11 +58,6 @@ void finish_yapor(void);
#endif /* YAPOR */
/* -------------------------------------- **
** Prototypes for tab.*.c files **
** -------------------------------------- */
/* ------------- **
** tab.tries.c **
** ------------- */
@ -85,11 +87,6 @@ void resume_suspension_frame(susp_fr_ptr resume_fr, or_fr_ptr top_or_fr);
#endif /* TABLING && YAPOR */
/* ------------------------------------- **
** Prototypes for or.*.c files **
** ------------------------------------- */
/* ------------- **
** or.engine.c **
** ------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: opt.structs.h
version: $Id: opt.structs.h,v 1.6 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ----------------- **
** Typedefs **
** ----------------- */

View File

@ -1,3 +1,20 @@
/*************************************************************************
* *
* YAP Prolog *
* *
* Yap Prolog was developed at NCCUP - Universidade do Porto *
* *
* Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 *
* *
**************************************************************************
* *
* File: or.cowengine.c *
* Last rev: *
* mods: *
* comments: *
* *
*************************************************************************/
/* ------------------ **
** Includes **
** ------------------ */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: or.cut.c
version: $Id: or.cut.c,v 1.2 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------ **
** Includes **
** ------------------ */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: or.engine.c
version: $Id: or.engine.c,v 1.9 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------ **
** Includes **
** ------------------ */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: or.insts.i
version: $Id: or.insts.i,v 1.4 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* -------------------------------- **
** Scheduler instructions **
** -------------------------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: or.macros.h
version: $Id: or.macros.h,v 1.4 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* -------------------- **
** Prototypes **
** -------------------- */

View File

@ -1,3 +1,20 @@
/*************************************************************************
* *
* YAP Prolog *
* *
* Yap Prolog was developed at NCCUP - Universidade do Porto *
* *
* Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 *
* *
**************************************************************************
* *
* File: or.sbaengine.c *
* Last rev: *
* mods: *
* comments: *
* *
*************************************************************************/
/* ------------------ **
** Includes **
** ------------------ */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: or.scheduler.c
version: $Id: or.scheduler.c,v 1.4 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------ **
** Includes **
** ------------------ */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: or.structs.h
version: $Id: or.structs.h,v 1.3 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ----------------------- **
** Struct worker **
** ----------------------- */

View File

@ -1,6 +1,23 @@
/* ------------------------------- **
** Atomic lock for PTHREADS **
** ------------------------------- */
/*************************************************************************
* *
* YAP Prolog *
* *
* Yap Prolog was developed at NCCUP - Universidade do Porto *
* *
* Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 *
* *
**************************************************************************
* *
* File: pthread_locks.h *
* Last rev: *
* mods: *
* comments: *
* *
*************************************************************************/
/* ----------------------------------- **
** Atomic locks for PTHREADS **
** ----------------------------------- */
#define INIT_LOCK(LOCK_VAR) pthread_mutex_init(&(LOCK_VAR), NULL)
#define DESTROY_LOCK(LOCK_VAR) pthread_mutex_destroy(&(LOCK_VAR))

View File

@ -16,6 +16,7 @@
* in the SBA model. *
* *
*************************************************************************/
#ifdef SCCS
static char SccsId[] = "%W% %G%";
#endif /* SCCS */

View File

@ -16,6 +16,7 @@
* in the SBA model. *
* *
*************************************************************************/
#ifdef SCCS
static char SccsId[] = "%W% %G%";
#endif /* SCCS */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: sparc_locks.h
version: $Id: sparc_locks.h,v 1.3 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------------------- **
** Atomic lock for SPARC **
** ------------------------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: tab.insts.i
version: $Id: tab.insts.i,v 1.13 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------------------------------------ **
** Tabling instructions: auxiliary macros **
** ------------------------------------------------ */
@ -228,7 +239,7 @@
init_subgoal_frame(sg_fr);
UNLOCK(SgFr_lock(sg_fr));
store_generator_node(PREG->u.ld.s, COMPLETION, sg_fr);
PREG = NEXTOP(PREG,ld); /* PREG = PREG->u.ld.d; */
PREG = PREG->u.ld.d; /* PREG = NEXTOP(PREG,ld); */
PREFETCH_OP(PREG);
allocate_environment();
GONext();

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: tab.structs.h
version: $Id: tab.structs.h,v 1.5 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ---------------------------- **
** Struct table_entry **
** ---------------------------- */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: tab.suspend.c
version: $Id: tab.suspend.c,v 1.4 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ------------------ **
** Includes **
** ------------------ */

View File

@ -1,3 +1,14 @@
/**********************************************************************
The OPTYap Prolog system
OPTYap extends the Yap Prolog system to support or-parallel tabling
Copyright: R. Rocha and NCC - University of Porto, Portugal
File: x86_locks.h
version: $Id: x86_locks.h,v 1.3 2005-05-31 08:24:24 ricroc Exp $
**********************************************************************/
/* ----------------------------- **
** Atomic lock for X86 **
** ----------------------------- */