IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 25, 2006, 6:34:28 PM (20 years ago)
Author:
jhoblitt
Message:

add gcc format attributes to:

psAbort()
psErrorStackPrint()
p_psError()
p_psWarning()
psLogMsg()
p_psTrace()

add PS_ASSERT_LONG_LARGER_THAN_OR_EQUAL
add PS_ASSERT_S64_WITHIN_RANGE
fix PS_ASSERT_LONG_WITHIN_RANGE
fix a wide range of format related issues:

  • missing format field specifiers
  • missing format args
  • incorrect format field specifiers
  • constants declared with the wrong type (float vs. int)
  • PS_ASSERT* for the wrong type
  • attemps to print structs with *printf()
  • unportable format specifiers, eg. long vs. long long
Location:
trunk/psLib/src/mathtypes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r8232 r8627  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-08-08 23:32:23 $
     11 *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-08-26 04:34:28 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    203203
    204204    default:
    205         psError (PS_ERR_BAD_PARAMETER_TYPE, true, "datatype %d not defined in psImageInit\n", image->type);
     205        psError(PS_ERR_BAD_PARAMETER_TYPE, true, "datatype not defined in psImageInit\n");
    206206    }
    207207    return (false);
  • trunk/psLib/src/mathtypes/psVector.c

    r8374 r8627  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2006-08-16 03:28:13 $
     11*  @version $Revision: 1.82 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2006-08-26 04:34:28 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    301301                PS_TYPE_NAME(typeStr,type); \
    302302                psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
    303                         _("Input psVector is an unsupported type (0x%x)."), \
     303                        _("Input psVector is an unsupported type (0x%s)."), \
    304304                        typeStr); \
    305305                psFree(output); \
     
    326326            PS_TYPE_NAME(typeStr,type);
    327327            psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    328                     _("Input psVector is an unsupported type (0x%x)."),
     328                    _("Input psVector is an unsupported type (0x%s)."),
    329329                    typeStr);
    330330            psFree(output);
     
    816816        return (true);
    817817    default:
    818         psError (PS_ERR_BAD_PARAMETER_TYPE, true, "datatype %d not defined in psImageInit\n", vector->type);
     818        psError (PS_ERR_BAD_PARAMETER_TYPE, true, "datatype not defined in psImageInit\n");
    819819        return (false);
    820820    }
  • trunk/psLib/src/mathtypes/psVector.h

    r8387 r8627  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-08-16 20:36:04 $
     13 *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-08-26 04:34:28 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    318318if ((VEC1)->n != (VEC2)->n) { \
    319319    psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
    320             "psVector %s has size %d, psVector %s has size %d.", \
     320            "psVector %s has size %ld, psVector %s has size %ld.", \
    321321            #VEC1, (VEC1)->n, #VEC2, (VEC2)->n); \
    322322    return(RVAL); \
     
    326326if ((VEC)->n != (SIZE)) { \
    327327    psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
    328             "psVector %s has size %d, should be %d.", \
     328            "psVector %s has size %ld, should be %ld.", \
    329329            #VEC, (VEC)->n, (SIZE)); \
    330330    return(RVAL); \
Note: See TracChangeset for help on using the changeset viewer.