May 27, 2019, 01:15:30 am

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
Code Select
#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.