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.

Reply via email to