In article <199901280753.xaa98...@apollo.backplane.com>,
Matthew Dillon  <dil...@apollo.backplane.com> wrote:
> 
>     Unfortunately, GCC isn't smart enough to match the function type
>     to the correct structure - it always stuffs it into the first structure.

Don't blame GCC.  The C standard requires it to behave the way it
does.

Anyway, GCC actually does have an extension that addresses this
problem.  See "Labeled Elements in Initializers" in the info pages.
Note, this extension should NOT be used, in my opinion.

John
-- 
  John Polstra                                               j...@polstra.com
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Nobody ever went broke underestimating the taste of the American public."
                                                            -- H. L. Mencken

To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to