Changeset 92
- Timestamp:
- 09/11/06 19:25:43 (2 years ago)
- Files:
-
- trunk/bcd.gen/bcd/gen/bcdgen.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bcd.gen/bcd/gen/bcdgen.d
r90 r92 119 119 gccxmlExe = "gccxml"; 120 120 } 121 121 122 122 if (args.length < 3) { 123 123 writefln("Use:"); … … 152 152 return 1; 153 153 } 154 154 155 155 char[] forcedImport; 156 156 char[] templates; … … 159 159 dNamespaceBase = "bcd."; 160 160 curFile = args[1]; 161 baseDir = getDirName(args[1]); 162 shortName = getBaseName(args[1]); 161 version (Windows) { 162 // get*Name only works with \, but gccxml only works with / 163 curFile = replace(curFile, "\\", "/"); 164 char[] backslashName = replace(args[1], "/", "\\"); 165 baseDir = getDirName(backslashName); 166 shortName = getBaseName(backslashName); 167 } else { 168 baseDir = getDirName(args[1]); 169 shortName = getBaseName(args[1]); 170 } 163 171 if (find(shortName, '.') != -1) { 164 172 shortName = getName(shortName);
