File: point.h

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (32 lines) | stat: -rw-r--r-- 1,149 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __POINT_H__
#define __POINT_H__

/***************************************************************/
/*                                                             */
/*      point.h    in   r.spreadpath                           */
/*                                                             */
/*      This header file defines the point data structure      */
/*      and variables related to this structure.               */
/*                                                             */

/***************************************************************/

struct point {
    int row, col, backrow, backcol;
    struct point *next;
};

#define POINT           struct point
#define PRES_PT_BACKROW PRES_PT->backrow
#define PRES_PT_BACKCOL PRES_PT->backcol
#define PRES_PT_ROW     PRES_PT->row
#define PRES_PT_COL     PRES_PT->col
#define NEXT_PT         PRES_PT->next
#define NEW_BACKROW     NEW_START_PT->backrow
#define NEW_BACKCOL     NEW_START_PT->backcol
#define NEW_ROW         NEW_START_PT->row
#define NEW_COL         NEW_START_PT->col
#define NEW_NEXT        NEW_START_PT->next
#define NEXT_START_PT   PRESENT_PT->next

#endif