Article View: comp.std.c
Article #306Re: Interpretation needed Re: function prototypes (LONG)
From: Kathy Harris
Date: Fri, 07 Jul 1989 16:22
Date: Fri, 07 Jul 1989 16:22
23 lines
1018 bytes
1018 bytes
I'm still not clear on this. Is it only the "top-level" qualifier that
is to be ignored for comparisons, or all qualifiers. For example, are
the following compatible or not:
int f(const int * p);
int f(int * p);
where the 'const' qualifier applies to the 'int' not to the 'pointer'.
If you do ignore this for comparisons, then it still makes a difference
in the composite type, because it will determine whether the following
generates a diagnostic about passing a pointer to a constant to a plain
pointer.
main() {
const int *q;
f(q);
}
Kathy Harris
Hewlett Packard Colorado Language Lab
hplabs!hpdcdb!kathy
Technical Details
Message-ID:
<12040016@hpfcdc.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!apple!agate!ucbvax!hplabs!hpfcdc!kathyReferences:
<12570014@hpclscu.HP.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!apple!agate!ucbvax!hplabs!hpfcdc!kathy From: kathy@hpfcdc.HP.COM (Kathy Harris) Newsgroups: comp.std.c Subject: Re: Interpretation needed Re: function prototypes (LONG) Message-ID: <12040016@hpfcdc.HP.COM> Date: 7 Jul 89 16:22:01 GMT References: <12570014@hpclscu.HP.COM> Organization: HP Ft. Collins, Co. Lines: 23