From e9436ce07e3b47b4969e34f1cbbfdf536ad26986 Mon Sep 17 00:00:00 2001 From: ryanfleury Date: Thu, 17 Feb 2022 14:19:03 -0700 Subject: [PATCH] correct a few issues in the api reference & remove old prototype for MD_MakeDetachedError --- docs/metadesk_reference.mdesk | 21 ++------------------- source/md.h | 2 -- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/docs/metadesk_reference.mdesk b/docs/metadesk_reference.mdesk index aa942dd..db40f6c 100644 --- a/docs/metadesk_reference.mdesk +++ b/docs/metadesk_reference.mdesk @@ -621,8 +621,6 @@ The @code node_count and @code total_size are automatically maintained by the he string: MD_String8, @doc("The raw string of the token labeling this node.") raw_string: MD_String8, - @doc("A hash of the string field using the metadesk built in hash function.") - string_hash: MD_u64, @doc("The raw string of the comment token before this node, if there is one.") prev_comment: MD_String8, @@ -1986,22 +1984,6 @@ MD_MakeNodeError: return: *MD_Message } -@send(Parsing) @func -@doc("Allocates and initializes an MD_Message associated with a user-controlled pointer.") -@see(MD_Message) -MD_MakeDetachedError: -{ - @doc("The arena onto which the returned message should be allocated.") - arena: *MD_Arena, - @doc("The node associated with the message.") - node: *MD_Node; - @doc("The message kind, encoding its severity.") - kind: MD_MessageKind; - @doc("The string for the message.") - str: MD_String8; - return: *MD_Message -} - @send(Parsing) @func @doc("Allocates and initializes an MD_Message associated with a particular MD_Token.") @see(MD_Message) @@ -2100,6 +2082,7 @@ MD_MessageListConcat: @doc("Creates a new reference node, pointing at @code 'target', and links it up as a child of @code 'list'.") @func MD_PushNewReference: { + arena: *M_Arena, list: *MD_Node, target: *MD_Node, return: *MD_Node, @@ -2254,7 +2237,7 @@ MD_MessageListConcat: @doc("Controls what is considered a string match, when finding the appropriate tag.") tag_str_flags: MD_MatchFlags, @doc("The string that the found tag argument should match.") - arg_string: int, + arg_string: MD_String8, @doc("Controls what is considered a string match, when finding the appropriate tag argument.") arg_str_flags: MD_MatchFlags, @doc("The found node, or a nil node pointer if no such node was found.") diff --git a/source/md.h b/source/md.h index fed6214..ce704a2 100644 --- a/source/md.h +++ b/source/md.h @@ -1097,8 +1097,6 @@ MD_FUNCTION MD_Node* MD_MakeErrorMarkerNode(MD_Arena *arena, MD_String8 parse_ MD_FUNCTION MD_Message*MD_MakeNodeError(MD_Arena *arena, MD_Node *node, MD_MessageKind kind, MD_String8 str); -MD_FUNCTION MD_Message*MD_MakeDetachedError(MD_Arena *arena, MD_MessageKind kind, - MD_String8 str, void *ptr); MD_FUNCTION MD_Message*MD_MakeTokenError(MD_Arena *arena, MD_String8 parse_contents, MD_Token token, MD_MessageKind kind, MD_String8 str);