Mercurial > projects > ldc
comparison dmd/declaration.h @ 1607:207a8a438dea
Merge DMD r253: refactor: Argument => Parameter
---
dmd/arrayop.c | 30 ++++----
dmd/arraytypes.h | 2 +-
dmd/class.c | 8 +-
dmd/declaration.c | 10 ++--
dmd/declaration.h | 16 ++--
dmd/doc.c | 12 ++--
dmd/dsymbol.c | 4 +-
dmd/expression.c | 48 +++++++-------
dmd/expression.h | 32 +++++-----
dmd/func.c | 78 +++++++++++-----------
dmd/init.c | 2 +-
dmd/interpret.c | 8 +-
dmd/mtype.c | 190 ++++++++++++++++++++++++++--------------------------
dmd/mtype.h | 32 +++++-----
dmd/opover.c | 34 +++++-----
dmd/parse.c | 40 ++++++------
dmd/parse.h | 2 +-
dmd/statement.c | 90 +++++++++++++-------------
dmd/statement.h | 14 ++--
dmd/struct.c | 8 +-
dmd/template.c | 30 ++++----
gen/functions.cpp | 10 ++--
gen/functions.h | 2 +-
gen/tocall.cpp | 10 ++--
gen/typinf.cpp | 6 +-
25 files changed, 359 insertions(+), 359 deletions(-)
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 15:18:20 -0300 |
parents | a413ae7329bf |
children | 6820110de311 |
comparison
equal
deleted
inserted
replaced
1606:1b24e9c7cc26 | 1607:207a8a438dea |
---|---|
763 int needsClosure(); | 763 int needsClosure(); |
764 Statement *mergeFrequire(Statement *); | 764 Statement *mergeFrequire(Statement *); |
765 Statement *mergeFensure(Statement *); | 765 Statement *mergeFensure(Statement *); |
766 | 766 |
767 // LDC: give argument types to runtime functions | 767 // LDC: give argument types to runtime functions |
768 static FuncDeclaration *genCfunc(Arguments *args, Type *treturn, const char *name); | 768 static FuncDeclaration *genCfunc(Parameters *args, Type *treturn, const char *name); |
769 static FuncDeclaration *genCfunc(Arguments *args, Type *treturn, Identifier *id); | 769 static FuncDeclaration *genCfunc(Parameters *args, Type *treturn, Identifier *id); |
770 | 770 |
771 #if IN_DMD | 771 #if IN_DMD |
772 Symbol *toSymbol(); | 772 Symbol *toSymbol(); |
773 Symbol *toThunkSymbol(int offset); // thunk version | 773 Symbol *toThunkSymbol(int offset); // thunk version |
774 void toObjFile(int multiobj); // compile to .obj file | 774 void toObjFile(int multiobj); // compile to .obj file |
846 FuncLiteralDeclaration *isFuncLiteralDeclaration() { return this; } | 846 FuncLiteralDeclaration *isFuncLiteralDeclaration() { return this; } |
847 const char *kind(); | 847 const char *kind(); |
848 }; | 848 }; |
849 | 849 |
850 struct CtorDeclaration : FuncDeclaration | 850 struct CtorDeclaration : FuncDeclaration |
851 { Arguments *arguments; | 851 { Parameters *arguments; |
852 int varargs; | 852 int varargs; |
853 | 853 |
854 CtorDeclaration(Loc loc, Loc endloc, Arguments *arguments, int varargs); | 854 CtorDeclaration(Loc loc, Loc endloc, Parameters *arguments, int varargs); |
855 Dsymbol *syntaxCopy(Dsymbol *); | 855 Dsymbol *syntaxCopy(Dsymbol *); |
856 void semantic(Scope *sc); | 856 void semantic(Scope *sc); |
857 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 857 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |
858 const char *kind(); | 858 const char *kind(); |
859 char *toChars(); | 859 char *toChars(); |
967 | 967 |
968 UnitTestDeclaration *isUnitTestDeclaration() { return this; } | 968 UnitTestDeclaration *isUnitTestDeclaration() { return this; } |
969 }; | 969 }; |
970 | 970 |
971 struct NewDeclaration : FuncDeclaration | 971 struct NewDeclaration : FuncDeclaration |
972 { Arguments *arguments; | 972 { Parameters *arguments; |
973 int varargs; | 973 int varargs; |
974 | 974 |
975 NewDeclaration(Loc loc, Loc endloc, Arguments *arguments, int varargs); | 975 NewDeclaration(Loc loc, Loc endloc, Parameters *arguments, int varargs); |
976 Dsymbol *syntaxCopy(Dsymbol *); | 976 Dsymbol *syntaxCopy(Dsymbol *); |
977 void semantic(Scope *sc); | 977 void semantic(Scope *sc); |
978 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 978 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |
979 const char *kind(); | 979 const char *kind(); |
980 int isVirtual(); | 980 int isVirtual(); |
984 NewDeclaration *isNewDeclaration() { return this; } | 984 NewDeclaration *isNewDeclaration() { return this; } |
985 }; | 985 }; |
986 | 986 |
987 | 987 |
988 struct DeleteDeclaration : FuncDeclaration | 988 struct DeleteDeclaration : FuncDeclaration |
989 { Arguments *arguments; | 989 { Parameters *arguments; |
990 | 990 |
991 DeleteDeclaration(Loc loc, Loc endloc, Arguments *arguments); | 991 DeleteDeclaration(Loc loc, Loc endloc, Parameters *arguments); |
992 Dsymbol *syntaxCopy(Dsymbol *); | 992 Dsymbol *syntaxCopy(Dsymbol *); |
993 void semantic(Scope *sc); | 993 void semantic(Scope *sc); |
994 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 994 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |
995 const char *kind(); | 995 const char *kind(); |
996 int isDelete(); | 996 int isDelete(); |