Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Labels Date: Sat, 15 Aug 2015 19:13:31 -0700 Organization: None to speak of Lines: 17 Message-ID: References: <21f52d2c-4f30-4ae1-9f0a-c1c82527b884@googlegroups.com> <874mk0goix.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="4248"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18K1cA1CWvmzNuP5RVZnAil" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:zuAul1kB76IL9L+F+ani+mPvfAo= sha1:km0KFd9t1s9smoCsUl0IWYn3Kog= Xref: csiph.com comp.lang.c:67507 Bartc writes: [...] > But even knowing a starter symbol is a typedef name, then with 'T(' you > might still be a long way from knowing if this is a simple variable > declaration, or the start of a 1000-line function definition. At block scope, function definitions are not permitted. At file scope, a function definition cannot start with 'T('; it requires at least a type name and an identifier. At least that's the case since C99 -- and on the other hand, some (most?) compilers use a C90-compatible grammar that permits implicit-int definitions and diagnoses them separately. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"