Commit Graph

59 Commits

Author SHA1 Message Date
Sean Barrett 1ee679ca2e update version numbers 2021-07-11 17:07:54 -07:00
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.
2021-07-07 14:59:13 -07:00
Sean Barrett 08e4b18650 Merge branch 'dev' of https://github.com/nothings/stb into dev 2021-07-07 00:39:10 -07:00
Sean Barrett a32aeefd6b Merge branch 'patch-1' of https://github.com/t-mw/stb into dev 2021-07-07 00:34:43 -07:00
Fabian Giesen e817b4a998 stb_ds: Fix typos in docs. 2021-07-06 20:17:12 -07:00
Sean Barrett ea2f937a01 increment stb_ds version, update README 2021-06-04 11:42:16 -07:00
Sean Barrett 0188581ff0 Merge branch 'stbds_custom_free_fix' of https://github.com/avennstrom/stb into foo 2021-06-04 11:38:01 -07:00
Sean Barrett 6b647c0257 Merge branch 'working' 2021-06-04 11:18:16 -07:00
Sean Barrett 781609b7e9 stb_ds: fix arrisn, shgetp_null 2021-06-04 11:02:23 -07:00
Macoy Madson e97a95c0c1 Added Macoy Madson to contributors 2021-05-31 19:53:09 -07:00
Macoy Madson 63e4ada98c Fix temp_key being stale on key re-insert
See issue #992 and pull request #993.
2021-05-31 19:51:39 -07:00
Andreas Vennström 579ace225f fix indentation 2021-05-11 22:56:27 +02:00
Andreas Vennström fcd86e8f57 credits 2021-05-11 22:50:11 +02:00
Andreas Vennström 89762b9934 Fix stb_ds custom allocator 2021-05-11 22:44:08 +02:00
t-mw 2d82cd1a2c
Rename arraddnoff -> arraddnindex
Fixes #1011.
As intended according to https://github.com/nothings/stb/pull/932#issuecomment-657524197.
2021-03-02 13:53:31 +01:00
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