🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5974

Re: Multiple typedefs

#5974
From: Rex Jaeschke
Date: Sat, 29 Apr 1989 18:23
18 lines
1162 bytes
> From: gwyn@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
----------------------------------------------------------------------------
Technical Details
Message-ID: <16.UUL1.3#5077@aussie.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!aussie!rex
References: <10167@smoke.BRL.MIL>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!aussie!rex
From: rex@aussie.UUCP (Rex Jaeschke)
Newsgroups: comp.std.c
Subject: Re: Multiple typedefs
Message-ID: <16.UUL1.3#5077@aussie.UUCP>
Date: 29 Apr 89 18:23:26 GMT
References: <10167@smoke.BRL.MIL>
Organization: Journal of C Language Translation
Lines: 18