Mercurial > projects > ddmd
comparison dmd/Json.d @ 136:9d194c848e3a
fixed a few null reference bugs, thx sagitario
author | Trass3r |
---|---|
date | Mon, 13 Sep 2010 23:27:38 +0200 |
parents | e28b18c23469 |
children |
comparison
equal
deleted
inserted
replaced
132:c494af1dba80 | 136:9d194c848e3a |
---|---|
22 immutable Pcomment = "comment"; | 22 immutable Pcomment = "comment"; |
23 immutable Pmembers = "members"; | 23 immutable Pmembers = "members"; |
24 | 24 |
25 void json_generate(Array modules) | 25 void json_generate(Array modules) |
26 { | 26 { |
27 OutBuffer buf; | 27 OutBuffer buf = new OutBuffer(); |
28 | 28 |
29 buf.writestring("[\n"); | 29 buf.writestring("[\n"); |
30 for (int i = 0; i < modules.dim; i++) | 30 for (int i = 0; i < modules.dim; i++) |
31 { | 31 { |
32 Module m = cast(Module)modules.data[i]; | 32 Module m = cast(Module)modules.data[i]; |