Re: How do I do generic programming in C?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ian Collins

    Re: How do I do generic programming in C?

    Nick Keighley wrote:
    On 13 May, 18:21, "Robbie Hatley"
    <see.my.signat. ..@for.my.email .addresswrote:
    >
    >Greetings, group. I have a situation at work in which our software
    >(running on a PC) needs to talk to two different versions of our
    >firmware (running on circuit boards in boxes hundreds of feet away,
    >communicatin g via RS232).
    >>
    >The two firmware versions (1400 and 1600) are very similar, with 1600 having a few more members in each of several key structs used for
    >communicatin g and storing data. (Alas, the added members were
    >scattered through the structs by our firmware designer, instead of
    >being added only at the end. Sigh.)
    >
    hardware guys (and firmware guys are pretty close to hardware guys)
    can be evil.
    Hey, that's me! At least part of the time, so I must be part time evil....

    --
    Ian Collins.
  • Flash Gordon

    #2
    Re: How do I do generic programming in C?

    Ian Collins wrote:
    Nick Keighley wrote:
    >On 13 May, 18:21, "Robbie Hatley"
    ><see.my.signat ...@for.my.emai l.addresswrote:
    >>
    >>Greetings, group. I have a situation at work in which our software
    >>(running on a PC) needs to talk to two different versions of our
    >>firmware (running on circuit boards in boxes hundreds of feet away,
    >>communicati ng via RS232).
    >>>
    >>The two firmware versions (1400 and 1600) are very similar, with 1600 having a few more members in each of several key structs used for
    >>communicati ng and storing data. (Alas, the added members were
    >>scattered through the structs by our firmware designer, instead of
    >>being added only at the end. Sigh.)
    >hardware guys (and firmware guys are pretty close to hardware guys)
    >can be evil.
    >
    Hey, that's me! At least part of the time, so I must be part time evil....
    I was a firmware guy, but I was never close to being a HW guy. Now I'm a
    SW guy. However, BWAHAHAHAAA!!!! !

    I agree that the best solution would have been for the new members to be
    added at the end, but the FW developer might have been told that all of
    the old units would be upgraded so this situation would not arise.
    --
    Flash Gordon

    Comment

    Working...