Skip to content
Myr

stb_ds: maybe avoid problem with inferring template type from enum with gcc

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent 787f1d6 · Browse files · 2 files+5 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−8 removed

  • other:+5 added−8 removed

2 files+5 added−8 removed

modified:README.md+2 added-2 removed
modified:stb_ds.h+3 added-6 removed
1/* stb_ds.h - v0.6 - public domain data structures - Sean Barrett 20191/* stb_ds.h - v0.61 - public domain data structures - Sean Barrett 20192 3 This is a single-header-file library that provides easy-to-use4 dynamic arrays and hash tables for C (also works in C++).5
566 unmodified lines
572 unsigned char block;573 unsigned char mode; // this isn't used by the string arena itself574};575576enum577{578 STBDS_HM_BINARY,579 STBDS_HM_STRING,580};576#define STBDS_HM_BINARY 0577#define STBDS_HM_STRING 1578579enum580{581 STBDS_SH_NONE,
1115 unmodified lines