From 0f644ae635387b2f5def29d29d3bc019c0846790 Mon Sep 17 00:00:00 2001 From: Paulo Custodio Date: Sat, 5 Nov 2016 00:24:02 +0000 Subject: [PATCH] Inconsistent forward declaration of struct/class vs definition structs State and OutputFile forward declared as class. classes Range, RegExp and RuleOp forward declared as struct. Fixed forward declarations. --- re2c/src/codegen/bitmap.h | 4 ++-- re2c/src/codegen/go.h | 2 +- re2c/src/ir/adfa/action.h | 2 +- re2c/src/ir/nfa/nfa.h | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/re2c/src/codegen/bitmap.h b/re2c/src/codegen/bitmap.h index 3c0cc1be..17d7a852 100644 --- a/re2c/src/codegen/bitmap.h +++ b/re2c/src/codegen/bitmap.h @@ -10,8 +10,8 @@ namespace re2c struct Go; struct Span; -class State; -class OutputFile; +struct State; +struct OutputFile; class BitMap { diff --git a/re2c/src/codegen/go.h b/re2c/src/codegen/go.h index 57c29e8b..21f1be97 100644 --- a/re2c/src/codegen/go.h +++ b/re2c/src/codegen/go.h @@ -13,7 +13,7 @@ namespace re2c { class BitMap; -class State; +struct State; struct If; struct Span diff --git a/re2c/src/ir/adfa/action.h b/re2c/src/ir/adfa/action.h index abc2d990..3fe01ed7 100644 --- a/re2c/src/ir/adfa/action.h +++ b/re2c/src/ir/adfa/action.h @@ -12,7 +12,7 @@ namespace re2c struct OutputFile; class RuleOp; -class State; +struct State; struct Initial { diff --git a/re2c/src/ir/nfa/nfa.h b/re2c/src/ir/nfa/nfa.h index 28587f41..535348ba 100644 --- a/re2c/src/ir/nfa/nfa.h +++ b/re2c/src/ir/nfa/nfa.h @@ -8,9 +8,9 @@ namespace re2c { -struct Range; -struct RegExp; -struct RuleOp; +class Range; +class RegExp; +class RuleOp; struct nfa_state_t { -- 2.40.0