point.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __POINT_H__
  2. #define __POINT_H__
  3. /***************************************************************/
  4. /* */
  5. /* point.h in r.spreadpath */
  6. /* */
  7. /* This header file defines the point data structure */
  8. /* and variables related to this structure. */
  9. /* */
  10. /***************************************************************/
  11. struct point
  12. {
  13. int row, col, backrow, backcol;
  14. struct point *next;
  15. };
  16. #define POINT struct point
  17. #define PRES_PT_BACKROW PRES_PT->backrow
  18. #define PRES_PT_BACKCOL PRES_PT->backcol
  19. #define PRES_PT_ROW PRES_PT->row
  20. #define PRES_PT_COL PRES_PT->col
  21. #define NEXT_PT PRES_PT->next
  22. #define NEW_BACKROW NEW_START_PT->backrow
  23. #define NEW_BACKCOL NEW_START_PT->backcol
  24. #define NEW_ROW NEW_START_PT->row
  25. #define NEW_COL NEW_START_PT->col
  26. #define NEW_NEXT NEW_START_PT->next
  27. #define NEXT_START_PT PRESENT_PT->next
  28. #endif