GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-602118adcc
|
#include <stdlib.h>
#include <string.h>
#include "type.h"
#include "tree.h"
#include "graph.h"
#include "helpers.h"
Go to the source code of this file.
Functions | |
unsigned char * | dgl_mempush (unsigned char *pstack, long *istack, long size, void *pv) |
unsigned char * | dgl_mempop (unsigned char *pstack, long *istack, long size) |
void | dgl_swapInt32Bytes (dglInt32_t *pn) |
void | dgl_swapInt64Bytes (dglInt64_t *pn) |
int | dgl_edge_prioritizer_del (dglGraph_s *pG, dglInt32_t nId, dglInt32_t nPriId) |
int | dgl_edge_prioritizer_add (dglGraph_s *pG, dglInt32_t nId, dglInt32_t nPriId) |
int dgl_edge_prioritizer_add | ( | dglGraph_s * | pG, |
dglInt32_t | nId, | ||
dglInt32_t | nPriId | ||
) |
Definition at line 132 of file helpers.c.
References avl_create, _dglTreeEdgePri32::cnData, DGL_ERR_MemoryExhausted, dglTreeEdgePri32Add(), dglTreeEdgePri32Compare(), dglTreeGetAllocator(), _dglGraph::edgePrioritizer, _dglGraph::iErrno, malloc(), NULL, _dglTreeEdgePri32::pnData, and dglEdgePrioritizer_s::pvAVL.
Referenced by DGL_ADD_EDGE_FUNC().
int dgl_edge_prioritizer_del | ( | dglGraph_s * | pG, |
dglInt32_t | nId, | ||
dglInt32_t | nPriId | ||
) |
Definition at line 91 of file helpers.c.
References avl_find, _dglTreeEdgePri32::cnData, DGL_ERR_MemoryExhausted, _dglGraph::edgePrioritizer, free(), _dglGraph::iErrno, malloc(), _dglTreeEdgePri32::nKey, NULL, _dglTreeEdgePri32::pnData, and dglEdgePrioritizer_s::pvAVL.
Referenced by DGL_DEL_EDGE_FUNC(), and DGL_DEL_NODE_FUNC().
unsigned char* dgl_mempop | ( | unsigned char * | pstack, |
long * | istack, | ||
long | size | ||
) |
Definition at line 47 of file helpers.c.
References NULL.
Referenced by DGL_SPAN_DEPTHFIRST_SPANNING_FUNC().
unsigned char* dgl_mempush | ( | unsigned char * | pstack, |
long * | istack, | ||
long | size, | ||
void * | pv | ||
) |
Definition at line 34 of file helpers.c.
References NULL.
Referenced by DGL_SPAN_DEPTHFIRST_SPANNING_FUNC().
void dgl_swapInt32Bytes | ( | dglInt32_t * | pn | ) |
Definition at line 54 of file helpers.c.
Referenced by dgl_read_V1(), and dgl_read_V2().
void dgl_swapInt64Bytes | ( | dglInt64_t * | pn | ) |
Definition at line 67 of file helpers.c.
Referenced by dgl_read_V1(), and dgl_read_V2().