From: Paulo Custodio Date: Sat, 5 Nov 2016 00:24:02 +0000 (+0000) Subject: Inconsistent forward declaration of struct/class vs definition X-Git-Tag: 1.0~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F159%2Fhead;p=re2c 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. --- 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 {