[plugin macros] clean up all usage of context; also document a few more things

This commit is contained in:
Allen Webster
2021-03-30 21:23:05 -07:00
parent cc38ed2c96
commit e1c0656e73
4 changed files with 44 additions and 67 deletions
+10 -13
View File
@@ -19,8 +19,7 @@
// NOTE(allen): "Plugin" functionality
//
// MD_b32 MD_IMPL_FileIterIncrement(MD_FileIter*, MD_String8, MD_FileInfo*) - optional
// void* MD_IMPL_Alloc(void*,MD_u64) - required
// void* MD_IMPL_GetCtx(void) - optional
// void* MD_IMPL_Alloc(MD_u64) - required
//
// TODO(allen): Commentary about this system somewhere easy to discover when
// you go digging.
@@ -380,17 +379,6 @@ struct MD_CodeLoc
int column;
};
//~ Message Levels
typedef enum MD_MessageKind
{
MD_MessageKind_None,
MD_MessageKind_Warning,
MD_MessageKind_Error,
MD_MessageKind_CatastrophicError,
}
MD_MessageKind;
//~ String-To-Ptr and Ptr-To-Ptr tables
typedef enum MD_MapCollisionRule
@@ -486,6 +474,15 @@ enum{
//~ Parsing State
typedef enum MD_MessageKind
{
MD_MessageKind_None,
MD_MessageKind_Warning,
MD_MessageKind_Error,
MD_MessageKind_CatastrophicError,
}
MD_MessageKind;
typedef struct MD_Error MD_Error;
struct MD_Error
{