Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: James Kuyper Newsgroups: comp.lang.c,comp.programming.threads Subject: Re: Trivial C11 threads.h wrapper (public domain) Date: Mon, 01 Oct 2012 14:37:27 -0400 Organization: A noiseless patient Spider Lines: 18 Message-ID: <5069E2E7.8000901@verizon.net> References: <50643C6A.6020609@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="d8fef572ea43a1acd556896aa70d63af"; logging-data="18574"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/u0zKVSuZ2M6Dyo40u0XRJ45sXnM2Fynk=" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: Cancel-Lock: sha1:N423xpi4c9860q1uNtlprZGcfVA= Xref: csiph.com comp.lang.c:26931 comp.programming.threads:1152 On 10/01/2012 02:19 PM, Toby Douglass wrote: > In article <50643C6A.6020609@web.de>, Markus.Elfring@web.de says... >> 1. Would you like to provide a "typedef" for each enumeration? > > Enums have a type already True, though it need not be a nameable type - the tag is optional. > ... and can only take a value in their range. That depend upon what you mean by "their range". Every enumerated type has a corresponding compatible integer type. I believe that any value representable in that integer type can also be be stored in the enumerated type. > What's the advantage of a typedef? ... I can't think of any, off-hand, but others may be able to.