GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
calc.h
Go to the documentation of this file.
1 
2 #ifndef GRASS_CALC_H
3 #define GRASS_CALC_H
4 
5 #include <grass/gis.h>
6 #include <grass/raster.h>
7 
8 typedef int func_t(int argc, const int *argt, void **args);
9 typedef int args_t(int argc, int *argt);
10 
11 enum {
12  E_ARG_LO = 1,
13  E_ARG_HI = 2,
17  E_ARG_NUM = 6,
18  E_WTF = 99
19 };
20 
21 typedef struct func_desc
22 {
23  const char *name;
26 } func_desc;
27 
28 #define IS_NULL_C(x) (Rast_is_c_null_value((x)))
29 #define IS_NULL_F(x) (Rast_is_f_null_value((x)))
30 #define IS_NULL_D(x) (Rast_is_d_null_value((x)))
31 
32 #define SET_NULL_C(x) (Rast_set_c_null_value((x),1))
33 #define SET_NULL_F(x) (Rast_set_f_null_value((x),1))
34 #define SET_NULL_D(x) (Rast_set_d_null_value((x),1))
35 
36 extern volatile int floating_point_exception;
37 extern volatile int floating_point_exception_occurred;
38 
39 extern int columns;
40 
41 extern func_desc calc_func_descs[];
42 
43 #include <grass/defs/calc.h>
44 
45 #endif
func_t * func
Definition: calc.h:25
Definition: calc.h:13
int columns
Definition: calc.c:12
volatile int floating_point_exception
Definition: calc.c:9
int args_t(int argc, int *argt)
Definition: calc.h:9
Definition: calc.h:18
struct func_desc func_desc
func_desc calc_func_descs[]
Definition: function.c:4
Definition: calc.h:12
const char * name
Definition: calc.h:23
args_t * check_args
Definition: calc.h:24
volatile int floating_point_exception_occurred
Definition: calc.c:10
Definition: calc.h:17
Definition: calc.h:21
int func_t(int argc, const int *argt, void **args)
Definition: calc.h:8