This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Merge C++ conversion into trunk (3/6 - gengtype C++ support)


On 12-08-14 09:19 , Diego Novillo wrote:


+static const char *
+filter_type_name (const char *type_name)
+{

Maybe this function should return const-less char *? The casts to cast the const away for freeing it look a bit awkward.

Done.

I was too quick. The problem here is that we sometimes return TYPE_NAME, which must be 'const char *'. So, the ugliness is unavoidable.



Diego.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]