Commit Graph

35 Commits

Author SHA1 Message Date
Sean Barrett 01daa3a244 stb_sprintf: fix size-only snprintf query 2018-01-30 05:29:31 -08:00
Sean Barrett ee0ebfc79b version numbers 2018-01-29 04:59:32 -08:00
Sean Barrett da4a7a1d6f Merge branch 'patch-2' of https://github.com/wojdyr/stb 2018-01-29 03:51:23 -08:00
Sean Barrett 5f1a73fe4e credits, tests 2018-01-29 03:18:40 -08:00
Sean Barrett e5946524d7 Merge branch 'patch-1' of https://github.com/wojdyr/stb 2018-01-29 03:15:17 -08:00
Marcin Wojdyr 3a969eb64c
remove duplicated `pr = 0`
avoid warning:
Variable 'pr' is reassigned a value before the old one has been used
caused by:

    fw = pr = fl = 0;
    ...
    pr = 0;
2017-12-07 15:30:43 +00:00
Marcin Wojdyr 7d80a8b44d avoid GCC7 implicit-fallthrough warning
(GCC recognizes certain strings in comments)
2017-08-11 00:19:18 +01:00
Rohit Nirmal 747b8d8f71 stb_sprintf.h: Don't compare uninitialized value when using zero.
This prevents a "Conditional jump or move depends on uninitialised
value(s)" error from valgrind when using zero as an argument in line
1045.
2017-07-28 00:01:46 -05:00
Sean Barrett 555efbedfc Update version numbers 2017-07-23 14:09:39 -07:00
Fabian Giesen 481db7501c stb_sprintf: Remove some gratuitous gotos 2017-07-21 20:31:58 -07:00
Fabian Giesen 7b8955bfaa stb_sprintf: More whitespace cleanups post clang-format 2017-07-21 20:23:50 -07:00
Fabian Giesen cccbc3f5a9 stb_sprintf: Clean up the mess with clang-format 2017-07-21 20:17:34 -07:00
Sean Barrett c918a6b801 tweak previous PR merge 2017-03-03 10:02:54 -08:00
Sean Barrett 2be620d2bb Merge branch 'lead_sign' of https://github.com/rohit-n/stb into working 2017-03-03 09:57:58 -08:00
Sean Barrett 324be64e80 version number 2017-03-03 09:57:09 -08:00
Sean Barrett 3841bc6198 Merge branch 'master' of https://github.com/jarikomppa/stb into working 2017-03-03 09:56:11 -08:00
Sean Barrett e248e30954 change license to public-domain AND mit (based on twitter vote) 2017-03-03 07:53:07 -08:00
Sean Barrett 96620a3a54 update version numbers 2017-01-16 00:51:24 -08:00
Sean Barrett 0bd0a9abc4 stb_truetype: comment typo
stb_c_lexer: end-of-array wrapped overflow bug
2017-01-16 00:11:58 -08:00
Sean Barrett dead3815e2 credits 2017-01-16 00:05:58 -08:00
Sean Barrett 48710234f2 credits; 1/2/4-bit png fix; easy font spacing; NO_STDIO in image_write 2017-01-15 23:57:53 -08:00
Sean Barrett 80a39f958f Merge branch 'fix-percent-check' of https://github.com/d26435/stb into working 2017-01-15 23:43:53 -08:00
Rohit Nirmal 13927ac386 stb_printf.h: Reuse code for assigning lead sign. 2016-12-06 10:34:08 -06:00
Daniel 4338a0e55e Fix the check for a percent character
It was matching everything less than 0x26, so could cause a minor
performance loss. Also made the second if statement superfluous.
2016-12-05 21:03:05 +00:00
jarikomppa 0e63382be0 A bit more involved change: support for both 1000 and 1024 divisors, and SI and JEDEC suffixes, as well as removing the space between number and suffix. 2016-12-05 17:23:01 +02:00
Sean Barrett 3e7f2d6ebd fix missing renames 2016-12-05 06:58:30 -08:00
Sean Barrett bec0b26d1e Merge branch 'master' of https://github.com/nothings/stb 2016-12-05 06:53:53 -08:00
Sean Barrett 554e072742 fix #ifdef mistake in stb_sprintf 2016-12-05 06:53:36 -08:00
jarikomppa 9a3f9dff13 More proper fix for the prefixes (defaults to Ki style, with define for using K style instead) 2016-12-05 15:08:54 +02:00
jarikomppa a27e577c3e The Si prefixes for mega, giga and tera are upper case (lower case m is not mega but milli) 2016-12-05 14:56:35 +02:00
Aras Pranckevičius e6e20b43db stb_sprintf: seperators -> separators typo in comment 2016-12-05 14:49:39 +02:00
Sean Barrett ca3b8d7426 add credits to readme 2016-12-05 04:19:53 -08:00
Sean Barrett 9953803d0c fix bad search-replace in comment 2016-12-05 03:53:54 -08:00
Sean Barrett c9fe5bac48 rename all stb_sprintf identifiers to follow stb conventions 2016-12-05 03:48:37 -08:00
Sean Barrett fd23d7097d rename rrsprintf to stb_sprintf 2016-12-05 02:58:16 -08:00