GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
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

◆ dig__alloc_space()

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

Definition at line 49 of file allocation.c.

References dig__frealloc(), and G_calloc.

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

◆ dig__falloc()

void* dig__falloc ( int  nelem,
int  elsize 
)

Definition at line 118 of file allocation.c.

References G_calloc.

Referenced by dig_falloc().

◆ dig__frealloc()

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

Definition at line 133 of file allocation.c.

References G_calloc.

Referenced by dig__alloc_space(), and dig_frealloc().

◆ dig_alloc_space()

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.

◆ dig_falloc()

void* dig_falloc ( int  nelem,
int  elsize 
)

Definition at line 91 of file allocation.c.

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

◆ dig_frealloc()

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.