GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73570
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
allocation.c File Reference
#include <unistd.h>
#include <stdlib.h>
#include <grass/vector.h>
Include dependency graph for allocation.c:

Go to the source code of this file.

Functions

void * dig_alloc_space (int n_wanted, int *n_elements, int chunk_size, void *ptr, int element_size)
 
void * dig__alloc_space (int n_wanted, int *n_elements, int chunk_size, void *ptr, int element_size)
 
void * dig_falloc (int nelem, int elsize)
 
void * dig_frealloc (void *oldptr, int nelem, int elsize, int oldnelem)
 
void * dig__falloc (int nelem, int elsize)
 
void * dig__frealloc (void *oldptr, int nelem, int elsize, int oldnelem)
 

Function Documentation

void* dig__alloc_space ( int  n_wanted,
int n_elements,
int  chunk_size,
void *  ptr,
int  element_size 
)

Definition at line 50 of file allocation.c.

References dig__frealloc().

Referenced by dig_alloc_cats(), dig_alloc_points(), and dig_alloc_space().

void* dig__falloc ( int  nelem,
int  elsize 
)

Definition at line 118 of file allocation.c.

Referenced by dig_build_area_with_line(), and dig_falloc().

void* dig__frealloc ( void *  oldptr,
int  nelem,
int  elsize,
int  oldnelem 
)

Definition at line 133 of file allocation.c.

References b, and G_free().

Referenced by dig__alloc_space(), dig_build_area_with_line(), and dig_frealloc().

void* dig_alloc_space ( int  n_wanted,
int n_elements,
int  chunk_size,
void *  ptr,
int  element_size 
)

Definition at line 33 of file allocation.c.

References dig__alloc_space(), and NULL.

void* dig_falloc ( int  nelem,
int  elsize 
)

Definition at line 91 of file allocation.c.

References dig__falloc(), G_sleep(), and NULL.

void* dig_frealloc ( void *  oldptr,
int  nelem,
int  elsize,
int  oldnelem 
)

Definition at line 103 of file allocation.c.

References dig__frealloc(), G_sleep(), and NULL.