stb_sprintf: support hh
This commit is contained in:
parent
d4871226e4
commit
e943476f7f
@ -3,7 +3,7 @@
|
||||
// http://github.com/nothings/stb
|
||||
//
|
||||
// allowed types: sc uidBboXx p AaGgEef n
|
||||
// lengths : h ll j z t I64 I32 I
|
||||
// lengths : hh h ll j z t I64 I32 I
|
||||
//
|
||||
// Contributors:
|
||||
// Fabian "ryg" Giesen (reformatting)
|
||||
@ -471,6 +471,8 @@ STBSP__PUBLICDEF int STB_SPRINTF_DECORATE(vsprintfcb)(STBSP_SPRINTFCB *callback,
|
||||
case 'h':
|
||||
fl |= STBSP__HALFWIDTH;
|
||||
++f;
|
||||
if (f[0] == 'h')
|
||||
++f; // QUARTERWIDTH
|
||||
break;
|
||||
// are we 64-bit (unix style)
|
||||
case 'l':
|
||||
|
Loading…
Reference in New Issue
Block a user