Add more win32 defns, add comments

This commit is contained in:
doyle 2021-05-17 21:19:27 +10:00
parent 21cf140ba3
commit 0165df23d7

View File

@ -14,7 +14,7 @@
stopping redefinition of symbols if another library includes stopping redefinition of symbols if another library includes
"Windows.h" "Windows.h"
#define DQN_NO_WIN32_SHLWAPI_H See DQN_NO_WINDOWS_H. Useful if another library includes #define DQN_NO_WIN32_SHLWAPI_H See DQN_NO_WIN32_WINDOWS_H. Useful if another library includes
"shlwapi.h" "shlwapi.h"
#define DQN_STATIC_API Apply static to all function definitions and disable external #define DQN_STATIC_API Apply static to all function definitions and disable external
@ -1685,10 +1685,10 @@ struct Dqn_ListChunk
template <typename T> template <typename T>
struct Dqn_ListIterator struct Dqn_ListIterator
{ {
Dqn_b32 init; Dqn_b32 init; // (Internal): True if Dqn_List_Iterate has been called at-least once on this iterator
Dqn_ListChunk<T> *chunk; Dqn_ListChunk<T> *chunk; // (Internal): The chunk that the iterator is reading from
Dqn_isize chunk_data_index; Dqn_isize chunk_data_index; // (Internal): The index in the chunk the iterator is referencing
T *data; T *data; // (Read): Pointer to the data the iterator is referencing. Nullptr if invalid.
}; };
template <typename T> template <typename T>
@ -2775,6 +2775,8 @@ Dqn_b32 Dqn_List_Iterate(Dqn_List<T> *list, Dqn_ListIterator<T> *iterator)
typedef unsigned long DWORD; typedef unsigned long DWORD;
typedef unsigned short WORD; typedef unsigned short WORD;
typedef int BOOL; typedef int BOOL;
typedef void * HWND;
typedef void * HMODULE;
typedef union { typedef union {
struct { struct {