Linuxpops
3.01.04
Spectral Anaysis Package for Single Dish Data
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
cactus.h
Go to the documentation of this file.
1
/*
2
* Cactus File %W%
3
* SID %I%
4
* Date %G%
5
*/
6
7
/*
8
* This file contains symbols and macros that are generally useful to
9
* the sun cactus software
10
*/
11
#ifndef CACTUS_H
12
#define CACTUS_H
13
14
#define SZ_LINE 161
/* Length of typical text line. */
15
#define SZ_FNAME 63
/* Maximum file name length. */
16
#define SZ_PATHNAME 127
/* Maximum path name length. */
17
#define EOS '\0'
/* End of string (null). */
18
#define ERR (-1)
/* Error condition return value. */
19
#define OK 0
/* Success condition return value. */
20
#define YES 1
/* Boolean true. */
21
#define NO 0
/* Boolean false. */
22
23
#define PROCESS_INFO_STATUS 0
24
25
#define BOF 0
/* Beginning-of-file. */
26
#define BOFL (-3L)
27
#define EOFL (-2L)
28
29
#define MSG_INFO 0
/* Informational message to writemsg() */
30
#define MSG_WARN 1
/* Warning message */
31
#define MSG_ERR 2
/* Error message */
32
#define MSG_FATAL 3
/* Severe error message */
33
#define MSG_DEBUG 4
/* Debugging message */
34
#define MSG_UNKNOWN 5
/* for writemsg use only */
35
36
#define MSG_NO_MAIL 32
/* add to suppress sending to monitor */
37
#define MSG_BIT_NOMAIL 5
38
#define MSG_NO_PRINT 64
/* add to suppress printing on screen */
39
#define MSG_BIT_NOPRINT 6
40
41
#define WRITEMSG_EF 14
/* event flag for writemsg */
42
#define MAXMBLINE 2050
/* formerly of ipc.h */
43
44
#ifndef PI
45
#define PI (M_PI)
46
#endif
47
48
#define DEG_TO_RAD (PI/180.0)
49
#define RAD_TO_DEG (180.0/PI)
50
51
52
/* referance external cactus environmental variables */
53
char
*
cactus_home
;
54
char
*
cactus_global
;
55
char
*
cactus_mailboxdefs
;
56
char
*
cactus_wind_memory
;
57
char
*
cactus_isc_memory
;
58
59
60
/* probably not the place for this... */
61
62
63
/* -------------------------------------------------------------------- *
64
* External (function prototype) definitions *
65
* -------------------------------------------------------------------- */
66
67
/* CACTUS string handling routine definitions (cacstr.c). */
68
69
extern
int
getntok
();
70
extern
char
*
felem
();
71
extern
char
*
strcmprs
();
72
extern
double
ctod
();
73
extern
long
ctoma
();
74
extern
char
*
strlwr
();
75
extern
char
*
strupr
();
76
extern
char
*
strbin
();
77
78
/* message writing */
79
80
extern
int
writemsg
();
81
82
/* Supplementary bit functions (getbits.c) */
83
84
extern
int
getbits
();
85
extern
int
chkbit
();
86
87
#define BITTEST(bitno,pattern) (pattern >> bitno) & 1
88
#define BITSET(bitno,pattern) pattern = (pattern | (1 << bitno))
89
#define BITCLEAR(bitno,pattern) pattern = (pattern & ~(1 << bitno))
90
91
/* -------------------------------------------------------------------- *
92
* Sun-OS version 4 constants, symbols, etc. *
93
* -------------------------------------------------------------------- */
94
95
/* Assorted machine constants. */
96
97
#define EPSILON (1.192e-7)
/* smallest real E s.t. (1.0+E > 1.0) */
98
#define EPSILOND (2.220d-16)
/* double precision epsilon */
99
#define MAX_LONG 2147483647
100
101
/* Indefinite valued numbers. */
102
103
#define INDEFS (-32767)
104
#define INDEFL (0x80000001)
105
#define INDEFI INDEFL
106
#define INDEFR 1.6e38
107
#define INDEFD 1.6e38
108
#define INDEF INDEFR
109
110
#define PROTOTYPES 1
/* Use ANSI function prototypes (1=yes, 0=no)? */
111
112
/* These are handy. */
113
114
#define min(a,b) (((a)<(b))?(a):(b))
115
#define max(a,b) (((a)>(b))?(a):(b))
116
#define mod(a,b) ((a)-((a)/(b))*(b))
117
118
#define MAXRECEIVER 20
/* # of sets receiver specific pointing const */
119
#define LEFT_FLANGE 0
120
#define RIGHT_FLANGE 1
121
122
#define OPTICALBAY 10
/* Optical telescope "bay" */
123
124
#define N_IF_CHANS 4
125
126
127
#endif
/* End #ifndef CACTUS_H */
strbin
char * strbin(long n)
ctod
double ctod(char *str)
felem
char * felem()
strcmprs
char * strcmprs(char *str)
cactus_mailboxdefs
char * cactus_mailboxdefs
Definition:
cactus.h:55
strupr
char * strupr(char *str)
strlwr
char * strlwr(char *str)
writemsg
int writemsg()
ctoma
long ctoma(char *str)
getbits
int getbits()
chkbit
int chkbit()
cactus_home
char * cactus_home
Definition:
cactus.h:53
cactus_global
char * cactus_global
Definition:
cactus.h:54
cactus_isc_memory
char * cactus_isc_memory
Definition:
cactus.h:57
cactus_wind_memory
char * cactus_wind_memory
Definition:
cactus.h:56
getntok
int getntok(int ntok, char *dlm, char *str, char *token)
include
cactus.h
Generated on Mon Feb 21 2022 20:37:01 for Linuxpops by
1.8.5