Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: Need a GURU...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 9 Topic 1044 of 1133
Post > Topic >>

Re: Need a GURU!!! I'm stuck.

by David Thompson <dave.thompson2@[EMAIL PROTECTED] > Mar 17, 2008 at 03:23 PM

On Sat, 8 Mar 2008 12:20:10 -0600 (CST), Barry Schwarz
<schwarzb@[EMAIL PROTECTED]
> wrote:

> On Sun, 17 Feb 2008 12:04:40 -0600 (CST), Chris LaVelle
> <cjlavelle@[EMAIL PROTECTED]
> wrote:

> >typedef struct XXX_ELEMENT_tag
> >{
> >   UINT8   num;
> >   UINT8   param;
> >   UINT16  fre1;
> >   INT16   a1;
> >} ;
> 
> This is a syntax error.  You either 
> 	remove the typedef from in front of the declaration or 
> 	you include the "new name" ELEMENT_T before the final
> semicolon and delete the next declaration.
> 
It's not a syntax error. It's legal to have a declaration with no
declarators as long as the decl-specifiers declare a tag or
enumerator(s). Putting a storage-class, which for this purpose
includes 'typedef', in such a declaration has no effect, and is silly
and confusing, but does not require a diagnostic. Some compilers give
a warning, precisely because this combination is so unlikely to be
wanted, but not an error, because it is legal.

- formerly david.thompson1 || achar(64) || worldnet.att.net
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 9 Posts in Topic:
Need a GURU!!! I'm stuck.
Chris LaVelle <cjlavel  2008-02-17 12:04:40 
Re: Need a GURU!!! I'm stuck.
=?ISO-8859-1?Q?Hans-Bernh  2008-03-08 12:19:59 
Re: Need a GURU!!! I'm stuck.
Keith Thompson <kst-u@  2008-03-17 15:18:58 
Re: Need a GURU!!! I'm stuck.
=?UTF-8?B?SGFucy1CZXJuaGF  2008-03-20 01:09:51 
Re: Need a GURU!!! I'm stuck.
Barry Schwarz <schwarz  2008-03-08 12:20:10 
Re: Need a GURU!!! I'm stuck.
David Thompson <dave.t  2008-03-17 15:23:28 
Re: Need a GURU!!! I'm stuck.
Carl Barron <cbarron41  2008-03-08 12:20:22 
Re: Need a GURU!!! I'm stuck.
Joel Yliluoma <bisqwit  2008-03-08 12:20:33 
Re: Need a GURU!!! I'm stuck.
hnarkaytis@[EMAIL PROTECT  2008-03-08 12:21:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 16:05:35 CDT 2008.