Topic: FUNC_PTR problem

Hi, I'm going through a big project and I need to modify it but I'm having trouble getting it compiled. I know it is done in Raisonance Ride-environment with 8051 device. Please see the type of line which always gives syntax error:

typedef Void (FUNC_PTR * psysfunctimer_t) (UInt16 ms);

There are similar typedef -lines as this in many places in the code and they shouldn't be a mistake as the entire project comes from an existing working product microcontroller code. I'm getting a simple error like this:

*** ERROR C162 IN LINE 427 OF C:\.....tx.h : Syntax error near '*'

So obviously there is something wrong with that but I cant figure out what.... Does anyone know ?

Re: FUNC_PTR problem

Hi,

As we do not have the full code it is difficult to help.
Would the uppercase "Void" be the problem? Just try to replace it by "void" to see if it is ok.

If not, please post a full C file that shows the problem (no #includes please).

Regards,
Bruno

Bruno Richard, PhD.
RAISONANCE - 17, avenue Jean Kuntzmann - F-38330 Montbonnot St Martin - FRANCE
There are 10 types of people in the world: Those who understand binary, and those who don't.