1
/* @(#)gl_defs.h 1.3 (ESO-IPG) 2/11/94 09:29:44 */
2
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6
.AUTHOR Cristian Levin - ESO La Silla
7
.PURPOSE global definitions for Midas related applications.
8
.KEYWORDS global definitions
10
.VERSION 1.0 1-Mar-1991 Implementation
12
------------------------------------------------------------*/
16
#define OSAERR -1 /* error status returned by osa routines */
17
#define SUCCESS 0 /* exit status returned by osa routines */
19
#define MAXDATA 16384 /* max number of elements in a column */
20
#define MAXLABEL 32 /* max length of a column label */
21
#define MAXCOLS 512 /* max. no of cols in a table */
22
#define MAXNAME 128 /* max. length of a filename */
23
#define DEFAULT_CHAR '?' /* character used for default parameter */
25
#define MAX_IDENT 72 /* as defined in Appendix C of env. Manual */
27
#define OUTSIDE_MIDAS "-1"
28
#define MAXVALS 60 /* max. length of default parameters */
29
#define MAXUNIT 16 /* max. length of a unit string */
31
#define ALL_DESC 1 /* used in SCDCOP() */
42
#define TRUE (! FALSE)
44
#define POSVALUE 25 /* position of value in write/key command */
46
/* Definitions for text choice widgets */
47
#define NUMTEXTWIDGETS 40
49
/* definitions for help */
50
#define MAXSIZE_HELP 4096
51
#define COMMAND_HELP 0
52
#define PULLDOWN_HELP 1
54
/* functions of the OSMEMORY module of the Midas system library */
60
#define SWAP(a, b) {int swap_tmp; \
61
swap_tmp = a; a = b; b = swap_tmp;}
63
#define NINT(x) ((x) + ( ((x) < 0.0) ? -0.5: 0.5))