Browse Source

add strict-aliasing warnings; update readme to include stretchy_buffer

Sean Barrett 11 năm trước cách đây
mục cha
commit
ca093eda56
4 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 1 0
      README.md
  2. 2 0
      stb_image_write.h
  3. 2 0
      stretchy_buffer.h
  4. 1 0
      tools/README.list

+ 1 - 0
README.md

@@ -15,6 +15,7 @@ library    | lastest version | category | description
 **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.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
 ---

+ 2 - 0
stb_image_write.h

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

+ 2 - 0
stretchy_buffer.h

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

+ 1 - 0
tools/README.list

@@ -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_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
+stretchy_buffer.h | utility  | typesafe dynamic array for C (i.e. approximation to vector<>), doesn't compile as C++