summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-11-13 11:05:47 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-11-13 11:05:47 -0800
commit5cbede7a725b8b72779a5a4bd38d49a2d01fc022 (patch)
tree41c2de13183fd337c4fbdabbc16d07a3377a2a46 /src/inlines.c
parent7861d82c6fcfb3f813e642c0f59318eb4f9f5332 (diff)
inline static -> static inline for consistency.
Diffstat (limited to 'src/inlines.c')
-rw-r--r--src/inlines.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/inlines.c b/src/inlines.c
index a8756ff..5b7b8ea 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -63,12 +63,12 @@ static inline node_inl *make_link_(node_inl *label, unsigned char *url, unsigned
return e;
}
-inline static node_inl* make_autolink(node_inl* label, chunk url, int is_email)
+static inline node_inl* make_autolink(node_inl* label, chunk url, int is_email)
{
return make_link_(label, clean_autolink(&url, is_email), NULL);
}
-inline static node_inl* make_inlines(int t, node_inl* contents)
+static inline node_inl* make_inlines(int t, node_inl* contents)
{
node_inl * e = calloc(1, sizeof(*e));
if(e != NULL) {
@@ -80,7 +80,7 @@ inline static node_inl* make_inlines(int t, node_inl* contents)
}
// Create an inline with a literal string value.
-inline static node_inl* make_literal(int t, chunk s)
+static inline node_inl* make_literal(int t, chunk s)
{
node_inl * e = calloc(1, sizeof(*e));
if(e != NULL) {
@@ -92,7 +92,7 @@ inline static node_inl* make_literal(int t, chunk s)
}
// Create an inline with no value.
-inline static node_inl* make_simple(int t)
+static inline node_inl* make_simple(int t)
{
node_inl* e = calloc(1, sizeof(*e));
if(e != NULL) {
@@ -113,7 +113,7 @@ inline static node_inl* make_simple(int t)
// Append inline list b to the end of inline list a.
// Return pointer to head of new list.
-inline static node_inl* append_inlines(node_inl* a, node_inl* b)
+static inline node_inl* append_inlines(node_inl* a, node_inl* b)
{
if (a == NULL) { // NULL acts like an empty list
return b;
@@ -138,7 +138,7 @@ static void subject_from_buf(subject *e, strbuf *buffer, reference_map *refmap)
chunk_rtrim(&e->input);
}
-inline static int isbacktick(int c)
+static inline int isbacktick(int c)
{
return (c == '`');
}
@@ -154,7 +154,7 @@ static inline unsigned char peek_at(subject *subj, int pos)
}
// Return true if there are more characters in the subject.
-inline static int is_eof(subject* subj)
+static inline int is_eof(subject* subj)
{
return (subj->pos >= subj->input.len);
}
@@ -163,7 +163,7 @@ inline static int is_eof(subject* subj)
#define advance(subj) (subj)->pos += 1
// Take characters while a predicate holds, and return a string.
-inline static chunk take_while(subject* subj, int (*f)(int))
+static inline chunk take_while(subject* subj, int (*f)(int))
{
unsigned char c;
int startpos = subj->pos;