Commit Graph

44 Commits

Author SHA1 Message Date
Sean Barrett 314d0a6f9a update version numbers 2020-07-13 04:36:03 -07:00
Sean Barrett 59f06c1a97 stb_ds: move temp_key added by PR into hash_table structure instead of main header struct 2020-07-13 04:25:34 -07:00
Sean Barrett ef23148510 Merge branch 'master' of https://github.com/srdjanstipic/stb into working 2020-07-13 04:16:38 -07:00
Sean Barrett 6f7420a825 add credits for last few PR merges 2020-07-13 02:59:10 -07:00
Sean Barrett 67881b61ab Merge branch 'stbds-arraddn' of https://github.com/HeroicKatora/stb into working 2020-07-13 02:52:03 -07:00
Sean Barrett b3a74a5c8a fix PR to work on VC6 2020-07-13 02:43:26 -07:00
Sean Barrett 206529e08e Merge branch 'unused#801' of https://github.com/hashitaku/stb into test 2020-07-13 02:42:57 -07:00
Sean Barrett dfdb7d9c14 stb_ds: use keyoffset in key comparison 2020-07-13 02:42:37 -07:00
Srđan Stipić 1e400e21d2 stb_ds: fix shputs() for strdup and arena hash table 2020-07-12 18:54:31 +02:00
Andreas Molzer b67dabed2a
Add arraddn back with void return and deprecated 2020-03-25 20:58:57 +01:00
Andreas Molzer e485c7d353 Split arraddn into pointer and index return 2020-03-25 20:12:21 +01:00
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.
2020-03-24 15:37:24 +01:00
hashitaku 2e8b2d7f58 stb_ds.h: fix unused parameter warning 2020-02-08 10:11:40 +09:00
Sean Barrett 37b9b20fde update version numbers 2020-02-05 03:19:08 -08:00
Sean Barrett efdaadcb4a Merge branch 'master' of https://github.com/MarcoLizza/stb into working 2020-02-05 03:16:46 -08:00
Marco Lizza 6e8c31685f Fixing fall-trough (pedantic) warnings. 2020-02-04 16:59:47 +01:00
Nerd 498bd3e017
Fix typo in stbds_hmget_key_ts_wrapper 2020-02-03 16:17:42 +08:00
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 7cce4c3ad9 stb_ds: remove accidental #include 2020-02-01 08:15:04 -08:00
Sean Barrett d693c6103a stb_ds.h: thread-safe functions; pointer-returning functions; change return value of arraddn 2020-02-01 04:18:23 -08:00
Sean Barrett bcb2815ab3 stb_ds: add documentation for STBDS_UNIT_TESTS, -std=c++0x 2019-08-11 17:03:05 -07:00
Sean Barrett 76254f7758 Merge branch 'master' of https://github.com/nothings/stb 2019-08-11 14:39:51 -07:00
Sean Barrett be594f1e0b stb_ds: maybe avoid problem with inferring template type from enum with gcc 2019-08-11 14:37:45 -07:00
Shane Liesegang 0cff58ecf8
very minor, non-urgent :) 2019-08-11 23:02:34 +02:00
Sean Barrett 787f1d646a Update version numbers 2019-08-11 05:38:37 -07:00
Sean Barrett 61be29d161 stb_ds: fix bug with shgeti not returning correct value 2019-08-11 04:53:51 -07:00
Sean Barrett 9f1836f0b1 update version 2019-06-17 05:43:52 -07:00
Sean Barrett f9910f1f9a Merge branch 'hmlen-null' of https://github.com/phoekz/stb into working 2019-06-17 05:26:21 -07:00
Sean Barrett 8f0bade4ae tweak STBDS_REALLOC/STBDS_FREE change 2019-06-17 05:25:44 -07:00
Vinh Truong fad8903fe8 Credits 2019-06-01 12:08:59 +03:00
Vinh Truong 96021689c8 hmlen and hmlenu now returns 0 on NULL pointer 2019-06-01 12:07:19 +03:00
Andy Durdin 2cddbc934d stb_ds: STBDS_REALLOC and STBDS_FREE only need to be defined for the implementation. 2019-05-27 11:14:17 +02:00
Andy Durdin 6b2fb7702f stb_ds: Allow STBDS_REALLOC and STBDS_FREE defines to customize memory management. 2019-05-27 11:07:30 +02:00
Andy Durdin 5a2a8e882f stb_ds: Use free() instead of realloc(x,0). Fixes #768 2019-05-27 11:04:28 +02:00
Sean Barrett 2c2908f505 update version numbers 2019-03-04 15:08:53 -08:00
Sean Barrett d940053a01 Merge branch 'master' into working 2019-03-04 14:56:00 -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 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
2019-03-03 21:36:15 -08:00
Rafael Sachetto caf9608826 Adding arrpop macro to stb_ds.h 2019-03-01 14:04:31 -03:00
Rafael Sachetto 89bccdd567 Small documentation correction 2019-02-26 09:37:16 -03:00
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
2019-02-25 13:48:41 -08:00
Sean Barrett 1aeb8ec201 stb_ds: fix shift warnings in later VS compilers 2019-02-25 11:40:33 -08:00
Sean Barrett 477471d9a8 add stb_ds.h and tests 2019-02-25 11:16:35 -08:00