Skip to content

Commit

Permalink
[Refactoring] Move toCBuffer(Statement *, ...) prototype into hdrgen.h
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Aug 9, 2014
1 parent abe01ba commit 952cf7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/hdrgen.h
Expand Up @@ -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);
3 changes: 0 additions & 3 deletions src/statement.h
Expand Up @@ -48,7 +48,6 @@ class TryFinallyStatement;
class CaseStatement;
class DefaultStatement;
class LabelStatement;
struct HdrGenState;
struct InterState;
struct CompiledCtfeFunction;

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 952cf7d

Please sign in to comment.