This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bridging the new C/C++ grok....() impedance mismatch
- From: Ziemowit Laski <zlaski at apple dot com>
- To: gcc List <gcc at gcc dot gnu dot org>
- Date: Fri, 2 Jul 2004 16:25:56 -0700
- Subject: Bridging the new C/C++ grok....() impedance mismatch
Now that the C++ front-end has been redone to rely on specialized data
structures such
as cp_declarator, cp_type_specifier_seq, etc., the various grok...()
functions (groktypename(),
grokdeclarator(), etc.) accept these new types as parameters. Thing
is, this broke my
ongoing ObjC++ work, where I call grok...() using the traditional
TREE-based parameters that
the C front-end still uses. While I do have an impedance-matching
layer (objcp/objcp-decl.c)
for situations such as these, I have no clue how to construct the
newfangled arguments from
the oldfangled ones. Are there routines that do this?
Thanks,
--Zem