turning typedef use into an inline expression

Michael Ryan ryan at arisia.Xerox.COM
Wed Dec 12 13:18:08 AEST 1990


'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 at arisia.Xerox.COM
	""



More information about the Comp.lang.c mailing list