Changeset 204
- Timestamp:
- 10/12/09 22:06:11 (2 years ago)
- Files:
-
- branches/dmd-1.x/src/aggregate.h (modified) (2 diffs)
- branches/dmd-1.x/src/attrib.h (modified) (2 diffs)
- branches/dmd-1.x/src/declaration.h (modified) (9 diffs)
- branches/dmd-1.x/src/dsymbol.h (modified) (1 diff)
- branches/dmd-1.x/src/enum.h (modified) (3 diffs)
- branches/dmd-1.x/src/freebsd.mak (modified) (4 diffs)
- branches/dmd-1.x/src/json.c (added)
- branches/dmd-1.x/src/json.h (added)
- branches/dmd-1.x/src/linux.mak (modified) (4 diffs)
- branches/dmd-1.x/src/mars.c (modified) (12 diffs)
- branches/dmd-1.x/src/mars.h (modified) (3 diffs)
- branches/dmd-1.x/src/module.h (modified) (1 diff)
- branches/dmd-1.x/src/osx.mak (modified) (5 diffs)
- branches/dmd-1.x/src/template.h (modified) (1 diff)
- branches/dmd-1.x/src/win32.mak (modified) (4 diffs)
- trunk/src/aggregate.h (modified) (1 diff)
- trunk/src/attrib.h (modified) (2 diffs)
- trunk/src/declaration.h (modified) (9 diffs)
- trunk/src/dsymbol.h (modified) (1 diff)
- trunk/src/enum.h (modified) (2 diffs)
- trunk/src/json.c (added)
- trunk/src/json.h (added)
- trunk/src/linux.mak (modified) (4 diffs)
- trunk/src/mars.c (modified) (11 diffs)
- trunk/src/mars.h (modified) (3 diffs)
- trunk/src/module.c (modified) (2 diffs)
- trunk/src/module.h (modified) (1 diff)
- trunk/src/osx.mak (modified) (4 diffs)
- trunk/src/template.h (modified) (1 diff)
- trunk/src/win32.mak (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dmd-1.x/src/aggregate.h
r190 r204 57 57 DeleteDeclaration *aggDelete; // deallocator 58 58 59 #if DMDV2 60 //CtorDeclaration *ctor; 61 Dsymbol *ctor; // CtorDeclaration or TemplateDeclaration 62 CtorDeclaration *defaultCtor; // default constructor 63 Dsymbol *aliasthis; // forward unresolved lookups to aliasthis 64 #endif 65 59 66 FuncDeclarations dtors; // Array of destructors 60 67 FuncDeclaration *dtor; // aggregate destructor … … 76 83 77 84 void emitComment(Scope *sc); 85 void toJsonBuffer(OutBuffer *buf); 78 86 void toDocBuffer(OutBuffer *buf); 79 87 branches/dmd-1.x/src/attrib.h
r203 r204 55 55 void addLocalClass(ClassDeclarations *); 56 56 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 57 void toJsonBuffer(OutBuffer *buf); 57 58 AttribDeclaration *isAttribDeclaration() { return this; } 58 59 … … 150 151 void addComment(unsigned char *comment); 151 152 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 153 void toJsonBuffer(OutBuffer *buf); 152 154 void importAll(Scope *sc); 153 155 void setScope(Scope *sc); branches/dmd-1.x/src/declaration.h
r197 r204 111 111 112 112 void emitComment(Scope *sc); 113 void toJsonBuffer(OutBuffer *buf); 113 114 void toDocBuffer(OutBuffer *buf); 114 115 … … 308 309 309 310 void emitComment(Scope *sc); 311 void toJsonBuffer(OutBuffer *buf); 310 312 311 313 Symbol *toSymbol(); … … 321 323 322 324 void emitComment(Scope *sc); 325 void toJsonBuffer(OutBuffer *buf); 323 326 324 327 Symbol *toSymbol(); … … 334 337 335 338 void emitComment(Scope *sc); 339 void toJsonBuffer(OutBuffer *buf); 336 340 337 341 Symbol *toSymbol(); … … 681 685 int overloadInsert(Dsymbol *s); 682 686 void emitComment(Scope *sc); 687 void toJsonBuffer(OutBuffer *buf); 683 688 684 689 PostBlitDeclaration *isPostBlitDeclaration() { return this; } … … 700 705 int overloadInsert(Dsymbol *s); 701 706 void emitComment(Scope *sc); 707 void toJsonBuffer(OutBuffer *buf); 702 708 703 709 DtorDeclaration *isDtorDeclaration() { return this; } … … 715 721 int addPostInvariant(); 716 722 void emitComment(Scope *sc); 723 void toJsonBuffer(OutBuffer *buf); 717 724 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 718 725 … … 732 739 int addPostInvariant(); 733 740 void emitComment(Scope *sc); 741 void toJsonBuffer(OutBuffer *buf); 734 742 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 735 743 … … 746 754 int addPostInvariant(); 747 755 void emitComment(Scope *sc); 756 void toJsonBuffer(OutBuffer *buf); 748 757 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 749 758 branches/dmd-1.x/src/dsymbol.h
r203 r204 144 144 virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 145 145 virtual void toDocBuffer(OutBuffer *buf); 146 virtual void toJsonBuffer(OutBuffer *buf); 146 147 virtual unsigned size(Loc loc); 147 148 virtual int isforwardRef(); branches/dmd-1.x/src/enum.h
r190 r204 28 28 29 29 struct EnumDeclaration : ScopeDsymbol 30 { 30 { /* enum ident : memtype { ... } 31 */ 31 32 Type *type; // the TypeEnum 32 33 Type *memtype; // type of the members … … 56 57 57 58 void emitComment(Scope *sc); 59 void toJsonBuffer(OutBuffer *buf); 58 60 void toDocBuffer(OutBuffer *buf); 59 61 … … 79 81 80 82 void emitComment(Scope *sc); 83 void toJsonBuffer(OutBuffer *buf); 81 84 void toDocBuffer(OutBuffer *buf); 82 85 branches/dmd-1.x/src/freebsd.mak
r189 r204 38 38 hdrgen.o delegatize.o aa.o ti_achar.o toir.o interpret.o traits.o \ 39 39 builtin.o clone.o aliasthis.o \ 40 man.o arrayop.o port.o response.o async.o \40 man.o arrayop.o port.o response.o async.o json.o \ 41 41 libelf.o elfobj.o 42 42 … … 57 57 delegatize.c toir.h toir.c interpret.c traits.c cppmangle.c \ 58 58 builtin.c clone.c lib.h libomf.c libelf.c libmach.c arrayop.c \ 59 aliasthis.h aliasthis.c \59 aliasthis.h aliasthis.c json.h json.c \ 60 60 $C/cdef.h $C/cc.h $C/oper.h $C/ty.h $C/optabgen.c \ 61 61 $C/global.h $C/parser.h $C/code.h $C/type.h $C/dt.h $C/cgcv.h \ … … 342 342 343 343 interpret.o: interpret.c 344 $(CC) -c $(CFLAGS) $< 345 346 json.o: json.c 344 347 $(CC) -c $(CFLAGS) $< 345 348 … … 531 534 gcov interpret.c 532 535 gcov irstate.c 536 gcov json.c 533 537 gcov lexer.c 534 538 gcov libelf.c branches/dmd-1.x/src/linux.mak
r189 r204 38 38 hdrgen.o delegatize.o aa.o ti_achar.o toir.o interpret.o traits.o \ 39 39 builtin.o clone.o aliasthis.o \ 40 man.o arrayop.o port.o response.o async.o \40 man.o arrayop.o port.o response.o async.o json.o \ 41 41 libelf.o elfobj.o 42 42 … … 57 57 delegatize.c toir.h toir.c interpret.c traits.c cppmangle.c \ 58 58 builtin.c clone.c lib.h libomf.c libelf.c libmach.c arrayop.c \ 59 aliasthis.h aliasthis.c \59 aliasthis.h aliasthis.c json.h json.c \ 60 60 $C/cdef.h $C/cc.h $C/oper.h $C/ty.h $C/optabgen.c \ 61 61 $C/global.h $C/parser.h $C/code.h $C/type.h $C/dt.h $C/cgcv.h \ … … 342 342 343 343 interpret.o: interpret.c 344 $(CC) -c $(CFLAGS) $< 345 346 json.o: json.c 344 347 $(CC) -c $(CFLAGS) $< 345 348 … … 531 534 gcov interpret.c 532 535 gcov irstate.c 536 gcov json.c 533 537 gcov lexer.c 534 538 gcov libelf.c branches/dmd-1.x/src/mars.c
r203 r204 31 31 #include "lexer.h" 32 32 #include "lib.h" 33 #include "json.h" 33 34 34 35 #if WINDOWS_SEH … … 54 55 doc_ext = "html"; 55 56 ddoc_ext = "ddoc"; 57 json_ext = "json"; 56 58 57 59 #if TARGET_WINDOS … … 225 227 -gc add symbolic debug info, pretend to be C\n\ 226 228 -H generate 'header' file\n\ 227 -Hd hdrdir write 'header' file to hdrdirdirectory\n\229 -Hddirectory write 'header' file to directory\n\ 228 230 -Hffilename write 'header' file to filename\n\ 229 231 --help print help\n\ … … 251 253 -version=ident compile in version code identified by ident\n\ 252 254 -w enable warnings\n\ 255 -X generate JSON file\n\ 256 -Xffilename write JSON file to filename\n\ 253 257 "); 254 258 } … … 317 321 VersionCondition::addPredefinedGlobalIdent("Windows"); 318 322 global.params.isWindows = 1; 323 #if TARGET_NET 324 // TARGET_NET macro is NOT mutually-exclusive with TARGET_WINDOS 325 VersionCondition::addPredefinedGlobalIdent("D_NET"); 326 #endif 319 327 #elif TARGET_LINUX 320 328 VersionCondition::addPredefinedGlobalIdent("Posix"); … … 338 346 #else 339 347 #error "fix this" 340 #endif341 342 #if TARGET_NET343 // TARGET_NET macro is NOT mutually-exclusive with TARGET_WINDOS344 VersionCondition::addPredefinedGlobalIdent("D_NET");345 348 #endif 346 349 … … 497 500 } 498 501 #endif 502 else if (p[1] == 'X') 503 { global.params.doXGeneration = 1; 504 switch (p[2]) 505 { 506 case 'f': 507 if (!p[3]) 508 goto Lnoarg; 509 global.params.xfilename = p + 3; 510 break; 511 512 case 0: 513 break; 514 515 default: 516 goto Lerror; 517 } 518 } 499 519 else if (strcmp(p + 1, "ignore") == 0) 500 520 global.params.ignoreUnsupportedPragmas = 1; … … 880 900 } 881 901 902 if (FileName::equals(ext, global.json_ext)) 903 { 904 global.params.doXGeneration = 1; 905 global.params.xfilename = (char *)files.data[i]; 906 continue; 907 } 908 882 909 #if TARGET_WINDOS 883 910 if (FileName::equals(ext, "res")) … … 1151 1178 1152 1179 // Generate output files 1180 1181 if (global.params.doXGeneration) 1182 json_generate(&modules); 1183 1153 1184 if (global.params.oneobj) 1154 1185 { … … 1253 1284 void getenv_setargv(const char *envvar, int *pargc, char** *pargv) 1254 1285 { 1255 char *env;1256 1286 char *p; 1257 Array *argv; 1258 int argc; 1259 1260 int wildcard; // do wildcard expansion 1287 1261 1288 int instring; 1262 1289 int slash; 1263 1290 char c; 1264 int j; 1265 1266 env = getenv(envvar); 1291 1292 char *env = getenv(envvar); 1267 1293 if (!env) 1268 1294 return; … … 1270 1296 env = mem.strdup(env); // create our own writable copy 1271 1297 1272 argc = *pargc;1273 argv = new Array();1298 int argc = *pargc; 1299 Array *argv = new Array(); 1274 1300 argv->setDim(argc); 1275 1301 … … 1277 1303 argv->data[i] = (void *)(*pargv)[i]; 1278 1304 1279 j = 1; // leave argv[0] alone1305 int j = 1; // leave argv[0] alone 1280 1306 while (1) 1281 1307 { 1282 wildcard = 1;1308 int wildcard = 1; // do wildcard expansion 1283 1309 switch (*env) 1284 1310 { branches/dmd-1.x/src/mars.h
r190 r204 167 167 char *hdrname; // write 'header' file to docname 168 168 169 char doXGeneration; // write JSON file 170 char *xfilename; // write JSON file to xfilename 171 169 172 unsigned debuglevel; // debug level 170 173 Array *debugids; // debug identifiers … … 177 180 const char *defaultlibname; // default library for non-debug builds 178 181 const char *debuglibname; // default library for debug builds 179 180 const char *xmlname; // filename for XML output181 182 182 183 char *moduleDepsFile; // filename for deps output … … 215 216 const char *ddoc_ext; // for Ddoc macro include files 216 217 const char *hdr_ext; // for D 'header' import files 218 const char *json_ext; // for JSON files 217 219 const char *copyright; 218 220 const char *written; branches/dmd-1.x/src/module.h
r203 r204 114 114 115 115 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 116 void toJsonBuffer(OutBuffer *buf); 116 117 const char *kind(); 117 118 void setDocfile(); // set docfile member branches/dmd-1.x/src/osx.mak
r189 r204 7 7 ENVP= MACOSX_DEPLOYMENT_TARGET=10.3 8 8 SDK=/Developer/SDKs/MacOSX10.4u.sdk 9 #SDK=/Developer/SDKs/MacOSX10.6.sdk 9 10 LDFLAGS= -isysroot ${SDK} -Wl,-syslibroot,${SDK} 10 11 … … 43 44 hdrgen.o delegatize.o aa.o ti_achar.o toir.o interpret.o traits.o \ 44 45 builtin.o clone.o aliasthis.o \ 45 man.o arrayop.o port.o response.o async.o \46 man.o arrayop.o port.o response.o async.o json.o \ 46 47 libmach.o machobj.o 47 48 … … 62 63 delegatize.c toir.h toir.c interpret.c traits.c cppmangle.c \ 63 64 builtin.c clone.c lib.h libomf.c libelf.c libmach.c arrayop.c \ 64 aliasthis.h aliasthis.c \65 aliasthis.h aliasthis.c json.h json.c \ 65 66 $C/cdef.h $C/cc.h $C/oper.h $C/ty.h $C/optabgen.c \ 66 67 $C/global.h $C/parser.h $C/code.h $C/type.h $C/dt.h $C/cgcv.h \ … … 347 348 348 349 interpret.o: interpret.c 350 $(CC) -c $(CFLAGS) $< 351 352 json.o: json.c 349 353 $(CC) -c $(CFLAGS) $< 350 354 … … 536 540 gcov interpret.c 537 541 gcov irstate.c 542 gcov json.c 538 543 gcov lexer.c 539 544 gcov libmach.c branches/dmd-1.x/src/template.h
r190 r204 72 72 73 73 void emitComment(Scope *sc); 74 void toJsonBuffer(OutBuffer *buf); 74 75 // void toDocBuffer(OutBuffer *buf); 75 76 branches/dmd-1.x/src/win32.mak
r196 r204 6 6 7 7 D= 8 #DMDSVN=\svnproj\dmd\trunk\src 8 9 DMDSVN=\svnproj\dmd\branches\dmd-1.x\src 9 10 SCROOT=$D\dm … … 80 81 builtin.obj clone.obj libomf.obj arrayop.obj irstate.obj \ 81 82 glue.obj msc.obj ph.obj tk.obj s2ir.obj todt.obj e2ir.obj tocsym.obj \ 82 util.obj bit.obj eh.obj toobj.obj toctype.obj tocvdebug.obj toir.obj 83 util.obj bit.obj eh.obj toobj.obj toctype.obj tocvdebug.obj toir.obj \ 84 json.obj 83 85 84 86 # from C/C++ compiler optimizer and back end … … 114 116 delegatize.c toir.h toir.c interpret.c traits.c builtin.c \ 115 117 clone.c lib.h libomf.c libelf.c libmach.c arrayop.c \ 116 aliasthis.h aliasthis.c 118 aliasthis.h aliasthis.c json.h json.c 117 119 118 120 # From C++ compiler … … 449 451 inline.obj : $(TOTALH) inline.c 450 452 interpret.obj : $(TOTALH) interpret.c 453 json.obj : $(TOTALH) json.h json.c 451 454 lexer.obj : $(TOTALH) lexer.c 452 455 libomf.obj : $(TOTALH) lib.h libomf.c trunk/src/aggregate.h
r192 r204 87 87 88 88 void emitComment(Scope *sc); 89 void toJsonBuffer(OutBuffer *buf); 89 90 void toDocBuffer(OutBuffer *buf); 90 91 trunk/src/attrib.h
r203 r204 55 55 void addLocalClass(ClassDeclarations *); 56 56 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 57 void toJsonBuffer(OutBuffer *buf); 57 58 AttribDeclaration *isAttribDeclaration() { return this; } 58 59 … … 150 151 void addComment(unsigned char *comment); 151 152 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 153 void toJsonBuffer(OutBuffer *buf); 152 154 void importAll(Scope *sc); 153 155 void setScope(Scope *sc); trunk/src/declaration.h
r197 r204 111 111 112 112 void emitComment(Scope *sc); 113 void toJsonBuffer(OutBuffer *buf); 113 114 void toDocBuffer(OutBuffer *buf); 114 115 … … 308 309 309 310 void emitComment(Scope *sc); 311 void toJsonBuffer(OutBuffer *buf); 310 312 311 313 Symbol *toSymbol(); … … 321 323 322 324 void emitComment(Scope *sc); 325 void toJsonBuffer(OutBuffer *buf); 323 326 324 327 Symbol *toSymbol(); … … 334 337 335 338 void emitComment(Scope *sc); 339 void toJsonBuffer(OutBuffer *buf); 336 340 337 341 Symbol *toSymbol(); … … 681 685 int overloadInsert(Dsymbol *s); 682 686 void emitComment(Scope *sc); 687 void toJsonBuffer(OutBuffer *buf); 683 688 684 689 PostBlitDeclaration *isPostBlitDeclaration() { return this; } … … 700 705 int overloadInsert(Dsymbol *s); 701 706 void emitComment(Scope *sc); 707 void toJsonBuffer(OutBuffer *buf); 702 708 703 709 DtorDeclaration *isDtorDeclaration() { return this; } … … 715 721 int addPostInvariant(); 716 722 void emitComment(Scope *sc); 723 void toJsonBuffer(OutBuffer *buf); 717 724 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 718 725 … … 732 739 int addPostInvariant(); 733 740 void emitComment(Scope *sc); 741 void toJsonBuffer(OutBuffer *buf); 734 742 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 735 743 … … 746 754 int addPostInvariant(); 747 755 void emitComment(Scope *sc); 756 void toJsonBuffer(OutBuffer *buf); 748 757 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 749 758 trunk/src/dsymbol.h
r203 r204 144 144 virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 145 145 virtual void toDocBuffer(OutBuffer *buf); 146 virtual void toJsonBuffer(OutBuffer *buf); 146 147 virtual unsigned size(Loc loc); 147 148 virtual int isforwardRef(); trunk/src/enum.h
r192 r204 57 57 58 58 void emitComment(Scope *sc); 59 void toJsonBuffer(OutBuffer *buf); 59 60 void toDocBuffer(OutBuffer *buf); 60 61 … … 81 82 82 83 void emitComment(Scope *sc); 84 void toJsonBuffer(OutBuffer *buf); 83 85 void toDocBuffer(OutBuffer *buf); 84 86 trunk/src/linux.mak
r189 r204 38 38 hdrgen.o delegatize.o aa.o ti_achar.o toir.o interpret.o traits.o \ 39 39 builtin.o clone.o aliasthis.o \ 40 man.o arrayop.o port.o response.o async.o \40 man.o arrayop.o port.o response.o async.o json.o \ 41 41 libelf.o elfobj.o 42 42 … … 57 57 delegatize.c toir.h toir.c interpret.c traits.c cppmangle.c \ 58 58 builtin.c clone.c lib.h libomf.c libelf.c libmach.c arrayop.c \ 59 aliasthis.h aliasthis.c \59 aliasthis.h aliasthis.c json.h json.c \ 60 60 $C/cdef.h $C/cc.h $C/oper.h $C/ty.h $C/optabgen.c \ 61 61 $C/global.h $C/parser.h $C/code.h $C/type.h $C/dt.h $C/cgcv.h \ … … 342 342 343 343 interpret.o: interpret.c 344 $(CC) -c $(CFLAGS) $< 345 346 json.o: json.c 344 347 $(CC) -c $(CFLAGS) $< 345 348 … … 531 534 gcov interpret.c 532 535 gcov irstate.c 536 gcov json.c 533 537 gcov lexer.c 534 538 gcov libelf.c trunk/src/mars.c
r203 r204 31 31 #include "lexer.h" 32 32 #include "lib.h" 33 #include "json.h" 33 34 34 35 #if WINDOWS_SEH … … 54 55 doc_ext = "html"; 55 56 ddoc_ext = "ddoc"; 57 json_ext = "json"; 56 58 57 59 #if TARGET_WINDOS … … 79 81 #endif 80 82 ; 81 version = "v2.03 4";83 version = "v2.035"; 82 84 global.structalign = 8; 83 85 … … 225 227 -gc add symbolic debug info, pretend to be C\n\ 226 228 -H generate 'header' file\n\ 227 -Hd hdrdir write 'header' file to hdrdirdirectory\n\229 -Hddirectory write 'header' file to directory\n\ 228 230 -Hffilename write 'header' file to filename\n\ 229 231 --help print help\n\ … … 252 254 -vtls list all variables going into thread local storage\n\ 253 255 -w enable warnings\n\ 256 -X generate JSON file\n\ 257 -Xffilename write JSON file to filename\n\ 254 258 "); 255 259 } … … 497 501 } 498 502 #endif 503 else if (p[1] == 'X') 504 { global.params.doXGeneration = 1; 505 switch (p[2]) 506 { 507 case 'f': 508 if (!p[3]) 509 goto Lnoarg; 510 global.params.xfilename = p + 3; 511 break; 512 513 case 0: 514 break; 515 516 default: 517 goto Lerror; 518 } 519 } 499 520 else if (strcmp(p + 1, "ignore") == 0) 500 521 global.params.ignoreUnsupportedPragmas = 1; … … 880 901 } 881 902 903 if (FileName::equals(ext, global.json_ext)) 904 { 905 global.params.doXGeneration = 1; 906 global.params.xfilename = (char *)files.data[i]; 907 continue; 908 } 909 882 910 #if TARGET_WINDOS 883 911 if (FileName::equals(ext, "res")) … … 1151 1179 1152 1180 // Generate output files 1181 1182 if (global.params.doXGeneration) 1183 json_generate(&modules); 1184 1153 1185 if (global.params.oneobj) 1154 1186 { … … 1253 1285 void getenv_setargv(const char *envvar, int *pargc, char** *pargv) 1254 1286 { 1255 char *env;1256 1287 char *p; 1257 Array *argv; 1258 int argc; 1259 1260 int wildcard; // do wildcard expansion 1288 1261 1289 int instring; 1262 1290 int slash; 1263 1291 char c; 1264 int j; 1265 1266 env = getenv(envvar); 1292 1293 char *env = getenv(envvar); 1267 1294 if (!env) 1268 1295 return; … … 1270 1297 env = mem.strdup(env); // create our own writable copy 1271 1298 1272 argc = *pargc;1273 argv = new Array();1299 int argc = *pargc; 1300 Array *argv = new Array(); 1274 1301 argv->setDim(argc); 1275 1302 … … 1277 1304 argv->data[i] = (void *)(*pargv)[i]; 1278 1305 1279 j = 1; // leave argv[0] alone1306 int j = 1; // leave argv[0] alone 1280 1307 while (1) 1281 1308 { 1282 wildcard = 1;1309 int wildcard = 1; // do wildcard expansion 1283 1310 switch (*env) 1284 1311 { trunk/src/mars.h
r195 r204 170 170 char *hdrname; // write 'header' file to docname 171 171 172 char doXGeneration; // write JSON file 173 char *xfilename; // write JSON file to xfilename 174 172 175 unsigned debuglevel; // debug level 173 176 Array *debugids; // debug identifiers … … 180 183 const char *defaultlibname; // default library for non-debug builds 181 184 const char *debuglibname; // default library for debug builds 182 183 const char *xmlname; // filename for XML output184 185 185 186 char *moduleDepsFile; // filename for deps output … … 218 219 const char *ddoc_ext; // for Ddoc macro include files 219 220 const char *hdr_ext; // for D 'header' import files 221 const char *json_ext; // for JSON files 220 222 const char *copyright; 221 223 const char *written; trunk/src/module.c
r203 r204 815 815 816 816 void Module::inlineScan() 817 { int i; 818 817 { 819 818 if (semanticstarted >= 4) 820 819 return; … … 827 826 //printf("Module = %p\n", sc.scopesym); 828 827 829 for (i = 0; i < members->dim; i++) 830 { Dsymbol *s; 831 832 s = (Dsymbol *)members->data[i]; 828 for (int i = 0; i < members->dim; i++) 829 { Dsymbol *s = (Dsymbol *)members->data[i]; 833 830 //if (global.params.verbose) 834 831 //printf("inline scan symbol %s\n", s->toChars()); trunk/src/module.h
r203 r204 115 115 116 116 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 117 void toJsonBuffer(OutBuffer *buf); 117 118 const char *kind(); 118 119 void setDocfile(); // set docfile member trunk/src/osx.mak
r195 r204 44 44 hdrgen.o delegatize.o aa.o ti_achar.o toir.o interpret.o traits.o \ 45 45 builtin.o clone.o aliasthis.o \ 46 man.o arrayop.o port.o response.o async.o \46 man.o arrayop.o port.o response.o async.o json.o \ 47 47 libmach.o machobj.o 48 48 … … 63 63 delegatize.c toir.h toir.c interpret.c traits.c cppmangle.c \ 64 64 builtin.c clone.c lib.h libomf.c libelf.c libmach.c arrayop.c \ 65 aliasthis.h aliasthis.c \65 aliasthis.h aliasthis.c json.h json.c \ 66 66 $C/cdef.h $C/cc.h $C/oper.h $C/ty.h $C/optabgen.c \ 67 67 $C/global.h $C/parser.h $C/code.h $C/type.h $C/dt.h $C/cgcv.h \ … … 348 348 349 349 interpret.o: interpret.c 350 $(CC) -c $(CFLAGS) $< 351 352 json.o: json.c 350 353 $(CC) -c $(CFLAGS) $< 351 354 … … 537 540 gcov interpret.c 538 541 gcov irstate.c 542 gcov json.c 539 543 gcov lexer.c 540 544 gcov libmach.c trunk/src/template.h
r192 r204 74 74 75 75 void emitComment(Scope *sc); 76 void toJsonBuffer(OutBuffer *buf); 76 77 // void toDocBuffer(OutBuffer *buf); 77 78 trunk/src/win32.mak
r195 r204 80 80 builtin.obj clone.obj libomf.obj arrayop.obj irstate.obj \ 81 81 glue.obj msc.obj ph.obj tk.obj s2ir.obj todt.obj e2ir.obj tocsym.obj \ 82 util.obj bit.obj eh.obj toobj.obj toctype.obj tocvdebug.obj toir.obj 82 util.obj bit.obj eh.obj toobj.obj toctype.obj tocvdebug.obj toir.obj \ 83 json.obj 83 84 84 85 # from C/C++ compiler optimizer and back end … … 114 115 delegatize.c toir.h toir.c interpret.c traits.c builtin.c \ 115 116 clone.c lib.h libomf.c libelf.c libmach.c arrayop.c \ 116 aliasthis.h aliasthis.c 117 aliasthis.h aliasthis.c json.h json.c 117 118 118 119 # From C++ compiler … … 449 450 inline.obj : $(TOTALH) inline.c 450 451 interpret.obj : $(TOTALH) interpret.c 452 json.obj : $(TOTALH) json.h json.c 451 453 lexer.obj : $(TOTALH) lexer.c 452 454 libomf.obj : $(TOTALH) lib.h libomf.c
