July 17, 2024, 08:52:54 PM


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.


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.