GNU PROLOG with UTF8 support
Macros | Functions | Variables
error_supp.c File Reference
#include <errno.h>
#include <string.h>
#include "engine_pl.h"
#include "bips_pl.h"
Include dependency graph for error_supp.c:

Macros

#define OBJ_INIT   Error_Supp_Initializer
 
#define ERROR_SUPP_FILE
 
#define PL_ERR_INSTANTIATION   X1_24706C5F6572725F696E7374616E74696174696F6E
 
#define PL_ERR_UNINSTANTIATION   X1_24706C5F6572725F756E696E7374616E74696174696F6E
 
#define PL_ERR_TYPE   X1_24706C5F6572725F74797065
 
#define PL_ERR_DOMAIN   X1_24706C5F6572725F646F6D61696E
 
#define PL_ERR_EXISTENCE   X1_24706C5F6572725F6578697374656E6365
 
#define PL_ERR_PERMISSION   X1_24706C5F6572725F7065726D697373696F6E
 
#define PL_ERR_REPRESENTATION   X1_24706C5F6572725F726570726573656E746174696F6E
 
#define PL_ERR_EVALUATION   X1_24706C5F6572725F6576616C756174696F6E
 
#define PL_ERR_RESOURCE   X1_24706C5F6572725F7265736F75726365
 
#define PL_ERR_SYNTAX   X1_24706C5F6572725F73796E746178
 
#define PL_ERR_SYSTEM   X1_24706C5F6572725F73797374656D
 

Functions

static void Update_Cur_From_C_Bip (void)
 
static char * Context_Error_String (void)
 
 Prolog_Prototype (PL_ERR_INSTANTIATION, 0)
 
 Prolog_Prototype (PL_ERR_UNINSTANTIATION, 1)
 
 Prolog_Prototype (PL_ERR_TYPE, 2)
 
 Prolog_Prototype (PL_ERR_DOMAIN, 2)
 
 Prolog_Prototype (PL_ERR_EXISTENCE, 2)
 
 Prolog_Prototype (PL_ERR_PERMISSION, 3)
 
 Prolog_Prototype (PL_ERR_REPRESENTATION, 1)
 
 Prolog_Prototype (PL_ERR_EVALUATION, 1)
 
 Prolog_Prototype (PL_ERR_RESOURCE, 1)
 
 Prolog_Prototype (PL_ERR_SYNTAX, 1)
 
 Prolog_Prototype (PL_ERR_SYSTEM, 1)
 
static void Error_Supp_Initializer (void)
 
void Pl_Set_Bip_Name_2 (WamWord func_word, WamWord arity_word)
 
void Pl_Set_Bip_Name_Untagged_2 (int func, int arity)
 
Bool Pl_Current_Bip_Name_2 (WamWord func_word, WamWord arity_word)
 
void Pl_Set_C_Bip_Name (char *func_str, int arity)
 
void Pl_Unset_C_Bip_Name (void)
 
int Pl_Get_Current_Bip (int *arity)
 
void Pl_Context_Error_1 (WamWord err_word)
 
void Pl_Set_Last_Syntax_Error (char *file_name, int err_line, int err_col, char *err_msg)
 
Bool Pl_Syntax_Error_Info_4 (WamWord file_name_word, WamWord line_word, WamWord char_word, WamWord msg_word)
 
void Pl_Syntax_Error (int flag_value)
 
void Pl_Unknown_Pred_Error (int func, int arity)
 
void Pl_Os_Error (int ret_val)
 
void Pl_Err_Instantiation (void)
 
void Pl_Err_Uninstantiation (WamWord term)
 
void Pl_Err_Type (int atom_type, WamWord term)
 
void Pl_Err_Domain (int atom_domain, WamWord term)
 
void Pl_Err_Existence (int atom_object, WamWord term)
 
void Pl_Err_Permission (int atom_oper, int atom_perm, WamWord term)
 
void Pl_Err_Representation (int atom_flag)
 
void Pl_Err_Evaluation (int pl_atom_error)
 
void Pl_Err_Resource (int atom_resource)
 
void Pl_Err_Syntax (int pl_atom_error)
 
void Pl_Err_System (int pl_atom_error)
 

Variables

static int cur_bip_func
 
static int cur_bip_arity
 
static char * c_bip_func_str
 
static int c_bip_arity
 
static char * last_err_file = NULL
 
static int last_err_line
 
static int last_err_col
 
static char * last_err_msg
 

Macro Definition Documentation

#define ERROR_SUPP_FILE
#define OBJ_INIT   Error_Supp_Initializer
#define PL_ERR_DOMAIN   X1_24706C5F6572725F646F6D61696E
#define PL_ERR_EVALUATION   X1_24706C5F6572725F6576616C756174696F6E
#define PL_ERR_EXISTENCE   X1_24706C5F6572725F6578697374656E6365
#define PL_ERR_INSTANTIATION   X1_24706C5F6572725F696E7374616E74696174696F6E
#define PL_ERR_PERMISSION   X1_24706C5F6572725F7065726D697373696F6E
#define PL_ERR_REPRESENTATION   X1_24706C5F6572725F726570726573656E746174696F6E
#define PL_ERR_RESOURCE   X1_24706C5F6572725F7265736F75726365
#define PL_ERR_SYNTAX   X1_24706C5F6572725F73796E746178
#define PL_ERR_SYSTEM   X1_24706C5F6572725F73797374656D
#define PL_ERR_TYPE   X1_24706C5F6572725F74797065
#define PL_ERR_UNINSTANTIATION   X1_24706C5F6572725F756E696E7374616E74696174696F6E

Function Documentation

static char * Context_Error_String ( void  )
static

Here is the caller graph for this function:

static void Error_Supp_Initializer ( void  )
static

Here is the call graph for this function:

void Pl_Context_Error_1 ( WamWord  err_word)

Here is the call graph for this function:

Bool Pl_Current_Bip_Name_2 ( WamWord  func_word,
WamWord  arity_word 
)

Here is the call graph for this function:

void Pl_Err_Domain ( int  atom_domain,
WamWord  term 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Err_Evaluation ( int  pl_atom_error)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Err_Existence ( int  atom_object,
WamWord  term 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Err_Instantiation ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Err_Permission ( int  atom_oper,
int  atom_perm,
WamWord  term 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Err_Representation ( int  atom_flag)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Err_Resource ( int  atom_resource)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Err_Syntax ( int  pl_atom_error)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Err_System ( int  pl_atom_error)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Err_Type ( int  atom_type,
WamWord  term 
)

Here is the call graph for this function:

void Pl_Err_Uninstantiation ( WamWord  term)

Here is the call graph for this function:

int Pl_Get_Current_Bip ( int *  arity)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Os_Error ( int  ret_val)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Set_Bip_Name_2 ( WamWord  func_word,
WamWord  arity_word 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Set_Bip_Name_Untagged_2 ( int  func,
int  arity 
)
void Pl_Set_C_Bip_Name ( char *  func_str,
int  arity 
)

Here is the caller graph for this function:

void Pl_Set_Last_Syntax_Error ( char *  file_name,
int  err_line,
int  err_col,
char *  err_msg 
)

Here is the caller graph for this function:

void Pl_Syntax_Error ( int  flag_value)

Here is the call graph for this function:

Here is the caller graph for this function:

Bool Pl_Syntax_Error_Info_4 ( WamWord  file_name_word,
WamWord  line_word,
WamWord  char_word,
WamWord  msg_word 
)

Here is the call graph for this function:

void Pl_Unknown_Pred_Error ( int  func,
int  arity 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Unset_C_Bip_Name ( void  )

Here is the caller graph for this function:

Prolog_Prototype ( PL_ERR_INSTANTIATION  ,
 
)
Prolog_Prototype ( PL_ERR_UNINSTANTIATION  ,
 
)
Prolog_Prototype ( PL_ERR_TYPE  ,
 
)
Prolog_Prototype ( PL_ERR_DOMAIN  ,
 
)
Prolog_Prototype ( PL_ERR_EXISTENCE  ,
 
)
Prolog_Prototype ( PL_ERR_PERMISSION  ,
 
)
Prolog_Prototype ( PL_ERR_REPRESENTATION  ,
 
)
Prolog_Prototype ( PL_ERR_EVALUATION  ,
 
)
Prolog_Prototype ( PL_ERR_RESOURCE  ,
 
)
Prolog_Prototype ( PL_ERR_SYNTAX  ,
 
)
Prolog_Prototype ( PL_ERR_SYSTEM  ,
 
)
static void Update_Cur_From_C_Bip ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

int c_bip_arity
static
char* c_bip_func_str
static
int cur_bip_arity
static
int cur_bip_func
static
int last_err_col
static
char* last_err_file = NULL
static
int last_err_line
static
char* last_err_msg
static