pike.git / src / cyclic.c

version» Context lines:

pike.git/src/cyclic.c:71:    c->ret = (void *)(ptrdiff_t)1;    c->a = a;    c->b = b;    c->id = id;    c->th = th;       h = cyclic_hash_func(c);       for(p=cyclic_hash[h];p;p=p->next)    { -  if(a == p->a && b==p->b && id==p->id) +  if(a == p->a && b==p->b && id==p->id && th==p->th)    {   #ifdef CYCLIC_DEBUG    fprintf (stderr, "%s: BEGIN_CYCLIC a=%p b=%p: found cycle\n", id, a, b);   #endif -  ret = p->ret; +  c->ret = ret = p->ret;    break;    }    }       c->next = cyclic_hash[h];    cyclic_hash[h] = c;    SET_ONERROR(c->onerr, low_unlink_cyclic, c);   #ifdef CYCLIC_DEBUG    if (!ret) fprintf (stderr, "%s: BEGIN_CYCLIC a=%p b=%p: no cycle\n", id, a, b);   #endif    return ret;   }