Skip to content

Commit

Permalink
Move declarations for functions only called by the glue layer out of …
Browse files Browse the repository at this point in the history
…the frontend
  • Loading branch information
yebblies committed Oct 9, 2015
1 parent 43c73c1 commit 6267d62
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/backend.d
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ alias list_t = LIST*;
alias type = TYPE;

extern extern (C++) type* type_fake(tym_t);
extern extern (C++) uint totym(Type tx);
extern extern (C++) void type_incCount(type* t);
extern extern (C++) void type_setIdent(type* t, char* ident);

Expand Down
1 change: 1 addition & 0 deletions src/e2ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "ctfe.h"

typedef Array<elem *> Elems;
RET retStyle(TypeFunction *tf);

elem *addressElem(elem *e, Type *t, bool alwaysCopy = false);
elem *array_toPtr(Type *t, elem *e);
Expand Down
1 change: 1 addition & 0 deletions src/glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "irstate.h"

void clearStringTab();
RET retStyle(TypeFunction *tf);

elem *addressElem(elem *e, Type *t, bool alwaysCopy = false);
void Statement_toIR(Statement *s, IRState *irs);
Expand Down
2 changes: 0 additions & 2 deletions src/mtype.h
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,6 @@ enum PURE
PUREstrong = 4, // parameters are values or immutable
};

RET retStyle(TypeFunction *tf);

class TypeFunction : public TypeNext
{
public:
Expand Down
1 change: 1 addition & 0 deletions src/s2ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ elem *toElemDtor(Expression *e, IRState *irs);
Symbol *toSymbol(Type *t);
unsigned totym(Type *tx);
Symbol *toSymbol(Dsymbol *s);
RET retStyle(TypeFunction *tf);

#define elem_setLoc(e,loc) srcpos_setLoc(&(e)->Esrcpos, loc)
#define block_setLoc(b,loc) srcpos_setLoc(&(b)->Bsrcpos, loc)
Expand Down
2 changes: 2 additions & 0 deletions src/toctype.d
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import ddmd.id;
import ddmd.mtype;
import ddmd.visitor;

extern extern (C++) uint totym(Type tx);

extern (C++) final class ToCtypeVisitor : Visitor
{
alias visit = super.visit;
Expand Down

0 comments on commit 6267d62

Please sign in to comment.