[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re[2]: [gnugo-devel] sgf/sgfnode.c possible error
From: |
Arend Bayer |
Subject: |
Re: Re[2]: [gnugo-devel] sgf/sgfnode.c possible error |
Date: |
Wed, 22 Sep 2004 15:45:29 +0200 (CEST) |
I am a little confused:
On Thu, 16 Sep 2004, Paul Pogonyshev wrote:
> --- sgfnode.c 12 Feb 2004 19:34:20 -0200 1.27
> +++ sgfnode.c 16 Sep 2004 01:33:28 -0200
> @@ -710,7 +710,7 @@ sgfStartVariant(SGFNode *node)
> while (node->next)
> node = node->next;
> node->next = sgfNewNode();
> - node->next->parent = node;
> + node->next->parent = node->parent;
>
> return node->next;
> }
> @@ -727,9 +727,8 @@ sgfStartVariantFirst(SGFNode *node)
> SGFNode *new_first_child = sgfNewNode();
>
> new_first_child->next = old_first_child;
> - if (old_first_child->parent)
> - new_first_child->parent = old_first_child->parent;
> - old_first_child->parent = new_first_child;
> + new_first_child->parent = old_first_child->parent;
> +
> if (new_first_child->parent)
> new_first_child->parent->child = new_first_child;
Are these functions ever used in GNU Go? I see them only called from
sgftreeStartVariant(First), which in turn are called from nowhere in GNU
Go. Should they just be removed? What is their purpose? (Sorry I am not
familiar with sgf/.)
Arend
- Re: [gnugo-devel] sgf/sgfnode.c possible error, (continued)
- Re: [gnugo-devel] sgf/sgfnode.c possible error, Paul Pogonyshev, 2004/09/15
- Re: [gnugo-devel] sgf/sgfnode.c possible error, Paul Pogonyshev, 2004/09/15
- Message not available
- Re: Re[2]: [gnugo-devel] sgf/sgfnode.c possible error, Paul Pogonyshev, 2004/09/15
- Re: Re[2]: [gnugo-devel] sgf/sgfnode.c possible error, Paul Pogonyshev, 2004/09/15
- Re[4]: [gnugo-devel] sgf/sgfnode.c possible error, Dmitri Koulikov, 2004/09/16
- Re: Re[4]: [gnugo-devel] sgf/sgfnode.c possible error, Paul Pogonyshev, 2004/09/16
- Re[6]: [gnugo-devel] sgf/sgfnode.c possible error, Dmitri Koulikov, 2004/09/17
- Re: Re[6]: [gnugo-devel] sgf/sgfnode.c possible error, Paul Pogonyshev, 2004/09/17
- [gnugo-devel] sgf/sgfnode.c more inproverment, Dmitri Koulikov, 2004/09/19
- Re: [gnugo-devel] sgf/sgfnode.c more inproverment, Paul Pogonyshev, 2004/09/19
- Re: Re[2]: [gnugo-devel] sgf/sgfnode.c possible error,
Arend Bayer <=
- Re: Re[2]: [gnugo-devel] sgf/sgfnode.c possible error, Paul Pogonyshev, 2004/09/22