2007-06-05 12:10:51 +00:00
|
|
|
/**********************************************/
|
|
|
|
/* Routines de gestion de la memoire */
|
|
|
|
/**********************************************/
|
|
|
|
|
|
|
|
/* Fichier memoire.cpp */
|
|
|
|
|
|
|
|
#include "fctsys.h"
|
|
|
|
#include "wxstruct.h"
|
|
|
|
#include "common.h"
|
|
|
|
#include "cvpcb.h"
|
|
|
|
|
|
|
|
|
|
|
|
/********************************/
|
2007-05-06 16:03:28 +00:00
|
|
|
void FreeMemoryModules(void)
|
2007-06-05 12:10:51 +00:00
|
|
|
/********************************/
|
|
|
|
|
|
|
|
/* Routine de liberation memoire de la liste des modules
|
|
|
|
- remet a NULL g_BaseListePkg
|
|
|
|
- remet a 0 nblib;
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
STOREMOD * Module, * NextMod;
|
|
|
|
|
|
|
|
if( g_BaseListePkg == NULL) return;
|
|
|
|
|
|
|
|
for ( Module = g_BaseListePkg; Module != NULL; Module = NextMod)
|
|
|
|
{
|
|
|
|
NextMod = Module->Pnext;
|
|
|
|
delete Module;
|
|
|
|
}
|
|
|
|
|
|
|
|
nblib = 0;
|
|
|
|
g_BaseListePkg = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************/
|
2007-05-06 16:03:28 +00:00
|
|
|
void FreeMemoryComponants(void)
|
2007-06-05 12:10:51 +00:00
|
|
|
/***********************************/
|
|
|
|
|
|
|
|
/* Routine de liberation memoire de la liste des composants
|
|
|
|
- remet a NULL BaseListeMod
|
|
|
|
- remet a 0 nbcomp
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
STORECMP * Cmp, * NextCmp;
|
|
|
|
|
|
|
|
if( g_BaseListeCmp == NULL ) return;
|
|
|
|
|
|
|
|
for( Cmp = g_BaseListeCmp; Cmp != NULL; Cmp = NextCmp )
|
|
|
|
{
|
|
|
|
NextCmp = Cmp->Pnext;
|
|
|
|
delete Cmp;
|
|
|
|
}
|
|
|
|
|
|
|
|
nbcomp = 0;
|
|
|
|
g_BaseListeCmp = NULL;
|
|
|
|
}
|
|
|
|
|