physfs_unicode.c
branchstable-2.0
changeset 1095 69b884a15de1
parent 1014 2a649b61434c
child 1164 18a21ee32131
equal deleted inserted replaced
1088:d19e235efe5f 1095:69b884a15de1
   303     *_dst = dst;
   303     *_dst = dst;
   304     *_len = len;
   304     *_len = len;
   305 } /* utf8fromcodepoint */
   305 } /* utf8fromcodepoint */
   306 
   306 
   307 #define UTF8FROMTYPE(typ, src, dst, len) \
   307 #define UTF8FROMTYPE(typ, src, dst, len) \
       
   308     if (len == 0) return; \
   308     len--;  \
   309     len--;  \
   309     while (len) \
   310     while (len) \
   310     { \
   311     { \
   311         const PHYSFS_uint32 cp = (PHYSFS_uint32) ((typ) (*(src++))); \
   312         const PHYSFS_uint32 cp = (PHYSFS_uint32) ((typ) (*(src++))); \
   312         if (cp == 0) break; \
   313         if (cp == 0) break; \