IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 19 years ago

#843 closed defect (fixed)

various functions should return bool not a pointer

Reported by: eugene Owned by: Paul Price
Priority: high Milestone:
Component: docs Version: 0.12.99
Severity: normal Keywords:
Cc:

Description

there are various functions which perform some operation and return the results
in a structure of some sort. of these functions, some are required to be passed
in an allocated structure since they use elements of the structure to define the
operation. Some of these functions return the pointer to the structure as well.

These should be changed to just return 'bool'. examples are below:

psVectorStats
psImageStats
psVectorFitPolynomial1D
psVectorClipFitPolynomial1D
(and equivalents)

Change History (1)

comment:1 by Paul Price, 19 years ago

Resolution: fixed
Status: newclosed

The following functions (from the SDRS) unnecessarily returned a pointer that
was passed in:

psBitSetSet
psBitSetClear
psVectorHistogram
psVectorFitPolynomial1D
psVectorFitPolynomial2D
psVectorFitPolynomial3D
psVectorFitPolynomial4D
psVectorChiClipFitPolynomial4D
psImageStats
psImageHistogram
psImageFitPolynomial

They have been changed to return bool, both in the SDRS and the code.

Note: See TracTickets for help on using tickets.