[vlc-devel] [RFC PATCH 0/2] usage of ssize_t in libvlc external API

RĂ©mi Denis-Courmont remi at remlab.net
Fri Jul 22 14:34:45 CEST 2016


Le 2016-07-22 14:26, Thomas Guillem a écrit :
> ssize_t is in POSIX but not in the C-standard.

The C standard has %zd though.

> Should we do something about it ?

The strictly ISO standard convention is negative values cast to size_t, 
e.g. mbstrowcs, wcstombs and mbrtoc16. Seems worse if you ask me.

> Thomas Guillem (2):
>   libvlc: media: remove usage of ssize_t
>   libvlc: media_discoverer: remove usage of ssize_t
>
>  include/vlc/libvlc_media.h            | 10 +++++-----
>  include/vlc/libvlc_media_discoverer.h |  4 ++--
>  lib/media_discoverer.c                |  8 ++++----
>  modules/access/imem-access.c          | 13 ++++++-------
>  4 files changed, 17 insertions(+), 18 deletions(-)

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list