diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-12 18:33:39 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-12 19:46:09 +0100 |
commit | 6846f65f182b9c927ed8db500341a9f403e8df8e (patch) | |
tree | 52cfebc29f6fe9ff9e9c08df059d4e9bbbe41bc2 | |
parent | 6b262ef85ecf7bda5fbe36d102808475e0c5793d (diff) |
Mark some functions as static
-rw-r--r-- | src/blocks.c | 6 | ||||
-rw-r--r-- | src/inlines.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/blocks.c b/src/blocks.c index ccb84a7..a70f5f8 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -33,7 +33,7 @@ static node_block* make_block(int tag, int start_line, int start_column) } // Create a root document node_block. -extern node_block* make_document() +static node_block* make_document() { node_block *e = make_block(BLOCK_DOCUMENT, 1, 1); e->as.document.refmap = reference_map_new(); @@ -43,7 +43,7 @@ extern node_block* make_document() } // Returns true if line has only space characters, else false. -bool is_blank(strbuf *s, int offset) +static bool is_blank(strbuf *s, int offset) { while (offset < s->size) { switch (s->ptr[offset]) { @@ -283,7 +283,7 @@ typedef struct BlockStack { // Walk through node_block and all children, recursively, parsing // string content into inline content where appropriate. -void process_inlines(node_block* cur, reference_map *refmap) +static void process_inlines(node_block* cur, reference_map *refmap) { block_stack* stack = NULL; block_stack* newstack = NULL; diff --git a/src/inlines.c b/src/inlines.c index 71e577b..ecea199 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -112,7 +112,7 @@ inline static node_inl* make_simple(int t) #define make_strong(contents) make_inlines(INL_STRONG, contents) // Utility function used by free_inlines -void splice_into_list(node_inl* e, node_inl* children) { +static void splice_into_list(node_inl* e, node_inl* children) { node_inl * tmp; if (children) { tmp = children; @@ -952,7 +952,7 @@ extern node_inl* parse_inlines(strbuf *input, reference_map *refmap) } // Parse zero or more space characters, including at most one newline. -void spnl(subject* subj) +static void spnl(subject* subj) { bool seen_newline = false; while (peek_char(subj) == ' ' || |