Random structs
Opened this issue · 1 comments
lo-co commented
There are a lot of struct
s that contain one member. Examples:
struct gUDP
{
struct UDP udp[6];
} gUDP;
struct gData
{
struct Peaks peak[30000];
} gData;
struct gSerial_Ports
{
struct Serial_Port serial_port[2];
} gSerial_Ports;
Is there a reason that these reside in struct
s?
LaurelWatts commented
Yes, this was the only way I could come up with to populate an array of
structures in the configuration reading, and make them more useful in the
code. So udp for example would be UDP.udp[0].port. Just organizational.
Laurel
…On Mon, Dec 17, 2018 at 9:35 PM Matt Richardson ***@***.***> wrote:
There are a lot of structs that contain one member. Examples:
struct gUDP
{
struct UDP udp[6];
} gUDP;
struct gData
{
struct Peaks peak[30000];
} gData;
struct gSerial_Ports
{
struct Serial_Port serial_port[2];
} gSerial_Ports;
Is there a reason that these reside in structs?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#17>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AWZEtBG71mZg9dl56ciYmqDLv0mSzRaFks5u6HCIgaJpZM4ZXlXv>
.