FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_malloc.h File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Include dependency graph for hecmw_malloc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HECMW_malloc(size)   malloc(size)
 
#define HECMW_calloc(nmemb, size)   calloc(nmemb, size)
 
#define HECMW_realloc(ptr, size)   realloc(ptr, size)
 
#define HECMW_strdup(s)   strdup(s)
 
#define HECMW_free(ptr)   free(ptr)
 

Functions

void * HECMW_malloc_ (size_t size, char *file, int line)
 
void * HECMW_calloc_ (size_t nmemb, size_t size, char *file, int line)
 
void * HECMW_realloc_ (void *ptr, size_t size, char *file, int line)
 
char * HECMW_strdup_ (const char *s, char *file, int line)
 
void HECMW_free_ (void *ptr, char *file, int line)
 
int HECMW_check_memleak (void)
 
long HECMW_get_memsize (void)
 
void HECMW_set_autocheck_memleak (int flag)
 
int HECMW_list_meminfo (FILE *fp)
 

Macro Definition Documentation

◆ HECMW_calloc

#define HECMW_calloc (   nmemb,
  size 
)    calloc(nmemb, size)

Definition at line 21 of file hecmw_malloc.h.

◆ HECMW_free

#define HECMW_free (   ptr)    free(ptr)

Definition at line 24 of file hecmw_malloc.h.

◆ HECMW_malloc

#define HECMW_malloc (   size)    malloc(size)

Definition at line 20 of file hecmw_malloc.h.

◆ HECMW_realloc

#define HECMW_realloc (   ptr,
  size 
)    realloc(ptr, size)

Definition at line 22 of file hecmw_malloc.h.

◆ HECMW_strdup

#define HECMW_strdup (   s)    strdup(s)

Definition at line 23 of file hecmw_malloc.h.

Function Documentation

◆ HECMW_calloc_()

void* HECMW_calloc_ ( size_t  nmemb,
size_t  size,
char *  file,
int  line 
)

Definition at line 194 of file hecmw_malloc.c.

◆ HECMW_check_memleak()

int HECMW_check_memleak ( void  )

Definition at line 138 of file hecmw_malloc.c.

◆ HECMW_free_()

void HECMW_free_ ( void *  ptr,
char *  file,
int  line 
)

Definition at line 170 of file hecmw_malloc.c.

◆ HECMW_get_memsize()

long HECMW_get_memsize ( void  )

Definition at line 168 of file hecmw_malloc.c.

◆ HECMW_list_meminfo()

int HECMW_list_meminfo ( FILE *  fp)

Definition at line 121 of file hecmw_malloc.c.

◆ HECMW_malloc_()

void* HECMW_malloc_ ( size_t  size,
char *  file,
int  line 
)

Definition at line 179 of file hecmw_malloc.c.

◆ HECMW_realloc_()

void* HECMW_realloc_ ( void *  ptr,
size_t  size,
char *  file,
int  line 
)

Definition at line 209 of file hecmw_malloc.c.

◆ HECMW_set_autocheck_memleak()

void HECMW_set_autocheck_memleak ( int  flag)

Definition at line 136 of file hecmw_malloc.c.

◆ HECMW_strdup_()

char* HECMW_strdup_ ( const char *  s,
char *  file,
int  line 
)

Definition at line 249 of file hecmw_malloc.c.