GNU PROLOG with UTF8 support
Macros | Functions
misc.h File Reference
#include <stdlib.h>
Include dependency graph for misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Malloc(size)   Pl_Malloc_Check(size, __FILE__, __LINE__)
 
#define Calloc(nb, size)   Pl_Calloc_Check(nb, size, __FILE__, __LINE__)
 
#define Realloc(ptr, size)   Pl_Realloc_Check(ptr, size, __FILE__, __LINE__)
 
#define Free(ptr)   free(ptr)
 
#define Strdup(str)   Pl_Strdup_Check(str, __FILE__, __LINE__)
 
#define Pl_Least_Significant_Bit(x)   Pl_LSB(x)
 
#define Pl_Most_Significant_Bit(x)   Pl_MSB(x)
 
#define Pl_Count_Set_Bits(x)   Pl_Popcount(x)
 

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 Calloc (   nb,
  size 
)    Pl_Calloc_Check(nb, size, __FILE__, __LINE__)
#define Free (   ptr)    free(ptr)
#define Malloc (   size)    Pl_Malloc_Check(size, __FILE__, __LINE__)
#define Pl_Count_Set_Bits (   x)    Pl_Popcount(x)
#define Pl_Least_Significant_Bit (   x)    Pl_LSB(x)
#define Pl_Most_Significant_Bit (   x)    Pl_MSB(x)
#define Realloc (   ptr,
  size 
)    Pl_Realloc_Check(ptr, size, __FILE__, __LINE__)
#define Strdup (   str)    Pl_Strdup_Check(str, __FILE__, __LINE__)

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,
  ... 
)
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: