This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

two indentifiers in the same line, no operators

What is this line and what does it do. The first part is a previous enumeration, the second part is the first occurrence in the module.

static enum DEFROST_STATE PreviousState;

Parents Reply Children
  • Here is more of the code.

    First this.

    enum DEFROST_STATE
    {
    NO_DEFROST_STATE,
    D_WAITING_FOR_CART,
    WAITING_FOR_DEFROST_INTERVAL,
    DEFROSTING,
    DEFROST_SUSPENDED
    };

    Then inside a function this.


    static enum DEFROST_STATE PreviousState;

    Again, this is the fist occurrence of PreviousState in the code. How does the second relate to the first?