Changeset 14452 for trunk/psLib/src/sys/psString.h
- Timestamp:
- Aug 8, 2007, 3:40:08 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psString.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psString.h
r12885 r14452 11 11 * @author Joshua Hoblitt, University of Hawaii 12 12 * 13 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2007-0 4-18 19:37:08$13 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-08-09 01:40:07 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 25 25 #include <sys/types.h> 26 26 #include <stdarg.h> 27 27 28 #include "psType.h" 28 29 #include "psList.h" … … 32 33 33 34 /** This macro returns a (static buffer containing) "file:line" */ 35 const char *p_psFileLine(const char *file, int line) 34 36 #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)) 38 38 #endif // ifdef __GNUC__ 39 ; 39 40 #define PS_FILE_LINE p_psFileLine(__FILE__,__LINE__) 40 41 … … 54 55 const char *func, ///< Function name of caller 55 56 size_t nChar ///< Size of psString to allocate. 56 ) ;57 ) PS_ATTR_MALLOC; 57 58 #define psStringAlloc(nChar) \ 58 59 p_psStringAlloc(__FILE__, __LINE__, __func__, nChar) … … 147 148 const char *format, ///< format to append 148 149 ... ///< 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); 154 151 #define psStringAppend(dest, ...) \ 155 152 p_psStringAppend(__FILE__, __LINE__, __func__, dest, __VA_ARGS__) … … 205 202 const char *format, ///< format to append 206 203 ... ///< 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); 212 205 #define psStringPrepend(dest, ...) \ 213 206 p_psStringPrepend(__FILE__, __LINE__, __func__, dest, __VA_ARGS__)
Note:
See TracChangeset
for help on using the changeset viewer.
