Sean Barrett
1ee679ca2e
update version numbers
ago%!(EXTRA string=4 years)
Fabian Giesen
2af2e69219
stb_ds: Fix addn when n=0
...
In this case, the array pointer may still be 0 even after the
maybegrow.
Fixes issue #1015 .
ago%!(EXTRA string=4 years)
Fabian Giesen
e817b4a998
stb_ds: Fix typos in docs.
ago%!(EXTRA string=4 years)
Sean Barrett
ea2f937a01
increment stb_ds version, update README
ago%!(EXTRA string=4 years)
Sean Barrett
781609b7e9
stb_ds: fix arrisn, shgetp_null
ago%!(EXTRA string=4 years)
Macoy Madson
e97a95c0c1
Added Macoy Madson to contributors
ago%!(EXTRA string=4 years)
Macoy Madson
63e4ada98c
Fix temp_key being stale on key re-insert
...
See issue #992 and pull request #993 .
ago%!(EXTRA string=4 years)
Andreas Vennström
579ace225f
fix indentation
ago%!(EXTRA string=4 years)
Andreas Vennström
fcd86e8f57
credits
ago%!(EXTRA string=4 years)
Andreas Vennström
89762b9934
Fix stb_ds custom allocator
ago%!(EXTRA string=4 years)
t-mw
2d82cd1a2c
Rename arraddnoff -> arraddnindex
...
Fixes #1011 .
As intended according to https://github.com/nothings/stb/pull/932#issuecomment-657524197 .
ago%!(EXTRA string=4 years)
Sean Barrett
314d0a6f9a
update version numbers
ago%!(EXTRA string=5 years)
Sean Barrett
59f06c1a97
stb_ds: move temp_key added by PR into hash_table structure instead of main header struct
ago%!(EXTRA string=5 years)
Sean Barrett
6f7420a825
add credits for last few PR merges
ago%!(EXTRA string=5 years)
Sean Barrett
b3a74a5c8a
fix PR to work on VC6
ago%!(EXTRA string=5 years)
Sean Barrett
dfdb7d9c14
stb_ds: use keyoffset in key comparison
ago%!(EXTRA string=5 years)
Srđan Stipić
1e400e21d2
stb_ds: fix shputs() for strdup and arena hash table
ago%!(EXTRA string=5 years)
Andreas Molzer
b67dabed2a
Add arraddn back with void return and deprecated
ago%!(EXTRA string=5 years)
Andreas Molzer
e485c7d353
Split arraddn into pointer and index return
ago%!(EXTRA string=5 years)
Andreas Molzer
e423b41e74
Fix arraddn returning index instead of pointer
...
The documentation of that operation already said:
> Returns a pointer to the first uninitialized item added.
This also makes a lot of sense, allowing easy initialization. But the
implementation returned the index of the first uninitialized element
instead.
ago%!(EXTRA string=5 years)
hashitaku
2e8b2d7f58
stb_ds.h: fix unused parameter warning
ago%!(EXTRA string=5 years)
Sean Barrett
37b9b20fde
update version numbers
ago%!(EXTRA string=5 years)
Marco Lizza
6e8c31685f
Fixing fall-trough (pedantic) warnings.
ago%!(EXTRA string=5 years)
Nerd
498bd3e017
Fix typo in stbds_hmget_key_ts_wrapper
ago%!(EXTRA string=5 years)
Sean Barrett
2bb4a0accd
Fix trailing whitespace
ago%!(EXTRA string=5 years)
Sean Barrett
5e4a0617b7
udpate version numbers
ago%!(EXTRA string=5 years)
Sean Barrett
7cce4c3ad9
stb_ds: remove accidental #include
ago%!(EXTRA string=5 years)
Sean Barrett
d693c6103a
stb_ds.h: thread-safe functions; pointer-returning functions; change return value of arraddn
ago%!(EXTRA string=5 years)
Sean Barrett
bcb2815ab3
stb_ds: add documentation for STBDS_UNIT_TESTS, -std=c++0x
ago%!(EXTRA string=6 years)
Sean Barrett
be594f1e0b
stb_ds: maybe avoid problem with inferring template type from enum with gcc
ago%!(EXTRA string=6 years)
Shane Liesegang
0cff58ecf8
very minor, non-urgent :)
ago%!(EXTRA string=6 years)
Sean Barrett
787f1d646a
Update version numbers
ago%!(EXTRA string=6 years)
Sean Barrett
61be29d161
stb_ds: fix bug with shgeti not returning correct value
ago%!(EXTRA string=6 years)
Sean Barrett
9f1836f0b1
update version
ago%!(EXTRA string=6 years)
Sean Barrett
8f0bade4ae
tweak STBDS_REALLOC/STBDS_FREE change
ago%!(EXTRA string=6 years)
Vinh Truong
fad8903fe8
Credits
ago%!(EXTRA string=6 years)
Vinh Truong
96021689c8
hmlen and hmlenu now returns 0 on NULL pointer
ago%!(EXTRA string=6 years)
Andy Durdin
2cddbc934d
stb_ds: STBDS_REALLOC and STBDS_FREE only need to be defined for the implementation.
ago%!(EXTRA string=6 years)
Andy Durdin
6b2fb7702f
stb_ds: Allow STBDS_REALLOC and STBDS_FREE defines to customize memory management.
ago%!(EXTRA string=6 years)
Andy Durdin
5a2a8e882f
stb_ds: Use free() instead of realloc(x,0). Fixes #768
ago%!(EXTRA string=6 years)
Sean Barrett
2c2908f505
update version numbers
ago%!(EXTRA string=6 years)
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
ago%!(EXTRA string=6 years)
Sean Barrett
b8960f32b8
stb_ds: major string hash fix, minor other changes
...
- arena and strdup string hashes were badly broken due to not setting up default slot correctly
- tweak use of seed in 4-byte and 8-byte hash functions to hopefully be slightly stronger
- a few internal #ifdefs for performance tuning
ago%!(EXTRA string=6 years)
Rafael Sachetto
caf9608826
Adding arrpop macro to stb_ds.h
ago%!(EXTRA string=6 years)
Rafael Sachetto
89bccdd567
Small documentation correction
ago%!(EXTRA string=6 years)
Sean Barrett
f9133c3677
stb_ds v0.3: fixes for compiling client code in C++
...
add missing _wrapper suffixes
disable clang rvalue support in C++
disable unit tests in VC6 C++
other tweaks
ago%!(EXTRA string=6 years)
Sean Barrett
1aeb8ec201
stb_ds: fix shift warnings in later VS compilers
ago%!(EXTRA string=6 years)
Sean Barrett
477471d9a8
add stb_ds.h and tests
ago%!(EXTRA string=6 years)