From 29c457c3929ac402a517095af9bfaf15b6901f19 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Thu, 10 Jan 2019 22:09:25 +0000 Subject: [PATCH] Moved function declarations to the header they belong in. --- re2c/src/parse/ast.h | 5 ----- re2c/src/parse/parser.h | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/re2c/src/parse/ast.h b/re2c/src/parse/ast.h index ec23822f..a2c282e2 100644 --- a/re2c/src/parse/ast.h +++ b/re2c/src/parse/ast.h @@ -6,7 +6,6 @@ #include #include -#include "src/parse/scanner.h" #include "src/regexp/rule.h" #include "src/util/free_list.h" #include "src/util/range.h" @@ -132,10 +131,6 @@ const AST *ast_cap(const AST *a); const AST *ast_ref(const AST *a, const std::string &n); bool ast_need_wrap(const AST *a); -void validate_mode(Scanner::ParseMode mode, bool rflag, bool rules, Scanner &input); -void validate_ast(const specs_t &specs, const opt_t *opts); -void normalize_ast(specs_t &specs); - } // namespace re2c #endif // _RE2C_AST_AST_ diff --git a/re2c/src/parse/parser.h b/re2c/src/parse/parser.h index dba75fc7..ff0e9e11 100644 --- a/re2c/src/parse/parser.h +++ b/re2c/src/parse/parser.h @@ -26,6 +26,9 @@ struct context_t }; void parse(Scanner &input, specs_t &specs, symtab_t &symtab, Opt &opts); +void validate_mode(Scanner::ParseMode mode, bool rflag, bool rules, Scanner &input); +void validate_ast(const specs_t &specs, const opt_t *opts); +void normalize_ast(specs_t &specs); } // namespace re2c -- 2.40.0