Logo Search packages:      
Sourcecode: pymol version File versions  Download package

Deferred.c

#include "Deferred.h"

#include "MemoryDebug.h"

void DeferredInit(PyMOLGlobals *G, CDeferred *I)
{
  if(I) {
    I->G = G;
  }
}

void DeferredFree(CDeferred *I)
{
  FreeP(I);
}

CDeferred *DeferredExec(CDeferred *I)
{
  if(I)
  while(I) {
    CDeferred *next = I->next;
    if(I->fn) {
      if(!I->fn(I)) {
        break;
      }
    }
    FreeP(I);
    I = next;
  }
  return I;
}

Generated by  Doxygen 1.6.0   Back to index