IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 23, 2007, 4:06:51 PM (19 years ago)
Author:
Paul Price
Message:

Make psStatsAlloc a macro, to deliver filename and line number information to the memory system, as most other allocators do. This is an ABI-incompatible change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.h

    r11248 r13494  
    88 * @author GLG, MHPCC
    99 *
    10  * @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
    11  * @date $Date: 2007-01-23 22:47:23 $
     10 * @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
     11 * @date $Date: 2007-05-24 02:06:51 $
    1212 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1313 */
     
    9999 *                      value given.
    100100 */
     101#ifdef DOXYGEN
    101102psStats* psStatsAlloc(
    102     psStatsOptions options             ///< Statistics to calculate
     103    psStatsOptions options              ///< Statistics to calculate
    103104);
    104 
     105#else // ifdef DOXYGEN
     106psStats* p_psStatsAlloc(
     107    const char *file,                   ///< File of caller
     108    unsigned int lineno,                ///< Line number of caller
     109    const char *func,                   ///< Function name of caller
     110    psStatsOptions options              ///< Statistics to calculate
     111);
     112#define psStatsAlloc(options) \
     113      p_psStatsAlloc(__FILE__, __LINE__, __func__, options)
     114#endif // ifdef DOXYGEN
    105115
    106116/** Checks the type of a particular pointer.
     
    138148   (none)
    139149 * vectorSampleMedian (also yields SAMPLE_QUARTILE)
    140    (none) 
     150   (none)
    141151 * vectorSampleStdev
    142152   (vectorSampleMean)
     
    149159 * vectorFittedStats
    150160   (vectorRobustStats)
    151  
     161
    152162 * private stats functions called by other private stats functions are automatically called by
    153163 * those functions.  since they set the stats->results flags, they are not called multiple
    154164 * times.
    155  
     165
    156166 * the private stats functions do not test for their corresponding stats flags: it is not
    157167 * necessary to request them if they are called within this function.
    158  
     168
    159169*/
Note: See TracChangeset for help on using the changeset viewer.