Skip to content
Myr

Merge branch '64bit' of https://github.com/Mischanix/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 24602db, 51415de · Browse files · 1 file+19 added−6 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+19 added−6 removed

  • other:+19 added−6 removed

1 file+19 added−6 removed

modified:stb.h+19 added-6 removed
1034 unmodified lines
1035 fputs("Fatal error: ", stderr);1036 vfprintf(stderr, s, a);1037 va_end(a);1038 fputs("\n", stderr);1039 #ifdef _WIN321039 #ifdef STB_DEBUG1040 #ifdef _MSC_VER1041 #ifndef STB_PTR641042 __asm int 3; // trap to debugger!1043 #else1044 __debugbreak();1045 #endif1046 #else1047 __builtin_trap();1048 #endif1049 #endif1050 exit(1);1051}10521053static int stb__log_active=1, stb__log_fileline=1;
4791 unmodified lines
5845static char **readdir_raw(char *dir, int return_subdirs, char *mask)5846{5847 char **results = NULL;5848 char buffer[512], with_slash[512];5843 int n;5849 size_t n;58505851 #ifdef _MSC_VER5852 stb__wchar *ws;5853 struct _wfinddata_t data;5854 #ifdef _WIN645855 const intptr_t none = -1;5856 intptr_t z;5857 #else5858 const long none = -1;5859 long z;5850 #else5860 #endif5861 #else // !_MSC_VER5862 const DIR *none = NULL;5863 DIR *z;5864 #endif5865
965 unmodified lines
68316832 int n;68336834 struct _wfinddata_t c_file;6835 #ifdef STB_PTR646836 intptr_t hFile;6837 #else6838 long hFile;6839 #endif6840 stb__wchar full_path[1024];6841 int has_slash;68426843 has_slash = (path[0] && path[strlen(path)-1] == '/');
523 unmodified lines
7367// returns a list, *count is the length of that list,7368// but some entries of the list may be invalid;7369// test with 'stb_ps_fastlist_valid(x)'73707356#define stb_ps_fastlist_valid(x) ((unsigned int) (x) > 1)7371#define stb_ps_fastlist_valid(x) ((stb_uinta) (x) > 1)73727373#ifdef STB_DEFINE73747375enum
12 unmodified lines
7388} stb_ps_bucket;7389#define GetBucket(p) ((stb_ps_bucket *) ((char *) (p) - STB_ps_bucket))7390#define EncodeBucket(p) ((stb_ps *) ((char *) (p) + STB_ps_bucket))73917377typedef char stb__verify_bucket_heap_size[sizeof(stb_ps_bucket) == 16];73787392static void stb_bucket_free(stb_ps_bucket *b)7393{7394 free(b);7395}
6719 unmodified lines