![]() |
YAP 7.1.0
|
the following builins provide read-write access the Prolog flags More...
the following builins provide read-write access the Prolog flags
We advise you to use the ISO buitins on ISO flags
| class prolog_flag/3 |
prolog_flag(? Flag,- OldValue,+ NewValue)
Obtain the value for a YAP Prolog flag and then set it to a new value Equivalent to first calling current_prolog_flag/2 with the second argument OldValue unbound and then calling set_prolog_flag/2 with the third argument NewValue
| class current_prolog_flag/3 |
current_prolog_flag(? Flag,- Value, +_New_)
defined in the ISO standard
Obtain the value for a YAP Prolog flag, and then set the flag to the New value
| class current_prolog_flag/2 |
current_prolog_flag(? Flag,- Value)
defined in the ISO standard
Obtain the value for a YAP Prolog flag Equivalent to calling yap_flag/2 with the second argument unbound, and unifying the returned second argument with Value
| class set_prolog_flag/2 |
set_prolog_flag(+ Flag,+ Value)
defined in the ISO standard
Set the value for YAP Prolog flag Flag Equivalent to calling yap_flag/2 with both arguments bound
| class source/0 |
| class no_source/0 |
no_source
The opposite to source
The same as source_mode(_,off)
| class source_mode/2 |
source_mode(- O,+ N)
The state of source mode can either be on or off When the source mode is on, all clauses are kept both as compiled code and in a "hidden" database O is unified with the previous state and the mode is set according to N
| class prolog_flag_property/2 |
prolog_flag_property(+ Flag,+ Prooperties)
Report a property for a YAP Prolog flag Properties include
type(+_Type_) with Type one of boolean, integer, float, atom and term (that is, any ground term)
access(+_Access_) with Access one of read_only or read_write
scope(+_Scope_) the flag aplies to athread, to amodule, or is global` to the system
| #define PROLOG_FLAG_PROPERTY_DEFS | ( | ) |
| X_API bool Yap_create_prolog_flag | ( | const char * | name, |
| bool | writable, | ||
| Term | ttype, | ||
| Term | v | ||
| ) |
| void Yap_InitFlags | ( | bool | bootstrap | ) |
Init System Prolog flags.
This is done in two phases: early on, it takes care of the atomic flags that are required by other modules; later, it looks at flags that are structured terms
| bootstrap | wether this is done before stack initialization, or afterwards Complex terms can only be built in the second step |
Macros | |
| #define | PROLOG_FLAG_PROPERTY_DEFS() |
| #define | PAR(x, y, z, w) z |
| #define | PAR(x, y, z, w) { x, y, z, w } |
Typedefs | |
| typedef enum prolog_flag_property_enum_choices | prolog_flag_property_choices_t |
Enumerations | |
| enum | prolog_flag_property_enum_choices { PROLOG_FLAG_PROPERTY_DEFS =() } |
Functions | |
| void | Yap_setModuleFlags (ModEntry *new, ModEntry *cme) |
| bool | Yap_set_flag (Term tflag, Term t2) |
| Term | Yap_UnknownFlag (Term mod) |
| Term | getYapFlag (Term tflag) |
| X_API bool | Yap_create_prolog_flag (const char *name, bool writable, Term ttype, Term v) |
| Create a new global prolog flag. More... | |
| void | Yap_InitFlags (bool bootstrap) |
| Init System Prolog flags. More... | |