ToolChain/bin/targets/m68k-amigaos/ndk/Tutorials/ARexx/Host/Host.c
VOID
DeleteRexxParseData(struct RexxParseData * Data)
{
		/* Did we get a valid data pointer? */

	if(Data != NULL)
	{
			/* Clean up the parser data. */

		if(Data->ReadArgs != NULL)
			FreeDosObject(DOS_RDARGS,Data->ReadArgs);

			/* Free the memory. */

		FreeVec(Data);
	}
}
/****** Host/DeleteRexxParseData *********************************************
*
*   NAME
*       DeleteRexxParseData -- Free data allocated by CreateRexxParseData.
*
*   SYNOPSIS
*       DeleteRexxParseData(Data)
*
*       VOID DeleteRexxParseData(struct RexxParseData *);
*
*   FUNCTION
*       Before your program exits it should call this routine to release
*       all the memory allocated for command parsing. Otherwise it will lose
*       memory that can never be reclaimed.
*
*   INPUTS
*       Data - Pointer to RexxParseData structure created by
*           CreateRexxParseData. May be NULL in which case this routine
*           does nothing.
*
*   RESULT
*       None
*
*   SEE ALSO
*       dos.library/FreeDosObject
*
******************************************************************************
*
*/






FUNCTION
Before your program exits it should call this routine to release
all the memory allocated for command parsing. Otherwise it will lose
memory that can never be reclaimed.

INPUTS
Data - Pointer to RexxParseData structure created by
CreateRexxParseData. May be NULL in which case this routine
does nothing.

RESULT
None


FUNCTION Before your program exits it should call this routine to release all the memory allocated for command parsing . Otherwise it will lose memory that can never be reclaimed . INPUTS Data - Pointer to RexxParseData structure created by CreateRexxParseData . May be NULL in which case this routine does nothing . RESULT None
VOID
DeleteRexxParseData(struct RexxParseData * Data)
{
	if(Data != NULL)
	{
		if(Data->ReadArgs != NULL)
			FreeDosObject(DOS_RDARGS,Data->ReadArgs);
		FreeVec(Data);
	}
}
VOID DeleteRexxParseData ( struct RexxParseData * Data ) { if ( Data != NULL ) { if ( Data -> ReadArgs != NULL ) FreeDosObject ( DOS_RDARGS , Data -> ReadArgs ) ; FreeVec ( Data ) ; } }
Host/DeleteRexxParseData
NAME
DeleteRexxParseData -- Free data allocated by CreateRexxParseData.
Host / DeleteRexxParseData NAME DeleteRexxParseData -- Free data allocated by CreateRexxParseData .
/* Did we get a valid data pointer? */ /* Clean up the parser data. */ /* Free the memory. */