IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2007, 3:40:08 PM (19 years ago)
Author:
jhoblitt
Message:

gcc attribute cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psString.h

    r12885 r14452  
    1111 * @author Joshua Hoblitt, University of Hawaii
    1212 *
    13  * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
    14  * @date $Date: 2007-04-18 19:37:08 $
     13 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
     14 * @date $Date: 2007-08-09 01:40:07 $
    1515 *
    1616 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2525#include <sys/types.h>
    2626#include <stdarg.h>
     27
    2728#include "psType.h"
    2829#include "psList.h"
     
    3233
    3334/** This macro returns a (static buffer containing) "file:line" */
     35const char *p_psFileLine(const char *file, int line)
    3436#ifdef __GNUC__
    35 const char *p_psFileLine(const char *file, int line) __attribute__((deprecated));
    36 #else // ifdef __GNUC__
    37 const char *p_psFileLine(const char *file, int line);
     37__attribute__((deprecated))
    3838#endif // ifdef __GNUC__
     39;
    3940#define PS_FILE_LINE p_psFileLine(__FILE__,__LINE__)
    4041
     
    5455    const char *func,                   ///< Function name of caller
    5556    size_t nChar                        ///< Size of psString to allocate.
    56 );
     57) PS_ATTR_MALLOC;
    5758#define psStringAlloc(nChar) \
    5859      p_psStringAlloc(__FILE__, __LINE__, __func__, nChar)
     
    147148    const char *format,                 ///< format to append
    148149    ...                                 ///< format arguments
    149 #ifdef __GNUC__
    150 ) __attribute__((format(printf, 5, 6)));
    151 #else // ifdef __GNUC__
    152 );
    153 #endif // ifdef __GNUC__
     150) PS_ATTR_FORMAT(printf, 5, 6);
    154151#define psStringAppend(dest, ...) \
    155152      p_psStringAppend(__FILE__, __LINE__, __func__, dest, __VA_ARGS__)
     
    205202    const char *format,                 ///< format to append
    206203    ...                                 ///< format arguments
    207 #ifdef __GNUC__
    208 ) __attribute__((format(printf, 5, 6)));
    209 # else // ifdef __GNUC__
    210 );
    211 #endif // ifdef __GNUC__
     204) PS_ATTR_FORMAT(printf, 5, 6);
    212205#define psStringPrepend(dest, ...) \
    213206      p_psStringPrepend(__FILE__, __LINE__, __func__, dest, __VA_ARGS__)
Note: See TracChangeset for help on using the changeset viewer.