/usr/lib/grass64/include/grass/vask.h is in grass-dev 6.4.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | #ifndef __VASK_H__
#define __VASK_H__
#include <signal.h>
#include <curses.h>
#ifdef MAKE_VASK_LIB
#define MAX_ANSW 80
#define MAX_CONST 80
#define MAX_LINE 23
/**
*** target contains all the variable type that we will want to
*** be looking for.
**/
union target
{
char *c;
short *h;
int *i;
long *l;
float *f;
double *d;
double for_alignement;
};
/**
*** ans_rec contains all the information needed to go
*** and get an answer from the screen.
**/
struct ans_rec
{
union target targetptr; /* pointer to value */
int var_type; /* value type */
int row; /* row position */
int col; /* column position */
int length; /* length of entry */
int decimal_places; /* number of decimal places */
};
/**
*** page is an array of pointers to lines on a page.
**/
struct page
{
const char *line[MAX_LINE];
};
struct V__
{
struct ans_rec usr_answ[MAX_ANSW];
struct ans_rec constant[MAX_CONST];
struct page page;
int NUM_ANSW;
int NUM_CONST;
int NUM_LINE;
int decimal_places;
char interrupt_msg[80];
};
/* one of the library routines (V_call) will define this struct */
extern struct V__ V__;
#endif
void V_float_accuracy(int);
int V_call(void);
void V_intrpt_ok(void);
void V_intrpt_msg(const char *);
void V_clear(void);
int V_const(void *, int, int, int, int);
void V_error(const char *, ...);
void V_exit(void);
void V_init(void);
int V_line(int, const char *);
int V_ques(void *, int, int, int, int);
int V__dump_window(void);
void V__remove_trail(int, char *);
void V__trim_decimal(char *);
#endif /* __VASK_H__ */
|