mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-07 08:08:48 +00:00
remove the unused root first/last from parse ctx
This commit is contained in:
@@ -432,8 +432,6 @@ main:
|
|||||||
|
|
||||||
@send(Parsing)
|
@send(Parsing)
|
||||||
@struct MD_ParseCtx: {
|
@struct MD_ParseCtx: {
|
||||||
first_root: *MD_Node,
|
|
||||||
last_root: *MD_Node,
|
|
||||||
first_error: *MD_Error,
|
first_error: *MD_Error,
|
||||||
last_error: *MD_Error,
|
last_error: *MD_Error,
|
||||||
at: *MD_u8,
|
at: *MD_u8,
|
||||||
|
|||||||
@@ -507,8 +507,6 @@ enum
|
|||||||
typedef struct MD_ParseCtx MD_ParseCtx;
|
typedef struct MD_ParseCtx MD_ParseCtx;
|
||||||
struct MD_ParseCtx
|
struct MD_ParseCtx
|
||||||
{
|
{
|
||||||
MD_Node *first_root;
|
|
||||||
MD_Node *last_root;
|
|
||||||
MD_Error *first_error;
|
MD_Error *first_error;
|
||||||
MD_Error *last_error;
|
MD_Error *last_error;
|
||||||
MD_u8 *at;
|
MD_u8 *at;
|
||||||
|
|||||||
@@ -1139,7 +1139,6 @@ MD_FUNCTION_IMPL MD_ParseCtx
|
|||||||
MD_Parse_InitializeCtx(MD_String8 filename, MD_String8 contents)
|
MD_Parse_InitializeCtx(MD_String8 filename, MD_String8 contents)
|
||||||
{
|
{
|
||||||
MD_ParseCtx ctx = MD_ZERO_STRUCT;
|
MD_ParseCtx ctx = MD_ZERO_STRUCT;
|
||||||
ctx.first_root = ctx.last_root = MD_NilNode();
|
|
||||||
ctx.at = contents.str;
|
ctx.at = contents.str;
|
||||||
ctx.file_contents = contents;
|
ctx.file_contents = contents;
|
||||||
ctx.filename = filename;
|
ctx.filename = filename;
|
||||||
|
|||||||
Reference in New Issue
Block a user