GNU PROLOG with UTF8 support
Macros | Functions
misc.c File Reference
#include "gp_config.h"
#include "machine.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "engine_pl.h"
#include "../Linedit/linedit.h"
Include dependency graph for misc.c:

Macros

#define ERR_ALLOC_FAULT   "Memory allocation fault (%s) in %s:%d"
 

Functions

char * Pl_Malloc_Check (unsigned size, char *src_file, int src_line)
 
char * Pl_Calloc_Check (unsigned nb, unsigned size, char *src_file, int src_line)
 
char * Pl_Realloc_Check (char *ptr, unsigned size, char *src_file, int src_line)
 
char * Pl_Strdup_Check (char *str, char *src_file, int src_line)
 
void Pl_Extend_Table_If_Needed (char **hash_tbl)
 
void Pl_Extend_Array (char **ptbl, int *nb_elem, int elem_size, Bool bzero)
 
void Pl_Exit_With_Value (int ret_val)
 
void Pl_Fatal_Error (char *format,...)
 
int Pl_LSB (PlLong x)
 
int Pl_MSB (PlLong x)
 
int Pl_Popcount (PlLong x)
 
void * Pl_Dummy_Ptr (void *p)
 

Macro Definition Documentation

#define ERR_ALLOC_FAULT   "Memory allocation fault (%s) in %s:%d"

Function Documentation

char* Pl_Calloc_Check ( unsigned  nb,
unsigned  size,
char *  src_file,
int  src_line 
)

Here is the call graph for this function:

void* Pl_Dummy_Ptr ( void *  p)

Here is the caller graph for this function:

void Pl_Exit_With_Value ( int  ret_val)

Here is the caller graph for this function:

void Pl_Extend_Array ( char **  ptbl,
int *  nb_elem,
int  elem_size,
Bool  bzero 
)

Here is the caller graph for this function:

void Pl_Extend_Table_If_Needed ( char **  hash_tbl)

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_Fatal_Error ( char *  format,
  ... 
)

Here is the caller graph for this function:

int Pl_LSB ( PlLong  x)
char* Pl_Malloc_Check ( unsigned  size,
char *  src_file,
int  src_line 
)

Here is the call graph for this function:

int Pl_MSB ( PlLong  x)
int Pl_Popcount ( PlLong  x)
char* Pl_Realloc_Check ( char *  ptr,
unsigned  size,
char *  src_file,
int  src_line 
)

Here is the call graph for this function:

char* Pl_Strdup_Check ( char *  str,
char *  src_file,
int  src_line 
)

Here is the call graph for this function: