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

Need explination of these two decloration software lines

What do the following lines do? Generaly not specificaly.

What do the terms mean/and or do? 1) xdata * xdata mean? 2) s_pSIN = (MASTER_2_AFPU*)&s_SIN;

static xdata uchar s_SIN[sizeof(MASTER_2_AFPU)];
static MASTER_2_AFPU xdata * xdata s_pSIN = (MASTER_2_AFPU*)&s_SIN;

Parents
  • This is a piece of contracted software that I suspect that the authors purposely making it obscure what are your thoughts?

    "Don't attribute to malice what can properly be explained with negligence."

    It's not all that obscure - if the author really wants to obscure the code, then he's doing a really poor job at it.

    It looks more like whoever wrote this is single-mindedly following conventions without considering if they make sense in the current context.

Reply
  • This is a piece of contracted software that I suspect that the authors purposely making it obscure what are your thoughts?

    "Don't attribute to malice what can properly be explained with negligence."

    It's not all that obscure - if the author really wants to obscure the code, then he's doing a really poor job at it.

    It looks more like whoever wrote this is single-mindedly following conventions without considering if they make sense in the current context.

Children
No data