From d68953cb26ad9617a39fb6b0a94868b756549372 Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Thu, 5 Jul 2018 19:52:22 +1200 Subject: [PATCH] Declare tag and content stream functions before defining as they depend on each other --- src/main/c/stream/content.c | 3 +++ src/main/c/stream/tag.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/main/c/stream/content.c b/src/main/c/stream/content.c index ab80ad8..0995de1 100644 --- a/src/main/c/stream/content.c +++ b/src/main/c/stream/content.c @@ -4,6 +4,9 @@ #include "../util/hbchar.h" #include "../util/pipe.c" +// Declare first before tag.c, as tag.c depends on it +void hbs_content(hbu_pipe_t pipe); + #include "./tag.c" void hbs_content(hbu_pipe_t pipe) { diff --git a/src/main/c/stream/tag.c b/src/main/c/stream/tag.c index 414d443..3ad3294 100644 --- a/src/main/c/stream/tag.c +++ b/src/main/c/stream/tag.c @@ -7,6 +7,9 @@ #include "../util/pipe.c" #include "./helper/tagname.c" +// Declare first before content.c, as content.c depends on it +void hbs_tag(hbu_pipe_t pipe); + #include "./content.c" void hbs_tag(hbu_pipe_t pipe) {