gnupic: the funcyion maybe_evaluate() will return a random value.


Previous by date: 5 Dec 2012 09:04:03 -0000 gputils 0.15.0 released, Borut Ražem
Next by date: 5 Dec 2012 09:04:03 -0000 Re: the funcyion maybe_evaluate() will return a random value., feqin fan
Previous in thread: 5 Dec 2012 09:04:03 -0000 Re: the funcyion maybe_evaluate() will return a random value., feqin fan
Next in thread: 5 Dec 2012 09:04:03 -0000 Re: the funcyion maybe_evaluate() will return a random value., feqin fan

Subject: Re: the funcyion maybe_evaluate() will return a random value.
From: Borut ####@####.####
Date: 5 Dec 2012 09:04:03 -0000
Message-Id: <50BF0DFF.4050909@gmail.com>

Hi feqin,

function maybe_evaluate() is defined as:

gpasmVal maybe_evaluate(struct pnode *p)
{
   gpasmVal r;

   if (p && can_evaluate(p)) {
     r = evaluate(p);
   } else {
     r = 0;
   }

   return r;
}

It returns 0 if can_evaluate() returns 0. Did I miss something???

Borut

On 29. 11. 2012 05:09, feqin fan wrote:
> Hello, developers..
>
> the function maybe_evaluate() which is in the file /gpasm/evaluate.c will
> return a random value, if can_evaluate(p) return 0.
>
> I didn't sure this will be cause a problem, I will check it , later.
>
>


Previous by date: 5 Dec 2012 09:04:03 -0000 gputils 0.15.0 released, Borut Ražem
Next by date: 5 Dec 2012 09:04:03 -0000 Re: the funcyion maybe_evaluate() will return a random value., feqin fan
Previous in thread: 5 Dec 2012 09:04:03 -0000 Re: the funcyion maybe_evaluate() will return a random value., feqin fan
Next in thread: 5 Dec 2012 09:04:03 -0000 Re: the funcyion maybe_evaluate() will return a random value., feqin fan


Powered by ezmlm-browse 0.20.