~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to stdred/spec/incl/gl_defs.h

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* @(#)gl_defs.h        19.1 (ESO-IPG) 02/25/03 14:28:53 */
 
2
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
3
.IDENT        gl_defs.h
 
4
.MODULE       header
 
5
.LANGUAGE     C
 
6
.AUTHOR       Cristian Levin - ESO La Silla
 
7
.PURPOSE      global definitions for Midas related applications.
 
8
.KEYWORDS     global definitions
 
9
.COMMENTS     
 
10
.VERSION 1.0  1-Mar-1991   Implementation
 
11
.ENVIRONMENT  UNIX
 
12
------------------------------------------------------------*/
 
13
 
 
14
#define MAXLINE         128
 
15
#define END_FILE        -1
 
16
#define OSAERR          -1      /* error status returned by osa routines */
 
17
#define SUCCESS         0       /* exit status returned by osa routines */
 
18
 
 
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 */
 
24
 
 
25
#define MAX_IDENT       72      /* as defined in Appendix C of env. Manual */
 
26
 
 
27
#define OUTSIDE_MIDAS   "-1"
 
28
#define MAXVALS         60      /* max. length of default parameters */
 
29
#define MAXUNIT         16      /* max. length of a unit string */
 
30
 
 
31
#define ALL_DESC        1       /* used in SCDCOP() */
 
32
 
 
33
#ifdef  TRUE
 
34
#undef  TRUE
 
35
#endif
 
36
 
 
37
#ifdef  FALSE
 
38
#undef  FALSE
 
39
#endif
 
40
 
 
41
#define FALSE           0
 
42
#define TRUE            (! FALSE)
 
43
 
 
44
#define POSVALUE        25      /* position of value in write/key command */
 
45
 
 
46
/* Definitions for text choice widgets */
 
47
#define NUMTEXTWIDGETS  40
 
48
 
 
49
/* definitions for help */
 
50
#define MAXSIZE_HELP    4096
 
51
#define COMMAND_HELP    0
 
52
#define PULLDOWN_HELP   1
 
53
 
 
54
/* functions of the OSMEMORY module of the Midas system library */
 
55
char *osmmget();
 
56
void osmmfree();
 
57
 
 
58
/* Macros */
 
59
 
 
60
#define SWAP(a, b)      {int swap_tmp; \
 
61
                         swap_tmp = a; a = b; b = swap_tmp;}
 
62
 
 
63
#define NINT(x)              ((x) + ( ((x) < 0.0) ? -0.5: 0.5))
 
64
 
 
65
/* Using OSY_TRNLOG in VMS instead of osfphname() */
 
66
#ifdef vms
 
67
int no_osfphname;
 
68
#define osfphname(x,y)  OSY_TRNLOG(x,y,64,&no_osfphname)
 
69
#endif
 
70