This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] support for -fdump-ada-spec
> I'm attaching the new patch file, as well as a diff between previous and
> new version of c-ada-spec.c where I did most of the changes based on your
> review.
Actually we can't support out of the box "complex" chars/strings, so I've
modified the macro handling to do:
case CPP_WSTRING:
case CPP_STRING16:
case CPP_STRING32:
case CPP_UTF8STRING:
case CPP_WCHAR:
case CPP_CHAR16:
case CPP_CHAR32:
case CPP_NAME:
if (!macro->fun_like)
supported = 0;
else
buffer = cpp_spell_token (parse_in, token, buffer, false);
break;
case CPP_STRING:
is_string = 1;
buffer = cpp_spell_token (parse_in, token, buffer, false);
break;
case CPP_CHAR:
is_char = 1;
buffer = cpp_spell_token (parse_in, token, buffer, false);
break;
instead of handling e.g. CPP_WSTRING like CPP_STRING