bug-vc-dwim
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-vc-dwim] vc-chlog vs two-word function name like "operator dele


From: Ralf Wildenhues
Subject: Re: [Bug-vc-dwim] vc-chlog vs two-word function name like "operator delete"
Date: Mon, 7 Mar 2011 20:22:09 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hi Jim,

* Jim Meyering wrote on Mon, Mar 07, 2011 at 02:21:40PM CET:
> Subject: [PATCH] vc-chlog: handle two-word function names like "operator 
> delete"
> 
> With exuberant ctags, a file in gcc would provoke diagnostics like this:
>   vc-chlog: line 425: test: delete: integer expression expected
> * vc-chlog.in (func_taglist): Don't let a function name like "operator
> delete" provoke shell syntax errors.

OK thanks.

> --- a/vc-chlog.in
> +++ b/vc-chlog.in
> @@ -307,7 +307,9 @@ func_taglist ()
>         print $3, $1;
>       }'
>      else
> -      $AWK '{ print $2, $1; }'
> +      # Handle output like this:
> +      # operator delete   32 libstdc++-v3/libsupc++/del_opnt.cc operator 
> delete
> +      $AWK '{if ($1 == "operator") print $3, $1, $2; else print $2, $1; }'

If you could put each awk statement on a line of its own, even better,
for debugging purposes.

Thanks,
Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]