helpers.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. * best view tabstop=4
  20. */
  21. #ifndef _DGL_HELPERS_H_
  22. #define _DGL_HELPERS_H_
  23. #include "tree.h"
  24. extern unsigned char *dgl_mempush(unsigned char *pstack, long *istack,
  25. long size, void *pv);
  26. extern unsigned char *dgl_mempop(unsigned char *pstack, long *istack,
  27. long size);
  28. extern void dgl_swapInt32Bytes(dglInt32_t * pn);
  29. extern void dgl_swapInt64Bytes(dglInt64_t * pn);
  30. extern int dgl_edge_prioritizer_del(dglGraph_s * pG, dglInt32_t nId,
  31. dglInt32_t nPriId);
  32. extern int dgl_edge_prioritizer_add(dglGraph_s * pG, dglInt32_t nId,
  33. dglInt32_t nPriId);
  34. extern void *dgl_reduce_edgeset(void *pvSet, int *pc, dglInt32_t nKey);
  35. #endif