Ejemplo n.º 1
0
/*======================================================*/
void SW_WTH_SetMemoryRefs( void) {
/* when debugging memory problems, use the bookkeeping
code in myMemory.c
This routine sets the known memory refs in this module
so they can be  checked for leaks, etc.  All refs will
have been cleared by a call to ClearMemoryRefs() before
this, and will be checked via CheckMemoryRefs() after
this, most likely in the main() function.
*/

NoteMemoryRef(runavg_list);

}
Ejemplo n.º 2
0
/*======================================================*/
void SW_F_SetMemoryRefs( void) {
	/* when debugging memory problems, use the bookkeeping
	 code in myMemory.c
	 This routine sets the known memory refs in this module
	 so they can be  checked for leaks, etc.  Includes
	 malloc-ed memory in SOILWAT.  All refs will have been
	 cleared by a call to ClearMemoryRefs() before this, and
	 will be checked via CheckMemoryRefs() after this, most
	 likely in the main() function.
	 */
	SW_FileIndex i;

	for ( i=eFirst; i < eEndFile; i++)
	NoteMemoryRef(InFiles[i]);

}