Changeset 138965 for trunk/base


Ignore:
Timestamp:
Jul 25, 2015, 11:13:18 AM (5 years ago)
Author:
raimue@…
Message:

pextlib: replace printlike with attribute for compilation on other platforms

Location:
trunk/base/src/pextlib1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/pextlib1.0/Pextlib.c

    r138940 r138965  
    106106#endif
    107107
    108 __printflike(3, 0)
     108__attribute__((format(printf, 3, 0)))
    109109static void ui_message(Tcl_Interp *interp, const char *severity, const char *format, va_list va) {
    110110    char tclcmd[32];
     
    126126}
    127127
    128 __printflike(2, 3)
     128__attribute__((format(printf, 2, 3)))
    129129void ui_error(Tcl_Interp *interp, const char *format, ...) {
    130130    va_list va;
     
    134134}
    135135
    136 __printflike(2, 3)
     136__attribute__((format(printf, 2, 3)))
    137137void ui_warn(Tcl_Interp *interp, const char *format, ...) {
    138138    va_list va;
     
    143143}
    144144
    145 __printflike(2, 3)
     145__attribute__((format(printf, 2, 3)))
    146146void ui_msg(Tcl_Interp *interp, const char *format, ...) {
    147147    va_list va;
     
    151151}
    152152
    153 __printflike(2, 3)
     153__attribute__((format(printf, 2, 3)))
    154154void ui_notice(Tcl_Interp *interp, const char *format, ...) {
    155155    va_list va;
     
    160160}
    161161
    162 __printflike(2, 3)
     162__attribute__((format(printf, 2, 3)))
    163163void ui_info(Tcl_Interp *interp, const char *format, ...) {
    164164    va_list va;
     
    169169}
    170170
    171 __printflike(2, 3)
     171__attribute__((format(printf, 2, 3)))
    172172void ui_debug(Tcl_Interp *interp, const char *format, ...) {
    173173    va_list va;
  • trunk/base/src/pextlib1.0/Pextlib.h

    r138939 r138965  
    3131 */
    3232
    33 void ui_error(Tcl_Interp *interp, const char *format, ...) __printflike(2, 3);
    34 void ui_warn(Tcl_Interp *interp, const char *format, ...) __printflike(2, 3);
    35 void ui_msg(Tcl_Interp *interp, const char *format, ...) __printflike(2, 3);
    36 void ui_notice(Tcl_Interp *interp, const char *format, ...) __printflike(2, 3);
    37 void ui_info(Tcl_Interp *interp, const char *format, ...) __printflike(2, 3);
    38 void ui_debug(Tcl_Interp *interp, const char *format, ...) __printflike(2, 3);
     33void ui_error(Tcl_Interp *interp, const char *format, ...) __attribute__((format(printf, 2, 3)));
     34void ui_warn(Tcl_Interp *interp, const char *format, ...) __attribute__((format(printf, 2, 3)));
     35void ui_msg(Tcl_Interp *interp, const char *format, ...) __attribute__((format(printf, 2, 3)));
     36void ui_notice(Tcl_Interp *interp, const char *format, ...) __attribute__((format(printf, 2, 3)));
     37void ui_info(Tcl_Interp *interp, const char *format, ...) __attribute__((format(printf, 2, 3)));
     38void ui_debug(Tcl_Interp *interp, const char *format, ...) __attribute__((format(printf, 2, 3)));
Note: See TracChangeset for help on using the changeset viewer.