April 19, 2024, 12:31:15 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Problem converting from C

Started by sapero, October 05, 2007, 04:13:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sapero

Hello, I have found a problem with a C macro RemoveHeadList from SRVSTRUC.h
#define RemoveHeadList(TYPE,ListHead) \
   (TYPE)(ListHead)->Flink;\   <- here
{\
TYPE FirstEntry;\
FirstEntry =(ListHead)->Flink;\
FirstEntry->Flink->Blink =(TYPE)(ListHead);\
  (ListHead)->Flink = FirstEntry->Flink;\
}

What does the second line, marked as 'here' ? I've ignored it.