Mercurial > projects > ldc
comparison dmd/attrib.h @ 336:aaade6ded589 trunk
[svn r357] Merged DMD 1.033
author | lindquist |
---|---|
date | Sat, 12 Jul 2008 19:38:31 +0200 |
parents | 788401029ecf |
children | 20a5180f2e80 |
comparison
equal
deleted
inserted
replaced
335:17b844102023 | 336:aaade6ded589 |
---|---|
40 void semantic2(Scope *sc); | 40 void semantic2(Scope *sc); |
41 void semantic3(Scope *sc); | 41 void semantic3(Scope *sc); |
42 void inlineScan(); | 42 void inlineScan(); |
43 void addComment(unsigned char *comment); | 43 void addComment(unsigned char *comment); |
44 void emitComment(Scope *sc); | 44 void emitComment(Scope *sc); |
45 char *kind(); | 45 const char *kind(); |
46 int oneMember(Dsymbol **ps); | 46 int oneMember(Dsymbol **ps); |
47 int hasPointers(); | 47 int hasPointers(); |
48 void checkCtorConstInit(); | 48 void checkCtorConstInit(); |
49 void addLocalClass(ClassDeclarations *); | 49 void addLocalClass(ClassDeclarations *); |
50 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 50 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |
51 AttribDeclaration *isAttribDeclaration() { return this; } | 51 AttribDeclaration *isAttribDeclaration() { return this; } |
52 | 52 |
53 void toObjFile(); // compile to .obj file | 53 void toObjFile(int multiobj); // compile to .obj file |
54 int cvMember(unsigned char *p); | 54 int cvMember(unsigned char *p); |
55 }; | 55 }; |
56 | 56 |
57 struct StorageClassDeclaration: AttribDeclaration | 57 struct StorageClassDeclaration: AttribDeclaration |
58 { | 58 { |
104 | 104 |
105 AnonDeclaration(Loc loc, int isunion, Array *decl); | 105 AnonDeclaration(Loc loc, int isunion, Array *decl); |
106 Dsymbol *syntaxCopy(Dsymbol *s); | 106 Dsymbol *syntaxCopy(Dsymbol *s); |
107 void semantic(Scope *sc); | 107 void semantic(Scope *sc); |
108 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 108 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |
109 char *kind(); | 109 const char *kind(); |
110 }; | 110 }; |
111 | 111 |
112 struct PragmaDeclaration : AttribDeclaration | 112 struct PragmaDeclaration : AttribDeclaration |
113 { | 113 { |
114 Expressions *args; // array of Expression's | 114 Expressions *args; // array of Expression's |
116 PragmaDeclaration(Loc loc, Identifier *ident, Expressions *args, Array *decl); | 116 PragmaDeclaration(Loc loc, Identifier *ident, Expressions *args, Array *decl); |
117 Dsymbol *syntaxCopy(Dsymbol *s); | 117 Dsymbol *syntaxCopy(Dsymbol *s); |
118 void semantic(Scope *sc); | 118 void semantic(Scope *sc); |
119 int oneMember(Dsymbol **ps); | 119 int oneMember(Dsymbol **ps); |
120 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 120 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |
121 char *kind(); | 121 const char *kind(); |
122 void toObjFile(); // compile to .obj file | 122 void toObjFile(int multiobj); // compile to .obj file |
123 }; | 123 }; |
124 | 124 |
125 struct ConditionalDeclaration : AttribDeclaration | 125 struct ConditionalDeclaration : AttribDeclaration |
126 { | 126 { |
127 Condition *condition; | 127 Condition *condition; |
143 | 143 |
144 StaticIfDeclaration(Condition *condition, Array *decl, Array *elsedecl); | 144 StaticIfDeclaration(Condition *condition, Array *decl, Array *elsedecl); |
145 Dsymbol *syntaxCopy(Dsymbol *s); | 145 Dsymbol *syntaxCopy(Dsymbol *s); |
146 int addMember(Scope *sc, ScopeDsymbol *s, int memnum); | 146 int addMember(Scope *sc, ScopeDsymbol *s, int memnum); |
147 void semantic(Scope *sc); | 147 void semantic(Scope *sc); |
148 char *kind(); | 148 const char *kind(); |
149 }; | 149 }; |
150 | 150 |
151 // Mixin declarations | 151 // Mixin declarations |
152 | 152 |
153 struct CompileDeclaration : AttribDeclaration | 153 struct CompileDeclaration : AttribDeclaration |
154 { | 154 { |
155 Expression *exp; | 155 Expression *exp; |
156 | 156 |
157 ScopeDsymbol *sd; | 157 ScopeDsymbol *sd; |
158 int compiled; | |
158 | 159 |
159 CompileDeclaration(Loc loc, Expression *exp); | 160 CompileDeclaration(Loc loc, Expression *exp); |
160 Dsymbol *syntaxCopy(Dsymbol *s); | 161 Dsymbol *syntaxCopy(Dsymbol *s); |
161 int addMember(Scope *sc, ScopeDsymbol *sd, int memnum); | 162 int addMember(Scope *sc, ScopeDsymbol *sd, int memnum); |
163 void compileIt(Scope *sc); | |
162 void semantic(Scope *sc); | 164 void semantic(Scope *sc); |
163 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 165 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |
164 }; | 166 }; |
165 | 167 |
166 #endif /* DMD_ATTRIB_H */ | 168 #endif /* DMD_ATTRIB_H */ |