﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
690	Add prefixIsType() API for all types	rhl@…	Paul Price	"The PS memory system knows the type of any pointer via the freeFunction in its psMemBlock,
but this information isn't available to the user as the freeFunctions are declare static in the
files that create the type.

I propose that for all types prefixFoo, we add a function 
    bool prefixIsFoo(void *ptr);
that returns true iff ptr is non-NULL and ptr's freeFunction is prefixFoo's free function.  E.g.

static void peakFree(pmPeak *tmp) {}

pmPeak *pmPeakAlloc(...)
{
...
    psMemSetDeallocator(tmp, (psFreeFunc) peakFree);

    return(tmp);
}

bool pmIsPeak(const psPtr ptr)
{
    return psMemGetDeallocator(ptr) == (psFreeFunc)peakFree;
}"	defect	closed	high		IPP SDRS	unspecified	normal	fixed		
