Commit Graph

23 Commits

Author SHA1 Message Date
Sean Barrett
63b59b46b0 update version numbers 2019-02-07 10:03:00 -08:00
Clownacy
610a976b83 Removed redundant check 2018-11-02 00:20:31 +00:00
Clownacy
3e6370720e Fixed STB_LEAKCHECK_SHOWALL
5a5cf7f9ba derped
2018-11-02 00:14:22 +00:00
Clownacy
359bb10d3c Try to clean up stblkck_internal_print a little
No need to pass all those parameters. Also long longs aren't 8 digits
long. I don't know how to find out the length of a size_t at
compile-time in a way I can use with a format specifier.
2018-11-01 23:55:07 +00:00
Clownacy
79dc50bb79 ...Actually, I don't think these are meant to be here
Looking at 501812f307, the entire point
was to *replace* these lines. That explains why they lacked braces
earlier.
2018-11-01 23:49:17 +00:00
Clownacy
f7d9426f8e Add a way to use %zd on MinGW(-w64)
This is suggested here:
https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/

Compared to using __USE_MINGW_ANSI_STDIO, this prevents those annoying
warning about "unsupported" format specifiers.
2018-11-01 23:25:47 +00:00
Clownacy
248604ffbc Shut up GCC -pedantic warnings 2018-10-18 13:29:55 +01:00
Clownacy
80b89cf6c8 Fixes for stb_leakcheck.h
I ran into a couple of problems while trying to use this with my
program:

My compiler (MinGW-w64 GCC 8.2.0) complained about not recognising %lld
format specifiers.

The compiler also warned about non-guarding 'if's. I ignored it at
first, but then I noticed my program crashed when it ran
stb_leakcheck_dumpmem. Making the 'if's guard fixed that.

After that, the lib worked until I changed how it was included: instead
of tacking a debug-only #include at the start of every file, I switched
to using GCC's '-include' option to force-include it in every file. But
doing that gave me errors about size_t not being defined. And after
fixing that, I instead got errors about the #defines messing with
stdlib.h. So to fix those I made the declaration-only part of the header
include stdlib.h.
2018-10-12 12:04:49 +01:00
Sean Barrett
555efbedfc Update version numbers 2017-07-23 14:09:39 -07:00
Fabian Giesen
7725f8b9cd stb_leakcheck: Derp, I should free the right thing.
Fixes #307, this time for real.
2017-07-23 01:33:21 -07:00
Fabian Giesen
5a5cf7f9ba stb_leakcheck: Make stb_leakcheck_free actually free.
Fixes issue #307.
2017-07-22 20:44:27 -07:00
Fabian Giesen
501812f307 stb_leakcheck: Fix warnings.
1. const char* for __FILE__ (string literals are const)
2. Use %zd to print size_t where available; the only real problem
   here is Visual C++. Use long long on the VC++ vers that support
   64-bit targets but not %zd, int on the even older 32-bit-only
   VC++ vers that don't support "long long" either.

Fixes #459. I think. (It's hard to be sure since the issue doesn't
state the exact warning message.)
2017-07-22 18:03:52 -07: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
84e2fc0a9e makefile 2017-01-16 03:01:40 -08:00
Sean Barrett
4d19411acd makefile 2017-01-16 02:58:05 -08:00
Sean Barrett
218ecd17a4 Merge branch 'patch-1' of https://github.com/looki/stb 2016-04-02 02:42:17 -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
Lukas Meller
d4f552b393 Fixed typo 2016-01-23 03:41:03 +01: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
rwhitworth
0c0a619ca4 Updated to compile with Visual Studio 2015 2015-08-05 22:27:53 -04:00
Ryan Whitworth
5a7d524fd8 Added public domain license text 2015-08-01 14:54:27 -04:00
Sean Barrett
3f17b24d90 make sure all libs compile as C++ 2015-04-14 03:53:26 -07:00
Sean Barrett
0d840ab330 quick & dirty leak checker 2015-01-21 07:46:54 -08:00