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/imageops/psImageStats.c

    r7766 r8232  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.98 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-06-30 02:20:06 $
     11 *  @version $Revision: 1.99 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-08-08 23:32:23 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3030#include "psImageStats.h"
    3131#include "psAssert.h"
    32 #include "psErrorText.h"
     32
    3333#include "psRegion.h"
    3434#include "psRegionForImage.h"
     
    497497        if (mask == NULL) {
    498498            psError(PS_ERR_BAD_PARAMETER_NULL, true,
    499                     PS_ERRORTEXT_psImage_IMAGE_NULL);
     499                    _("Can not operate on a NULL psImage."));
    500500            return -1;
    501501        }
     
    592592        return -1;
    593593    }/* else if (col0 == col1 && row0 == row1) {
    594                                         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    595                                                 "Invalid psRegion specified.  Region contains only 1 pixel.\n");
    596                                         return -1;
    597                                     }
    598                                 */
     594                                            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     595                                                    "Invalid psRegion specified.  Region contains only 1 pixel.\n");
     596                                            return -1;
     597                                        }
     598                                    */
    599599    x0 = col0;
    600600    x1 = col1;
     
    632632    default:
    633633        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    634                 PS_ERRORTEXT_psImage_IMAGE_MASK_TYPE, type, PS_TYPE_U8);
     634                _("Input psImage mask type, %s, is not the supported mask datatype of %s."), type, PS_TYPE_U8);
    635635        return -1;
    636636    }
Note: See TracChangeset for help on using the changeset viewer.