recursive typedefs

William E. Davidsen Jr davidsen at steinmetz.ge.com
Thu May 19 04:42:28 AEST 1988


You get into problems with typedefs when you try to modify them, such as
using unsigned, but you should be able to use them recursively... I hope
dpANS doesn't invalidate something like:
	typedef int *pi;	/* pointer to int		*/
	typedef pi frpi();	/* function returning ptr to int*/
	typedef frpi *pfrpi;	/* ptr to func ret ptr int	*/

This is useful to people who don't instantly think of
	typedef int *(*fprpi)();
as the obvious way to do this.
-- 
	bill davidsen		(wedu at ge-crd.arpa)
  {uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.lang.c mailing list