IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2006, 1:32:23 PM (20 years ago)
Author:
jhoblitt
Message:

bug #790 - remove psErrorText.h and inline all error codes. all newly inlined error codes are wrapped with the _() macro from future gettextification

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src

    • Property svn:ignore
      •  

        old new  
        1010libpslib.la.temp
        1111config.h.in
        12 psErrorText.h
        1312*.bb
        1413*.bbg
  • trunk/psLib/src/math/psStats.c

    r7999 r8232  
    1616 * use ->min and ->max (PS_STAT_USE_RANGE)
    1717 *
    18  *  @version $Revision: 1.182 $ $Name: not supported by cvs2svn $
    19  *  @date $Date: 2006-07-28 00:44:05 $
     18 *  @version $Revision: 1.183 $ $Name: not supported by cvs2svn $
     19 *  @date $Date: 2006-08-08 23:32:23 $
    2020 *
    2121 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4949#include "psString.h"
    5050
    51 #include "psErrorText.h"
     51
    5252
    5353/*****************************************************************************/
     
    440440        psError(PS_ERR_UNEXPECTED_NULL,
    441441                false,
    442                 PS_ERRORTEXT_psStats_STATS_SAMPLE_MEDIAN_SORT_PROBLEM);
     442                _("Failed to sort input data."));
    443443        psTrace(__func__, 4, "---- %s(false) end ----\n", __func__);
    444444        psFree(vector);
     
    924924                ((y->data.F64[2] <= yVal) && (yVal <= y->data.F64[0]))) ) {
    925925            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    926                     PS_ERRORTEXT_psStats_YVAL_OUT_OF_RANGE,
     926                    _("Specified yVal, %g, is not within y-range, %g to %g."),
    927927                    (psF64)yVal, y->data.F64[0], y->data.F64[2]);
    928928        }
     
    946946        if (myPoly == NULL) {
    947947            psError(PS_ERR_UNEXPECTED_NULL, false,
    948                     PS_ERRORTEXT_psStats_STATS_FIT_QUADRATIC_POLYNOMIAL_1D_FIT);
     948                    _("Failed to fit a 1-dimensional polynomial to the three specified data points.  Returning NAN."));
    949949            psFree(x);
    950950            psFree(y);
     
    967967        if (isnan(tmpFloat)) {
    968968            psError(PS_ERR_UNEXPECTED_NULL,
    969                     false, PS_ERRORTEXT_psStats_STATS_FIT_QUADRATIC_POLY_MEDIAN);
     969                    false, _("Failed to determine the median of the fitted polynomial.  Returning NAN."));
    970970            psFree(x);
    971971            psFree(y);
     
    20352035                          PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV)) {
    20362036        if (!vectorRobustStats(inF32, errorsF32, maskU8, maskVal, stats)) {
    2037             psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psStats_STATS_FAILED);
     2037            psError(PS_ERR_UNKNOWN, false, _("Failed to calculate the specified statistic."));
    20382038            psFree(stats);
    20392039            psFree(inF32);
Note: See TracChangeset for help on using the changeset viewer.