This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Advice on augmenting a common function interface
- To: gcc at gcc dot gnu dot org
- Subject: Advice on augmenting a common function interface
- From: Greg McGary <greg at mcgary dot org>
- Date: Mon, 28 Aug 2000 00:48:25 -0700
I will be expanding the interface to build_pointer_type to accommodate
bounded pointer types, but retaining the old interface for compatibility.
I can define the old interface in terms of the new one. A macro:
#define build_pointer_type(TYPE) build_pointer_type_2 (POINTER_TYPE, (TYPE))
or a one-liner function:
tree
build_pointer_type (type)
tree type;
{
return build_pointer_type_2 (POINTER_TYPE, type);
}
Macros have lower overhead, but hinder debugging. For my part,
debugging convenience is more important.
Is there a preferred method?
Greg