Privacy and Security Notice

Archived Messages for CLAS_OFFLINE_1997@cebaf.gov: Re: Incompatible BOS bank C structures

Re: Incompatible BOS bank C structures

Joseph Manak (manak@CEBAF.GOV)
Thu, 12 Jun 1997 15:23:53 -0400

Hello,
Dave and I have a slightly different C data structure
naming convention and Dave does not use the BOS header structure
defined in the previous note. Specifically, Dave defines his C
data structures like below:

typedef struct dc0 *dc0PTR;

typedef struct dc0{
unsigned short id;
unsigned short tdc;
} dc0;

While our data structures looks something like:

typedef struct{
unsigned short id;
unsigned short tdc;
}dc0_t;

typedef struct{
BankHeader_t bank;
dc0_t dc0[1];
}clasDC0_t;

It is clear that Dave's scheme is a subset of our own and
that all we really need to agree upon is a naming convention for the
banks so we can share a common header file. Any functions already
defined by Dave to manipulate his banks will complement our existing
library. After dicussing this with Dave we think the dc0_t
( with the _t making it clear that it is a type) standing for structure
name might be safer and less confusing. In addition, we will include
in our header file a definition for a pointer to each bank like in
Dave's example.
-Joe