Commit Graph

82 Commits

Author SHA1 Message Date
Sean Barrett
2bb4a0accd Fix trailing whitespace 2020-02-02 11:30:27 -08:00
Sean Barrett
5e4a0617b7 udpate version numbers 2020-02-02 11:12:13 -08:00
Sean Barrett
1ced9faea1 Merge branch 'unused-function-warnings' of https://github.com/BradleyMarie/stb into work2 2020-02-02 10:11:43 -08:00
Sean Barrett
d2569111cd Merge branch 'splitpath_raw_fix' of https://github.com/bcollins526/stb into work2 2020-02-02 10:06:31 -08:00
Sean Barrett
aa482fc4a1 stb.h: perfect hashing functions requires opting-in with "#define STB_PERFECT_HASH"; fix some missing parenthesis in stb_arr macros 2020-02-01 03:43:33 -08:00
Brian Collins
d5d052c806 casting to int to remove ptrdiff_t <-> int comparison warnings 2020-01-26 15:06:32 -08:00
Brian Collins
8fca192660 better to just use stb_strncpy inside stb__splitpath_raw, also fixed an indexing bug in stb_strncpy itself. 2020-01-19 14:38:09 -08:00
Brian Collins
7c44b15903 forgot to update fixes list 2020-01-19 13:43:43 -08:00
Brian Collins
41d1dcc029 changed buffer to path for STB_EXT_NO_PERIOD, and specified appropriate buffer size for the copy (sizeof(buffer) referred to the size of the buffer pointer, which was incorrect) 2020-01-19 13:06:11 -08:00
Sean Barrett
787f1d646a Update version numbers 2019-08-11 05:38:37 -07:00
Sean Barrett
a2d540a689 stb.h: fix clang compile 2019-08-11 05:18:24 -07:00
Sean Barrett
2c2908f505 update version numbers 2019-03-04 15:08:53 -08:00
Sean Barrett
a0b521fcf2 no warnings when compiling /W3
compiling all test cases and compilers in test.sbm
   Compilers:
     32-bit:
       VS2015
       VS2013
       VS2008
       VC6 (1998)
       clang-cl 9.0.1
     64-bit
       VS2015
       clang-cl 9.0.1
2019-03-04 14:45:06 -08:00
Sean Barrett
39c05598a9 Update stb.h version number 2019-02-25 12:05:38 -08:00
Ethan Lee
0666554276 stb.h rand: A few more long->int fixes 2019-02-18 10:53:26 -05:00
Sean Barrett
63b59b46b0 update version numbers 2019-02-07 10:03:00 -08:00
Sean Barrett
3005bcfe87 Merge branch 'misc-typos' of https://github.com/luzpaz/stb into working 2019-02-07 05:00:12 -08:00
Sean Barrett
d85e594654 various fixes:
add stb_intcmprev
  add stb_uidict
  fixes to stb__dirtree_scandir
  change rand functions from unsigned long to unsigned int so they're 32-bit on Linux as well
2019-02-07 04:33:18 -08:00
luz.paz
622b3adad3 Misc. comment typos
Found via `codespell -q 3`
2018-02-12 14:54:22 -05:00
Sean Barrett
db4d92891c fix stb_sdict_for() 2018-01-29 07:44:04 -08:00
Sean Barrett
5db03ef592 Merge branch 'master' into working
Conflicts:
	stb_image.h
2018-01-29 04:04:28 -08:00
Sean Barrett
9eb0e72950 Merge branch 'must_make_clang_happy_as_clam' of https://github.com/croepha/stb 2018-01-29 03:17:50 -08:00
Sean Barrett
68f857727c add stb_ucharcmp to stb.h 2018-01-29 02:24:05 -08:00
Dave Butler
2545eee3ef Added myself as a contributor for the pull request 2017-08-25 08:24:58 -09:00
Dave Butler
f57bc38ff6 Made some changes to make Clang Happy
Someone should double check that that I didn't change
the behavior of any of the code.  I'm not using most (if any)
of the code I touched, just wanted it to compile...
2017-08-25 08:02:35 -09:00
Sean Barrett
dd039e8cc5 credits for mingw fixes in #444 2017-07-23 14:13:07 -07:00
Sean Barrett
d74530cd10 fix stb_fclose to do a better job of preserving content 2017-07-05 18:01:53 -07:00
Infatum
4963448726 fix: Build on MinGW32 2017-04-20 15:49:36 +03:00
Sean Barrett
b1a0089c4b stb.h swprintf fix 2017-03-03 10:45:59 -08:00
Sean Barrett
c9fe5bac48 rename all stb_sprintf identifiers to follow stb conventions 2016-12-05 03:48:37 -08:00
Sean Barrett
6f72440159 bump version numbers 2016-08-27 12:38:09 -07:00
Sean Barrett
4806aca183 windows fwrite doesn't handle arbitrarily large writes (!);
add a bunch of stuff used by my backup program 'smir';
2016-08-27 12:02:26 -07:00
Sean Barrett
6e4154737c update version numbers, documentation, and contributors 2016-04-02 04:51:26 -07:00
Sean Barrett
a8876b884d fix _WIN32 if STB_THREADS 2016-04-02 03:44:37 -07:00
Craig Donner
ee6978cb68 Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable. 2016-02-25 12:55:44 -08:00
Sean Barrett
820f63be44 stb_tilemap_editor: fix typo in docuemtnation, update version & credits 2016-01-22 05:17:12 -08:00
Sean Barrett
a33e40b1d4 Merge branch 'master' of https://github.com/timsjostrand/stb into stb_h_fix
Conflicts:
	stb.h
2016-01-22 05:05:30 -08:00
Sean Barrett
7d4f7c566e Merge branch 'master' of https://github.com/eugeneopalev/stb into stb_h_fix 2016-01-22 05:00:03 -08:00
Sean Barrett
c41629f262 Merge branch 'master' of https://github.com/blackpawn/stb into stb_h_fix 2016-01-22 04:58:41 -08:00
Eugene Opalev
a5bbc93087 Warning C4005 fix 2016-01-18 22:41:17 -08:00
Eugene Opalev
bc1b1f6cc9 Warning C4703 fix 2016-01-18 19:38:07 -08:00
blackpawn
a4ab8c08eb Corrected fix for stb_insertn
On insert the memmove length wasn't incorrect but the addlen call was.
2015-12-02 23:12:12 -06:00
blackpawn
28f1b0f569 Fix for stb_arr_insert 2015-12-02 22:34:04 -06:00
blackpawn
cbfa0c4418 Fix stb_arr_insertn and stb_arr_deleten memmove lengths
They were moving memory beyond the array bounds.
2015-12-02 01:16:29 -06:00
Michael Sartain
8d9302ab05 readdir_raw buffer overrun fixes.
- Add stb_vsnprintf, stb_snprintf functions.
- stb snprintf routines should return -1 on buffer truncation on all platforms.
- Add stb_strscpy string copy function which should behave the same as Linux kernel strscpy.
- Bump readdir_raw buffer sizes up to 4k, add checks for path truncations.
- Use d_type to check for directory instead of opendir/closedir. This
  should be faster and fix recursive symlnk death.
2015-11-01 17:53:35 -08:00
Michael Sartain
ba40683515 readdir_raw was skipping all dirnames starting with dots. Only skip . and .. 2015-11-01 17:53:35 -08:00
Tim Sjöstrand
412e1ecc16 compile fix for MinGW 2015-09-15 19:17:42 +02:00
Sean Barrett
f0268375da credit 2015-09-13 06:16:52 -07:00
Sean Barrett
ef21612364 Merge branch 'fix-clang-warnings' of https://github.com/vincentisambart/stb into working 2015-09-13 06:11:09 -07:00
Sean Barrett
b0852b766a Merge branch 'master' of https://github.com/rwhitworth/stb into working
Conflicts:
	stb.h
2015-09-13 06:10:16 -07:00