Changeset 5109:4f9fc788fe91 in roaraudio for include/libroar/vio_string.h


Ignore:
Timestamp:
07/28/11 16:32:34 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Started to use compiler attributes (Also see: #130)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio_string.h

    r4708 r5109  
    4040 
    4141// some alias functions: 
    42 #define roar_vio_puts(vio,s) roar_vio_write((vio), (s), strlen((s))) 
     42#define roar_vio_puts(vio,s) roar_vio_write((vio), (s), roar_mm_strlen((s))) 
    4343//#define roar_vio_putc(vio,c) roar_vio_write((vio), &(c), 1) 
    44 int     roar_vio_putc    (struct roar_vio_calls * vio, char c); 
    45 int     roar_vio_getc    (struct roar_vio_calls * vio); 
    46 char *  roar_vio_fgets   (struct roar_vio_calls * vio, char * s, size_t size); 
     44int     roar_vio_putc    (struct roar_vio_calls * vio, char c) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     45int     roar_vio_getc    (struct roar_vio_calls * vio) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     46char *  roar_vio_fgets   (struct roar_vio_calls * vio, char * s, size_t size) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
    4747 
    48 int     roar_vio_printf  (struct roar_vio_calls * vio, const char *format, ...); 
     48int     roar_vio_printf  (struct roar_vio_calls * vio, const char *format, ...) _LIBROAR_ATTR_NONNULL(1, 2); 
    4949 
    5050#endif 
Note: See TracChangeset for help on using the changeset viewer.