[comp.lang.c] turning typedef use into an inline expression

ryan@arisia.Xerox.COM (Michael Ryan) (12/12/90)

'c' hacks, please answer a question ... and yes, 
1.  I have looked in FAQ.
2.  I have no access to cdecl.

I am trying to figure how to change the 'pointer to function returning int'
type from a typedef into an inline definition.  the usage would be for a 
function that returns a pointer to a function returning an int.

e.g:
/* in file main.c */
typedef int (*pfi)();
extern pfi dave();

/* in file dave.c */
typedef int (*pfi)();
int fred() { return(2); };
pfi dave() { return(fred); };

I would like to know how to change the declarations of 'dave' from uses of the
typedef to inline statements .  I will gladly accept a pointer to cdecl.

I will post a summary reply to E-MAIL responses.

thanks in advance.
-- 
	michael ryan
	ryan@arisia.Xerox.COM
	""