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