Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 798 of 2,753    |
|    Hans-Peter Diettrich to Chris Dollin    |
|    Re: Generating a simple hand-coded like     |
|    25 Sep 06 01:13:56    |
      From: DrDiettrich1@aol.com              Chris Dollin wrote:              >>#defined names, and the parser adds all encountered typedef names. This       >>procedure works fine, provided that typedefs always have global scope,       >>as is required in C.       >       >       > Not so far as I'm aware: I couldn't find such a restriction for C90,       > and could find implications in the text that it would be allowed.              C99 states that type declarations are not allowed in C procedure       definitions.              > Experimentally, `gcc -ansi -pedantic` was quite happy with a typedef       > inside `main`.              The standard may differ between C and C++.       What gcc does, that's another story ;-)              DoDi              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca