1 #include <stdio.h> 2 #include <grass/raster.h> 3 4 #define RULE struct _rule_ 5 RULE { 6 CELL new; 7 CELL lo; 8 CELL hi; 9 RULE *next; 10 }; 11 12 /* add_rule.c */ 13 int add_rule(RULE **, CELL, CELL, CELL); 14 15 /* parse.c */ 16 int parse(const char *, RULE **, RULE **, struct Categories *); 17 18 /* reclass.c */ 19 int reclass(const char *, const char *, const char *, RULE *, struct Categories *, const char *); 20 21 /* input.c */ 22 int input(FILE *, int, const char *); 23 24 /* range.c */ 25 int new_range(const char *, struct Reclass *); 26 27 /* stats.c */ 28 void new_stats(const char *, struct Reclass *); 29