linkm.h 539 B

1234567891011121314151617181920212223242526
  1. #ifndef GRASS_LINKM_H
  2. #define GRASS_LINKM_H
  3. #ifndef FILE
  4. # include <stdio.h>
  5. #endif
  6. #define VOID_T char
  7. #define PTR_CNT 10
  8. struct link_head
  9. {
  10. VOID_T **ptr_array; /* array of pointers to chunks */
  11. int max_ptr; /* num of chunks alloced */
  12. int alloced; /* size of ptr_array */
  13. int chunk_size; /* size of alloc chucks in units */
  14. int unit_size; /* size of each user defined unit */
  15. VOID_T *Unused; /* Unused list pointer */
  16. int exit_flag; /* exit on error ? */
  17. };
  18. #include <grass/defs/linkm.h>
  19. #endif