From 952cf7dc991f9fef7ad267ff5721f928c0b2254f Mon Sep 17 00:00:00 2001 From: k-hara Date: Sat, 9 Aug 2014 19:54:34 +0900 Subject: [PATCH] [Refactoring] Move toCBuffer(Statement *, ...) prototype into hdrgen.h --- src/hdrgen.h | 1 + src/statement.h | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hdrgen.h b/src/hdrgen.h index 9ae6936e0231..787ddb5cf921 100644 --- a/src/hdrgen.h +++ b/src/hdrgen.h @@ -25,6 +25,7 @@ struct HdrGenState HdrGenState() { memset(this, 0, sizeof(HdrGenState)); } }; +void toCBuffer(Statement *s, OutBuffer *buf, HdrGenState *hgs); void toCBuffer(Type *t, OutBuffer *buf, Identifier *ident, HdrGenState *hgs); void functionToBufferFull(TypeFunction *tf, OutBuffer *buf, Identifier *ident, HdrGenState* hgs, TemplateDeclaration *td); diff --git a/src/statement.h b/src/statement.h index 6c8e53a50457..4108fb3f9ea9 100644 --- a/src/statement.h +++ b/src/statement.h @@ -48,7 +48,6 @@ class TryFinallyStatement; class CaseStatement; class DefaultStatement; class LabelStatement; -struct HdrGenState; struct InterState; struct CompiledCtfeFunction; @@ -82,8 +81,6 @@ enum BE BEany = (BEfallthru | BEthrow | BEreturn | BEgoto | BEhalt), }; -void toCBuffer(Statement *s, OutBuffer *buf, HdrGenState *hgs); - class Statement : public RootObject { public: