On Sun, Feb 9, 2014 at 8:31 PM, Prathamesh Kulkarni
<bilbotheelffri...@gmail.com> wrote:
> A trivial fix to print quotes around ) in libcpp/macro.c
> OK for trunk ?
Will not work for if pfile->cb.error callback does not recognize %< and %>
(maybe clients other than c, c++ front-ends ?).
So we cannot include %< and %> in the error message ?
>
> * macro.c (parse_params): print quote around ) in call to cpp_error() in
> case CPP_EOF
>
> Index: libcpp/macro.c
> ===================================================================
> --- libcpp/macro.c    (revision 207627)
> +++ libcpp/macro.c    (working copy)
> @@ -2815,7 +2815,7 @@ parse_params (cpp_reader *pfile, cpp_mac
>        /* Fall through.  */
>
>      case CPP_EOF:
> -      cpp_error (pfile, CPP_DL_ERROR, "missing ')' in macro parameter list");
> +      cpp_error (pfile, CPP_DL_ERROR, "missing %<)%> in macro parameter 
> list");
>        return false;
>      }
>      }

Reply via email to