add strict-aliasing warnings; update readme to include stretchy_buffer

This commit is contained in:
Sean Barrett 2014-06-01 08:04:07 -07:00
parent a57dfc50fc
commit ca093eda56
4 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,7 @@ library | lastest version | category | description
**stb_c_lexer.h** | 0.04 | parsing | simplify writing parsers for C-like languages **stb_c_lexer.h** | 0.04 | parsing | simplify writing parsers for C-like languages
**stb_divide.h** | 0.91 | math | more useful 32-bit modulus e.g. "euclidean divide" **stb_divide.h** | 0.91 | math | more useful 32-bit modulus e.g. "euclidean divide"
**stb.h** | 2.23 | misc | helper functions for C, mostly redundant in C++; basically author's personal stuff **stb.h** | 2.23 | misc | helper functions for C, mostly redundant in C++; basically author's personal stuff
**stretchy_buffer.h** | 0.9 | utility | typesafe dynamic array for C (i.e. approximation to vector<>), doesn't compile as C++
FAQ FAQ
--- ---

View File

@ -9,6 +9,8 @@ Before including,
in the file that you want to have the implementation. in the file that you want to have the implementation.
Will probably not work correctly with strict-aliasing optimizations.
ABOUT: ABOUT:

View File

@ -5,6 +5,8 @@
// 0.9 - rewrite to try to avoid strict-aliasing optimization // 0.9 - rewrite to try to avoid strict-aliasing optimization
// issues, but won't compile as C++ // issues, but won't compile as C++
// //
// Will probably not work correctly with strict-aliasing optimizations.
//
// The idea: // The idea:
// //
// This implements an approximation to C++ vector<> for C, in that it // This implements an approximation to C++ vector<> for C, in that it

View File

@ -8,3 +8,4 @@ stb_perlin.h | 3D graphics | revised Perlin noise (3D input, 1D output)
stb_c_lexer.h | parsing | simplify writing parsers for C-like languages stb_c_lexer.h | parsing | simplify writing parsers for C-like languages
stb_divide.h | math | more useful 32-bit modulus e.g. "euclidean divide" stb_divide.h | math | more useful 32-bit modulus e.g. "euclidean divide"
stb.h | misc | helper functions for C, mostly redundant in C++; basically author's personal stuff stb.h | misc | helper functions for C, mostly redundant in C++; basically author's personal stuff
stretchy_buffer.h | utility | typesafe dynamic array for C (i.e. approximation to vector<>), doesn't compile as C++