NCEPLIBS-bufr 11.7.1
cfe.h
Go to the documentation of this file.
1
8#define MAX_MEANING_LEN 150
9
10#ifdef UNDERSCORE
11#define cmpstia1 cmpstia1_
12#define cmpstia2 cmpstia2_
13#define dlloctbf dlloctbf_
14#define inittbf inittbf_
15#define sorttbf sorttbf_
16#define srchtbf srchtbf_
17#define strtbfe strtbfe_
18#endif
19
20int cmpstia1( const void *, const void * );
21int cmpstia2( const void *, const void * );
22void dlloctbf( void );
23void inittbf( void );
24void sorttbf( void );
25void srchtbf( f77int *, f77int *, f77int *, f77int *, f77int *,
26 char *, f77int *, f77int *, f77int * );
27void strtbfe( f77int *, f77int *, char *, f77int *, f77int *, f77int * );
28
51 f77int iffxyn;
52 f77int ifval;
53 char ifmeaning[MAX_MEANING_LEN+1];
54 f77int iffxynd;
55 f77int ifvald;
56};
57
71#ifdef IN_INITTBF
72 struct code_flag_entry *cfe; /* will automatically initialize to NULL */
73 f77int mxmtbf;
74 f77int nmtf;
75#else
76 extern struct code_flag_entry *cfe;
77 extern f77int mxmtbf;
78 extern f77int nmtf;
79#endif
char ifmeaning[MAX_MEANING_LEN+1]
Meaning corresponding to ifval.
Definition: cfe.h:53
void dlloctbf(void)
This subroutine frees any memory that was dynamically allocated during a previous call to subroutine ...
Definition: dlloctbf.c:20
void strtbfe(f77int *, f77int *, char *, f77int *, f77int *, f77int *)
This subroutine adds a new entry to the internal memory structure for storage of master Code/Flag tab...
Definition: strtbfe.c:33
f77int mxmtbf
Maximum number of master Code/Flag table entries, counting across all individual Code/Flag tables,...
f77int iffxynd
Bit-wise representation of FXY number upon which this entry is dependent, if any.
Definition: cfe.h:54
f77int nmtf
Number of stored master Code/Flag table entries in cfe, up to a maximum of MXMTBF.
f77int ifval
Code figure or bit number.
Definition: cfe.h:52
int cmpstia1(const void *, const void *)
This function defines a comparison between two entries within the internal memory structure for stora...
Definition: cmpstia1.c:34
f77int ifvald
Code figure or bit number upon which this entry is dependent, if any.
Definition: cfe.h:55
void inittbf(void)
This subroutine initializes the internal memory structure for storage of master Code/Flag table entri...
Definition: inittbf.c:22
int cmpstia2(const void *, const void *)
This function defines a comparison between two entries within the internal memory structure for stora...
Definition: cmpstia2.c:34
f77int iffxyn
Bit-wise representation of FXY number to which this entry belongs.
Definition: cfe.h:51
struct code_flag_entry * cfe
Master Code/Flag table entries.
void srchtbf(f77int *, f77int *, f77int *, f77int *, f77int *, char *, f77int *, f77int *, f77int *)
This subroutine searches for a specified FXY number and associated value (code figure or bit number) ...
Definition: srchtbf.c:74
void sorttbf(void)
This subroutine sorts the entries within the internal memory structure for storage of master Code/Fla...
Definition: sorttbf.c:20
This structure contains array and variable declarations used to store a master Code/Flag table entry.
Definition: cfe.h:33