Changeset 1229

Show
Ignore:
Timestamp:
07/08/09 11:03:12 (3 years ago)
Author:
andrei
Message:

fixes for running under windows

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/rdmd.d

    r1222 r1229  
    7575    bool bailout;    // bailout set by functions called in getopt if 
    7676                     // program should exit 
    77     bool loop;       // set by --loop 
     77    string[] loop;       // set by --loop 
    7878    bool addStubMain;// set by --main 
    7979    string[] eval;     // set by --eval 
     
    9696    if (dryRun) chatty = true; // dry-run implies chatty 
    9797 
     98    // Just evaluate this program! 
     99    if (loop) 
     100    { 
     101        return .eval(importWorld ~ "void main(char[][] args) { " 
     102                ~ "foreach (line; stdin.byLine()) {\n" ~ join(loop, "\n") 
     103                ~ ";\n} }"); 
     104    } 
    98105    if (eval) 
    99106    { 
    100         // Just evaluate this program! 
    101         if (loop) 
    102         { 
    103             return .eval(importWorld ~ "void main(char[][] args) { " 
    104                 ~ "foreach (line; stdin.byLine()) {\n" ~ join(eval, "\n") 
    105                     ~ ";\n} }"); 
    106         } 
    107107        return .eval(importWorld ~ "void main(char[][] args) {\n" 
    108108                ~ join(eval, "\n") ~ ";\n}"); 
     
    305305    if (depsExitCode) 
    306306    { 
    307         if (exists(depsFilename)) 
    308        
    309             stderr.writeln(readText(depsFilename)); 
    310        
     307        // if (exists(depsFilename)) 
     308        //
     309        //     stderr.writeln(readText(depsFilename)); 
     310        //
    311311        exit(depsExitCode); 
    312312    }