Changeset 122
- Timestamp:
- 02/18/07 02:27:48 (2 years ago)
- Files:
-
- trunk/bcd.gen/bcd/gen/bcdgen.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bcd.gen/bcd/gen/bcdgen.d
r121 r122 7 7 * 8 8 * License: 9 * Copyright (C) 2006 Gregor Richards9 * Copyright (C) 2006, 2007 Gregor Richards 10 10 * Copyright (C) 2006 Tomas "MrSunshine" Wilhelmsson 11 11 * … … 42 42 alias std.string.atoi atoi; 43 43 alias std.c.stdlib.free free; 44 alias std.process.system system; 44 45 45 46 private import bcd.gen.libxml2; … … 245 246 // some buffers 246 247 dhead = genhead; // the D header (extern (C)'s) 247 dhead ~= "module " ~ dNamespaceBase ~ dNamespace ~ "." ~ shortName ~ ";\n ";248 dhead ~= "module " ~ dNamespaceBase ~ dNamespace ~ "." ~ shortName ~ ";\nalign(4):\n"; 248 249 if (!outputC) dhead ~= "public import bcd.bind;\n"; 249 250 dhead ~= forcedImport; … … 655 656 // import it in D 656 657 657 // first try our own namespace 658 if ( getDirName(sname) == baseDir) {658 // first try our own namespace if we didn't use -A 659 if (!outputAll && getDirName(sname) == baseDir) { 659 660 char[] baseName = sname[baseDir.length + 1 .. sname.length]; 660 661 if (find(baseName, '.') != -1) {
