Changeset 87
- Timestamp:
- 09/11/06 13:51:18 (2 years ago)
- Files:
-
- trunk/bcd.gen/bcd/gen/bcdgen.d (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bcd.gen/bcd/gen/bcdgen.d
r84 r87 110 110 int main(char[][] args) 111 111 { 112 // figure out what gccxml to use based on the system 113 char[] gccxmlExe; 114 version (Windows) { 115 gccxmlExe = getDirName(args[0]) ~ "\\gccxml_flags.exe"; 116 } else { 117 gccxmlExe = "gccxml"; 118 } 119 112 120 if (args.length < 3) { 113 121 writefln("Use:"); … … 255 263 256 264 // preprocess it 257 if (system( "gccxml-E -dD " ~ gccxmlopts ~ " -o out.i " ~ args[1])) {265 if (system(gccxmlExe ~ " -E -dD " ~ gccxmlopts ~ " -o out.i " ~ args[1])) { 258 266 return 2; 259 267 } … … 262 270 263 271 // xml-ize it 264 if (system( "gccxml" ~ gccxmlopts ~272 if (system(gccxmlExe ~ " " ~ gccxmlopts ~ 265 273 " -fxml=out.xml " ~ args[1])) { 266 274 return 2; … … 1638 1646 } 1639 1647 1640 extern (C) int getpid(); 1641 extern (C) int kill(int, int); 1648 version (Windows) {} else { 1649 extern (C) int getpid(); 1650 extern (C) int kill(int, int); 1651 } 1642 1652 /** 1643 1653 * Get the type of a node in C[++] and D … … 1649 1659 int xmlrret; 1650 1660 1651 if (type == "") kill(getpid(), 11); 1661 version (Windows) {} else { 1662 if (type == "") kill(getpid(), 11); 1663 } 1652 1664 1653 1665 // first find the element matching the type
