From 0165df23d71fbfdc7daf83d843d4a13b214efad7 Mon Sep 17 00:00:00 2001 From: doyle Date: Mon, 17 May 2021 21:19:27 +1000 Subject: [PATCH] Add more win32 defns, add comments --- Code/Dqn.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Code/Dqn.h b/Code/Dqn.h index 72c695c..18a41fe 100644 --- a/Code/Dqn.h +++ b/Code/Dqn.h @@ -14,7 +14,7 @@ stopping redefinition of symbols if another library includes "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" #define DQN_STATIC_API Apply static to all function definitions and disable external @@ -1685,10 +1685,10 @@ struct Dqn_ListChunk template struct Dqn_ListIterator { - Dqn_b32 init; - Dqn_ListChunk *chunk; - Dqn_isize chunk_data_index; - T *data; + Dqn_b32 init; // (Internal): True if Dqn_List_Iterate has been called at-least once on this iterator + Dqn_ListChunk *chunk; // (Internal): The chunk that the iterator is reading from + Dqn_isize chunk_data_index; // (Internal): The index in the chunk the iterator is referencing + T *data; // (Read): Pointer to the data the iterator is referencing. Nullptr if invalid. }; template @@ -2775,6 +2775,8 @@ Dqn_b32 Dqn_List_Iterate(Dqn_List *list, Dqn_ListIterator *iterator) typedef unsigned long DWORD; typedef unsigned short WORD; typedef int BOOL; + typedef void * HWND; + typedef void * HMODULE; typedef union { struct {