pike.git / src / cyclic.c

version» Context lines:

pike.git/src/cyclic.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: cyclic.c,v 1.13 2004/09/18 20:50:48 nilsson Exp $ + || $Id: cyclic.c,v 1.14 2010/06/01 09:43:19 grubba Exp $   */      #include "global.h"   #include "cyclic.h"      #define CYCLIC_HASH_SIZE 4711      static CYCLIC *cyclic_hash[CYCLIC_HASH_SIZE];      static void low_unlink_cyclic(CYCLIC *c)
pike.git/src/cyclic.c:33: Inside #if defined(CYCLIC_DEBUG)
   *p=c->next;   #ifdef CYCLIC_DEBUG    fprintf (stderr, "%s: END_CYCLIC a=%p b=%p: no cycle\n", c->id, c->a, c->b);   #endif    return;    }    }    Pike_fatal("Unlink cyclic on lost cyclic struct.\n");   }    - void unlink_cyclic(CYCLIC *c) + PMOD_EXPORT void unlink_cyclic(CYCLIC *c)   {    UNSET_ONERROR(c->onerr);    low_unlink_cyclic(c);   }    - void *begin_cyclic(CYCLIC *c, + PMOD_EXPORT void *begin_cyclic(CYCLIC *c,    char *id,    void *th,    void *a,    void *b)   {    size_t h;    void *ret=0;    CYCLIC *p;       h=PTR_TO_INT(id);