Changeset a9ca7dd for irc.h


Ignore:
Timestamp:
2006-05-23T08:18:24Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
fc630f9
Parents:
da3b536
Message:

Added G_GNUC_PRINTF(...) to definitions of functions that take format
strings so GCC can detect them and complain when things don't look right.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    rda3b536 ra9ca7dd  
    105105
    106106irc_t *irc_new( int fd );
    107 void irc_abort( irc_t *irc, int immed, char *format, ... );
     107void irc_abort( irc_t *irc, int immed, char *format, ... ) G_GNUC_PRINTF( 3, 4 );
    108108void irc_free( irc_t *irc );
    109109
     
    114114
    115115void irc_vawrite( irc_t *irc, char *format, va_list params );
    116 void irc_write( irc_t *irc, char *format, ... );
    117 void irc_write_all( int now, char *format, ... );
    118 void irc_reply( irc_t *irc, int code, char *format, ... );
    119 G_MODULE_EXPORT int irc_usermsg( irc_t *irc, char *format, ... );
     116void irc_write( irc_t *irc, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
     117void irc_write_all( int now, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
     118void irc_reply( irc_t *irc, int code, char *format, ... ) G_GNUC_PRINTF( 3, 4 );
     119G_MODULE_EXPORT int irc_usermsg( irc_t *irc, char *format, ... ) G_GNUC_PRINTF( 2, 3 );
    120120char **irc_tokenize( char *buffer );
    121121
Note: See TracChangeset for help on using the changeset viewer.