[Top][All Lists]

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

Re: [Bug-ed] Possible bug in GNU Ed

From: Antonio Diaz Diaz
Subject: Re: [Bug-ed] Possible bug in GNU Ed
Date: Wed, 22 Feb 2012 16:50:10 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Dear Mark,

Mark Manning wrote:
In the file buffer.c within the function join_lines() there is an if
statement as follows...

  if(!put_sbuf_line(buf, current_addr_) ||
     !push_undo_atom(UADD, -1, -1))

It is my understanding that in cases like this the order of operations
is indeterminate.

I don't know where did you learn that, but I advice you to learn it again, for example in the GNU C Reference Manual[1].

"The logical conjunction operator || tests if at least one of two expressions it true. If the first expression is true, then the second expression is not evaluated.

     if ((x == 5) || (y == 10))
        printf (``x is 5 or y is 10'');"

Antonio Diaz.

reply via email to

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