Obtaining type equivilance in C front end
Brendon Costa
bcosta@avdat.com.au
Thu Nov 9 22:32:00 GMT 2006
>The function you want is comptypes.
>
>
Thanks. That is working well.
> Hi Brendon,
>
> Wouldn't the C++ one (mostly) be a superset of the C?
>
Types are reasonably different between the C and C++ front ends though you do have the common ones because as you said, C++ is a superset of C. The C++ front end has a similar comptypes function which is called by same_type_p, however it is not the same as the C one. Rather than trying to write my own based on the C++ one, I was sure there would already exist a function to do it somewhere in the C front end...
Thanks for the help.
Brendon.
More information about the Gcc
mailing list