Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!bacchus.pa.dec.com!shlump.nac.dec.com!tkou02.enet.dec.com!diamond From: diamond@tkou02.enet.dec.com (diamond@tkovoa) Newsgroups: comp.lang.c Subject: Re: qualifications in prototypes (was Re: Problems with IBM RS6000 C compiler) Message-ID: <1900@tkou02.enet.dec.com> Date: 8 Aug 90 02:41:27 GMT References: <476@mtndew.UUCP> <1893@tkou02.enet.dec.com> <386@taumet.com> <17240@haddock.ima.isc.com> <1896@tkou02.enet.dec.com> <17247@haddock.ima.isc.com> Reply-To: diamond@tkou02.enet.dec.com (diamond@tkovoa) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 19 In article <17247@haddock.ima.isc.com> karl@kelp.ima.isc.com (Karl Heuer) writes: [Can you pass an unqualified `char *' to a function whose prototype declares a parameter of type `char const *'?] >Okay, then, let's try 3.3.16.1 Simple Assignment: "Constraints: One of the >following shall hold: ... both operands are pointers to qualified or >unqualified versions of compatible types, and the type pointed to by the left >has all the qualifiers of the type pointed to by the right." Looks like you got it. Thank you, and you win. IBM's prototypes should be changed. (But just like using the real lint, we had to wade through a misleading message before finding the correct one! :-) Mr. Heuer, I'm curious why you considered this discussion inappropriate for comp.std.c. Please advise by e-mail (or posting if you think it appropriate.) -- Norman Diamond, Nihon DEC diamond@tkou02.enet.dec.com This is me speaking. If you want to hear the company speak, you need DECtalk.