GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
helpers.h
Go to the documentation of this file.
1 /* LIBDGL -- a Directed Graph Library implementation
2  * Copyright (C) 2002 Roberto Micarelli
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 /*
20  * best view tabstop=4
21  */
22 
23 #ifndef _DGL_HELPERS_H_
24 #define _DGL_HELPERS_H_
25 
26 #include "tree.h"
27 
28 extern unsigned char *dgl_mempush(unsigned char *pstack, long *istack,
29  long size, void *pv);
30 extern unsigned char *dgl_mempop(unsigned char *pstack, long *istack,
31  long size);
32 extern void dgl_swapInt32Bytes(dglInt32_t * pn);
33 extern void dgl_swapInt64Bytes(dglInt64_t * pn);
35  dglInt32_t nPriId);
37  dglInt32_t nPriId);
38 extern void *dgl_reduce_edgeset(void *pvSet, int *pc, dglInt32_t nKey);
39 
40 #endif
unsigned char * dgl_mempop(unsigned char *pstack, long *istack, long size)
Definition: helpers.c:48
unsigned char * dgl_mempush(unsigned char *pstack, long *istack, long size, void *pv)
Definition: helpers.c:35
long long dglInt64_t
Definition: type.h:38
long dglInt32_t
Definition: type.h:37
int dgl_edge_prioritizer_add(dglGraph_s *pG, dglInt32_t nId, dglInt32_t nPriId)
Definition: helpers.c:134
void dgl_swapInt64Bytes(dglInt64_t *pn)
Definition: helpers.c:68
void dgl_swapInt32Bytes(dglInt32_t *pn)
Definition: helpers.c:55
void * dgl_reduce_edgeset(void *pvSet, int *pc, dglInt32_t nKey)
int dgl_edge_prioritizer_del(dglGraph_s *pG, dglInt32_t nId, dglInt32_t nPriId)
Definition: helpers.c:92