Changeset 8232 for trunk/psLib/src/math/psUnaryOp.c
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
math/psUnaryOp.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src
- Property svn:ignore
-
old new 10 10 libpslib.la.temp 11 11 config.h.in 12 psErrorText.h13 12 *.bb 14 13 *.bbg
-
- Property svn:ignore
-
trunk/psLib/src/math/psUnaryOp.c
r7766 r8232 30 30 * @author Robert DeSonia, MHPCC 31 31 * 32 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $33 * @date $Date: 2006-0 6-30 02:20:06$32 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2006-08-08 23:32:23 $ 34 34 * 35 35 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 51 51 #include "psLogMsg.h" 52 52 #include "psAssert.h" 53 #include "psErrorText.h" 53 54 54 55 55 /***************************************************************************** … … 78 78 long nOut = ((psVector*)OUT)->n; \ 79 79 if (nIn != nOut) { \ 80 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, nIn, nOut); \80 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d. Number of elements must match."), nIn, nOut); \ 81 81 if (OUT != IN) { \ 82 82 psFree(OUT); \ … … 99 99 long numColsOut = ((psImage*)OUT)->numCols; \ 100 100 if(numRowsIn!=numRowsOut || numColsIn!=numColsOut) { \ 101 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_IMAGE_SIZE_DIFFERS, \101 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %dx%d vs %dx%d."), \ 102 102 numColsIn, numRowsIn, numColsOut, numRowsOut); \ 103 103 if (OUT != IN) { \ … … 157 157 char* strType; \ 158 158 PS_TYPE_NAME(strType, IN->type); \ 159 psError(PS_ERR_BAD_PARAMETER_TYPE, true, PS_ERRORTEXT_psMatrix_TYPE_MISMATCH, strType); \159 psError(PS_ERR_BAD_PARAMETER_TYPE, true, _("Specified data type, %s, is not supported."), strType); \ 160 160 if (OUT != IN) { \ 161 161 psFree(OUT); \ … … 275 275 } \ 276 276 } else { \ 277 psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psMatrix_OPERATION_UNSUPPORTED, OP); \277 psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Specified operation, %s, is not supported."), OP); \ 278 278 if (OUT != IN) { \ 279 279 psFree(OUT); \ … … 309 309 case PS_DIMEN_TRANSV: 310 310 if (((psVector*)in)->n == 0) { 311 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_VECTOR_EMPTY);311 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Input psVector contains no elements. No data to perform operation with.")); 312 312 psUnaryOp_EXIT; 313 313 } … … 315 315 out = psVectorRecycle(out, ((psVector*)in)->n, psTypeIn->type); 316 316 if (out == NULL) { 317 psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psMatrix_OUTPUT_VECTOR_NOT_CREATED);317 psError(PS_ERR_UNKNOWN, false, _("Couldn't create a proper output psVector.")); 318 318 psUnaryOp_EXIT; 319 319 } … … 324 324 case PS_DIMEN_IMAGE: 325 325 if (((psImage* ) in)->numCols == 0 || ((psImage* ) in)->numRows == 0) { 326 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_IMAGE_EMPTY);326 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Input psImage contains no pixels. No data to perform operation with.")); 327 327 psUnaryOp_EXIT; 328 328 } … … 330 330 out = psImageRecycle(out, ((psImage*)in)->numCols, ((psImage*)in)->numRows, psTypeIn->type); 331 331 if (out == NULL) { 332 psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psMatrix_OUTPUT_IMAGE_NOT_CREATED);332 psError(PS_ERR_UNKNOWN, false, _("Couldn't create a proper output psImage.")); 333 333 psUnaryOp_EXIT; 334 334 } … … 340 340 psFree(out); 341 341 } 342 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_DIMEN_INVALID, "in", psTypeIn->dimen);342 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified parameter, %s, has invalid dimensionality, %d."), "in", psTypeIn->dimen); 343 343 psUnaryOp_EXIT; 344 344 }
Note:
See TracChangeset
for help on using the changeset viewer.
