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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/xml/psXML.c

    r8232 r8627  
    1010*  @author David Robbins, MHPCC
    1111*
    12 *  @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-08-08 23:32:23 $
     12*  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-08-26 04:34:28 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    105105            prop = xmlNewProp(cur_node, (const xmlChar*)"name", (const xmlChar*)item->name);
    106106            prop = xmlNewProp(cur_node, (const xmlChar*)"psType", (const xmlChar*)"STR");
    107             strncpy(content, ((char *)(item->data.V)), MAXSTR);
     107            strncpy(content, item->data.str, MAXSTR);
    108108            prop = xmlNewProp(cur_node, (const xmlChar*)"value", (const xmlChar*)content);
    109109            break;
Note: See TracChangeset for help on using the changeset viewer.