Multiple typedefs

Rex Jaeschke rex at aussie.UUCP
Sun Apr 30 04:23:26 AEST 1989


> From: gwyn at smoke.BRL.MIL (Doug Gwyn)
> The conventional way to guard against this is:
> 	#ifndef _FOO_T_DEFINED
> 	#define	_FOO_T_DEFINED
> 	typedef unsigned int foo_t;
> 	#endif

Watch out though 'cos this is the solution for implementers. If you 
are Joe Shmoe programmer, you should avoid the leading underscores 
since implementers are permitted to use those names in their headers.

Rex

----------------------------------------------------------------------------
Rex Jaeschke     | C Users Journal     |  Journal of C Language Translation
(703) 860-0091   | DEC PROFESSIONAL    |1810 Michael Faraday Drive, Suite 101
uunet!aussie!rex | Programmers Journal |     Reston, Virginia 22090, USA
----------------------------------------------------------------------------



More information about the Comp.std.c mailing list