Linux-specific directory listing.

This commit is contained in:
Miguel Lechon
2021-01-31 09:09:53 +01:00
parent 289b9af732
commit d96d76f167
5 changed files with 125 additions and 37 deletions
+2 -1
View File
@@ -594,11 +594,12 @@ typedef struct MD_FileIter MD_FileIter;
struct MD_FileIter
{
// This is opaque state to store OS-specific file-system iteration data.
MD_u64 state;
MD_u64 state[2];
};
//~ Basic Utilities
#define MD_Assert(c) if (!(c)) { *(volatile MD_u64 *)0 = 0; }
#define MD_StaticAssert(c,label) MD_u8 MD_static_assert_##label[(c)?(1):(-1)]
#define MD_ArrayCount(a) (sizeof(a) / sizeof((a)[0]))
MD_FUNCTION MD_b32 MD_CharIsAlpha(MD_u8 c);
MD_FUNCTION MD_b32 MD_CharIsAlphaUpper(MD_u8 c);