[Spice-devel] [usbredir v2 PATCH] usbredirfilter: Win32: implement strtok_r to be used by windows (win_strtok_r)

Christophe Fergeau cfergeau at redhat.com
Wed May 30 03:40:52 PDT 2012


On Mon, May 28, 2012 at 11:04:54AM +0200, Hans de Goede wrote:
> Hi,
> 
> On 05/24/2012 04:40 PM, Uri Lublin wrote:
> >mingw imlpements neigther strtok_r nor strtok_s.
> >
> >So here is a simple implementation of strtok_r (for windows).
> >It assumes the delimiter is a single character, which is
> >good enough for usbredirfilter.
> 
> If we're going to do this I would prefer to do a full
> implementation, without the delimiter is a single char
> limit. I know this is not important right now, but we
> might start depending on multi-char delimiters in the
> future and then this will come back to bite us.

Other projects with the same issue seem to be reusing glibc's code
http://www.spinics.net/lists/git/msg137794.html
http://code.google.com/p/udptunnel/source/browse/trunk/helpers/strtok_r.c?r=18

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120530/df8bcdf0/attachment.pgp>


More information about the Spice-devel mailing list