• Unions

    From John Kniewasser@21:1/5 to All on Tue Dec 13 14:55:12 2022
    Good day to you all!

    I am looking for some help with this union, specifically with the alignment required.

    At the end of each struct are statements
    } Compressed;
    } Windows;
    } File;

    I believe this relates to the alignment of the struct.

    union
    {
    struct struct_compressed_memory
    {
    HGLOBAL hData; /* internal use */
    L_VOID L_HUGE*pData; /* internal use */
    } Compressed;

    struct struct_window_memory
    {
    HGLOBAL hData; /* Internal use */
    L_UCHAR L_FAR *pData; /* Internal use */
    } Windows;

    struct struct_file_memory
    {
    L_INT fd; /* Internal use */
    L_CHAR L_FAR *Filename;/* Internal use */
    } File;
    } Addr;

    Thank you if anyone can decipher this!

    Cheers, JK

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)