October 09, 2024, 04:06:36 PM

News:

IWBasic runs in Windows 11!


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.