Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

sRefSetList.c File Reference

#include "lclintMacros.nf"
#include "basic.h"

Go to the source code of this file.

Functions

sRefSetList sRefSetList_add (sRefSetList s, sRefSet el)
void sRefSetList_clear (sRefSetList s)
void sRefSetList_free (sRefSetList s)


Function Documentation

sRefSetList sRefSetList_add ( sRefSetList s,
sRefSet el )
 

Definition at line 67 of file sRefSetList.c.

Referenced by context_recordFileModifies().

00068 {
00069   if (sRefSetList_isUndefined (s))
00070     {
00071       s = sRefSetList_newEmpty ();
00072     }
00073 
00074   if (s->nspace <= 0)
00075     {
00076       sRefSetList_grow (s);
00077     }
00078   
00079   s->nspace--;
00080   s->elements[s->nelements] = el;
00081   s->nelements++;
00082 
00083   return s;
00084 }

void sRefSetList_clear ( sRefSetList s )
 

Definition at line 87 of file sRefSetList.c.

Referenced by context_exitFile().

00088 {
00089   if (sRefSetList_isDefined (s))
00090     {
00091       s->nspace += s->nelements;
00092       s->nelements = 0;
00093     }
00094 }

void sRefSetList_free ( sRefSetList s )
 

Definition at line 97 of file sRefSetList.c.

Referenced by context_destroyMod().

00098 {
00099   if (sRefSetList_isDefined (s))
00100     {
00101       sfree (s->elements);
00102       sfree (s);
00103     }
00104 }


Generated at Fri Nov 3 18:58:13 2000 for LCLint by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000