Skip to content
Myr

Merge branch 'master' of https://github.com/blackpawn/stb into working

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 · parents 2adf6d2, 693772e · Browse files · 1 file+3 added−2 removed
This commit

State

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

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:stb.h+3 added-2 removed
338 unmodified lines
339typedef char stb__testsize2_64[sizeof(stb_uint64)==8 ? 1 : -1];340341// add platform-specific ways of checking for sizeof(char*) == 8,342// and make those define STB_PTR64343#if defined(_WIN64) || defined(__x86_64__) || defined(__ia64__)343#if defined(_WIN64) || defined(__x86_64__) || defined(__ia64__) || defined(__LP64__)344 #define STB_PTR64345#endif346347#ifdef STB_PTR64
2235 unmodified lines
25832584static void * stb__try_chunk(stb__chunk *c, int size, int align, int pre_align)2585{2586 char *memblock = (char *) (c+1), *q;2587 stb_inta iq;2587 int iq, start_offset;2588 int start_offset;25892590 // we going to allocate at the end of the chunk, not the start. confusing,2591 // but it means we don't need both a 'limit' and a 'cur', just a 'cur'.2592 // the block ends at: p + c->data_left
11525 unmodified lines