GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GSX.c
Go to the documentation of this file.
1 
19 #include <grass/gstypes.h>
20 
21 void (*Cxl_func) ();
22 void (*Swap_func) ();
23 
24 static int Cxl = 0;
25 
31 int GS_check_cancel(void)
32 {
33  Cxl_func();
34 
35  return (Cxl);
36 }
37 
41 void GS_set_cancel(int c)
42 {
43  Cxl = c;
44 
45  return;
46 }
47 
53 void GS_set_cxl_func(void (*f) (void))
54 {
55  Cxl_func = f;
56 
57  return;
58 }
59 
65 void GS_set_swap_func(void (*f) (void))
66 {
67  Swap_func = f;
68 
69  return;
70 }