GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#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 134 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 92 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 48 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 35 of file helpers.c.
References NULL.
Referenced by DGL_SPAN_DEPTHFIRST_SPANNING_FUNC().
void dgl_swapInt32Bytes | ( | dglInt32_t * | pn | ) |
Definition at line 55 of file helpers.c.
Referenced by dgl_read_V1(), dgl_read_V2(), and dglReadChunk().
void dgl_swapInt64Bytes | ( | dglInt64_t * | pn | ) |
Definition at line 68 of file helpers.c.
Referenced by dgl_read_V1(), dgl_read_V2(), and dglReadChunk().