[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] tracetool: dtrace: handle in and next reser
From: |
Lee Essen |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] tracetool: dtrace: handle in and next reserved words |
Date: |
Wed, 28 Mar 2012 17:26:34 +0100 |
On 28 Mar 2012, at 15:26, Alon Levy <address@hidden> wrote:
> Signed-off-by: Alon Levy <address@hidden>
> ---
> scripts/tracetool | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/tracetool b/scripts/tracetool
> index 65bd0a1..e7cebf3 100755
> --- a/scripts/tracetool
> +++ b/scripts/tracetool
> @@ -494,9 +494,9 @@ EOF
> i=1
> for arg in $arglist
> do
> - # 'limit' is a reserved keyword
> - if [ "$arg" = "limit" ]; then
> - arg="_limit"
> + # 'limit', 'in' and 'next' are reserved keywords
> + if [ "$arg" = "limit" -o "$arg" = "in" -o "$arg" = "next" ]; then
> + arg="_$arg"
> fi
> cat <<EOF
> $arg = \$arg$i;
> --
> 1.7.9.3
Could we add 'self' to this list?
Lee.