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/db/psDB.h

    r12128 r14452  
    77 * @author Joshua Hoblitt
    88 *
    9  * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    10  * @date $Date: 2007-03-01 03:57:08 $
     9 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     10 * @date $Date: 2007-08-09 01:40:07 $
    1111 *
    1212 * Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    4545    const char *dbname,                ///< Database namespace
    4646    unsigned int port                  ///< Database port number
    47 );
     47) PS_ATTR_MALLOC;
    4848
    4949/** Opens a new database connection
     
    115115 * @return bool:    true on success
    116116 */
    117 #ifdef __GNUC__
    118117bool p_psDBRunQuery(
    119118    psDB *dbh,                         ///< Database handle
    120119    const char *format,                ///< SQL string to execute
    121120    ...                                ///< Arguments for name formatting and metadata item data.
    122 ) __attribute__((format(printf, 2, 3)));
    123 
    124 #else // __GNUC__
    125 bool p_psDBRunQuery(
    126     psDB *dbh,                         ///< Database handle
    127     const char *format,                ///< SQL string to execute
    128     ...                                ///< Arguments for name formatting and metadata item data.
    129 );
    130 #endif // __GNUC__
     121) PS_ATTR_FORMAT(printf, 2, 3);
    131122
    132123/** Executes a SQL query as a prepared statement
     
    138129 * @return long:    the number of database rows affected
    139130 */
    140 #ifdef __GNUC__
    141131long p_psDBRunQueryPrepared(
    142132    psDB *dbh,                          ///< Database handle
     
    144134    const char *format,                 ///< SQL string to execute
    145135    ...
    146 ) __attribute__((format(printf, 3, 4)));
    147 #else // __GNUC__
    148 long p_psDBRunQueryPrepared(
    149     psDB *dbh,                          ///< Database handle
    150     const psArray *rowSet,              ///< row data as psArray of psMetadata
    151     const char *format,                 ///< SQL string to execute
    152     ...
    153 );
    154 #endif // __GNUC__
     136) PS_ATTR_FORMAT(printf, 3, 4);
    155137
    156138/** Fetches the result of a SQL query
Note: See TracChangeset for help on using the changeset viewer.