Debian Codegraph @

gui/XEchelle/incl/gl_defs.h

raw
1 /* @(#)gl_defs.h 19.1 (ESO-IPG) 02/25/03 13:45:25 */
2 /* @(#)gl_defs.h 8.3 (ESO-IPG) 10/25/94 17:25:23 */
3 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 .IDENT gl_defs.h
5 .MODULE header
6 .LANGUAGE C
7 .AUTHOR Cristian Levin - ESO La Silla
8 .PURPOSE global definitions for Midas related applications.
9 .KEYWORDS global definitions
10 .COMMENTS
11 .VERSION 1.0 1-Mar-1991 Implementation
12 .ENVIRONMENT UNIX
13 ------------------------------------------------------------*/
14
15 #define MAXLINE 128
16 #define END_FILE -1
17 #define OSAERR -1 /* error status returned by osa routines */
18 #define SUCCESS 0 /* exit status returned by osa routines */
19
20 #define MAXDATA 16384 /* max number of elements in a column */
21 #define MAXLABEL 32 /* max length of a column label */
22 #define MAXCOLS 512 /* max. no of cols in a table */
23 #define MAXNAME 128 /* max. length of a filename */
24 #define DEFAULT_CHAR '?' /* character used for default parameter */
25
26 #define MAX_IDENT 72 /* as defined in Appendix C of env. Manual */
27
28 #define OUTSIDE_MIDAS "-1"
29 #define MAXVALS 60 /* max. length of default parameters */
30 #define MAXUNIT 16 /* max. length of a unit string */
31
32 #define ALL_DESC 1 /* used in SCDCOP() */
33
34 #ifndef TRUE
35 #define FALSE 0
36 #define TRUE (! FALSE)
37 #endif
38
39 /* Macros */
40
41 #define SWAP(a, b) {int swap_tmp; \
42 swap_tmp = a; a = b; b = swap_tmp;}
43
44 #define NINT(x) ((x) + ( ((x) < 0.0) ? -0.5: 0.5))
45