Re: [fpc-pascal] Forward struct declaration in C

2013-02-22 Thread dhkblaszyk
Thanks Sven and Michael, I will do as you proposed and simply use a pointer for now. Later once the code has been ported I will have a look to refactor the code. Regards, Darius > On 22.02.2013 09:57, dhkblas...@zeelandnet.nl wrote: >> Hi, >> >> I'm porting a piece of software to FPC but I go

Re: [fpc-pascal] Forward struct declaration in C

2013-02-22 Thread Michael Van Canneyt
On Fri, 22 Feb 2013, dhkblas...@zeelandnet.nl wrote: Hi, I'm porting a piece of software to FPC but I got stuck at a forward struct declaration. The situation is as folows. Header 1 declares: struct TaskHandle__; typedef void (*CallBackProcPtr)(struct TaskHandle__ *task); And Header2

Re: [fpc-pascal] Forward struct declaration in C

2013-02-22 Thread Sven Barth
On 22.02.2013 09:57, dhkblas...@zeelandnet.nl wrote: Hi, I'm porting a piece of software to FPC but I got stuck at a forward struct declaration. The situation is as folows. Header 1 declares: struct TaskHandle__; typedef void (*CallBackProcPtr)(struct TaskHandle__ *task); And Header2