March 28, 2024, 11:23:15 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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.