[SESI logo]

Prisms Development Toolkit Documentation

Side Effects Software Inc. 1997

Custom SOP Reference

The sopClean routine

This routine frees storage allocated during the execution of the SOP. In most cases, it will not change from the code shown here, and can be used as is. If you have allocated any additional storage, or need to execute any code before the SOP completes, put it here.

 
static void
sopClean(SOP *sop)
{
    FreeSopExpr((SOP_EXPR *)sop->special, sopParms);

    if (sop->pdp) 
	FreePolyDetail(sop->pdp);
    sop->pdp = NULL;

    free(sop->special);
    sop->special = NULL;	/* in case default is called */
}

Tookit Overview
Expression Functions | User Functions | Custom SOPs
Prisms Internal Format | Programmer's Reference
Compiling SOPs | Using sopbuild | SOP Routine Reference
Dynamic SOPs | Prisms Types | Macros
Math Routines | Data Routines | Polygon Routines | Winged-edge Routines

Copyright © 1997 Side Effects Software Inc.
477 Richmond Street West, Toronto, Ontario, Canada M5V 3E7