Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
morkNode.h File Reference
#include "mork.h"

Go to the source code of this file.

Classes

class  morkUsage
class  morkNode

Defines

#define morkUsage_kHeap   'h'
#define morkUsage_kStack   's'
#define morkUsage_kMember   'm'
#define morkUsage_kGlobal   'g'
#define morkUsage_kPool   'p'
#define morkUsage_kNone   'n'
#define morkNode_kMaxRefCount   0x0FFFF /* count sticks if it hits this */
#define morkBase_kNode   /*i*/ 0x4E64 /* ascii 'Nd' */

Functions

void nsIMdbHeap_SlotStrongHeap (nsIMdbHeap *self, morkEnv *ev, nsIMdbHeap **ioSlot)
void nsIMdbFile_SlotStrongFile (nsIMdbFile *self, morkEnv *ev, nsIMdbFile **ioSlot)
void nsIMdbCompare_SlotStrongCompare (nsIMdbCompare *self, morkEnv *ev, nsIMdbCompare **ioSlot)

Define Documentation

#define morkBase_kNode   /*i*/ 0x4E64 /* ascii 'Nd' */

Definition at line 91 of file morkNode.h.

#define morkNode_kMaxRefCount   0x0FFFF /* count sticks if it hits this */

Definition at line 89 of file morkNode.h.

Definition at line 50 of file morkNode.h.

Definition at line 47 of file morkNode.h.

Definition at line 49 of file morkNode.h.

Definition at line 52 of file morkNode.h.

Definition at line 51 of file morkNode.h.

Definition at line 48 of file morkNode.h.


Function Documentation

Definition at line 399 of file morkNode.cpp.

{
  nsIMdbEnv* menv = ev->AsMdbEnv();
  nsIMdbCompare* compare = *ioSlot;
  if ( self != compare )
  {
    if ( compare )
    {
      *ioSlot = 0;
      compare->CutStrongRef(menv);
    }
    if ( self && ev->Good() && (self->AddStrongRef(menv)==0) && ev->Good() )
      *ioSlot = self;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void nsIMdbFile_SlotStrongFile ( nsIMdbFile self,
morkEnv ev,
nsIMdbFile **  ioSlot 
)

Definition at line 423 of file morkNode.cpp.

{
  nsIMdbFile* file = *ioSlot;
  if ( self != file )
  {
    if ( file )
    {
      *ioSlot = 0;
      NS_RELEASE(file);
    }
    if ( self && ev->Good() && (NS_ADDREF(self)>=0) && ev->Good() )
      *ioSlot = self;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void nsIMdbHeap_SlotStrongHeap ( nsIMdbHeap self,
morkEnv ev,
nsIMdbHeap **  ioSlot 
)

Definition at line 444 of file morkNode.cpp.

{
  nsIMdbEnv* menv = ev->AsMdbEnv();
  nsIMdbHeap* heap = *ioSlot;
  if ( self != heap )
  {
    if ( heap )
    {
      *ioSlot = 0;
      heap->HeapCutStrongRef(menv);
    }
    if ( self && ev->Good() && (self->HeapAddStrongRef(menv)==0) && ev->Good() )
      *ioSlot = self;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function: