Article View: gnu.gcc.bug
Article #1046bug in old function definition/new function prototype
From: sm
Date: Wed, 02 Sep 1992 01:16
Date: Wed, 02 Sep 1992 01:16
16 lines
828 bytes
828 bytes
The following is correct code (according to 2nd edition K&R,pp. 202 & 197):
void foo(unsigned int, unsigned int, unsigned int, unsigned long);
void foo(uchar_error, ushort_error, uint_okay, ulong_okay)
unsigned char uchar_error;
unsigned short ushort_error;
unsigned int uint_okay;
unsigned long ulong_okay;
{
return;
}
However, gcc generates an error message for "uchar_error" and "ushort_error".
Scott MacHaffie
Technical Details
Message-ID:
<9209021516.AA20872@shango.cvedc.prime.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cvedc.prime.com!smShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cvedc.prime.com!sm From: sm@cvedc.prime.com Subject: bug in old function definition/new function prototype Message-ID: <9209021516.AA20872@shango.cvedc.prime.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 2 Sep 1992 01:16:32 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 17