GRASS Programmer's Manual  6.4.2(2012)
GSX.c
Go to the documentation of this file.
00001 
00019 #include <grass/gstypes.h>
00020 
00021 void (*Cxl_func) ();
00022 void (*Swap_func) ();
00023 
00024 static int Cxl = 0;
00025 
00031 int GS_check_cancel(void)
00032 {
00033     Cxl_func();
00034 
00035     return (Cxl);
00036 }
00037 
00041 void GS_set_cancel(int c)
00042 {
00043     Cxl = c;
00044 
00045     return;
00046 }
00047 
00053 void GS_set_cxl_func(void (*f) (void))
00054 {
00055     Cxl_func = f;
00056 
00057     return;
00058 }
00059 
00065 void GS_set_swap_func(void (*f) (void))
00066 {
00067     Swap_func = f;
00068 
00069     return;
00070 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines