Changeset 3409 for src/pge

Show
Ignore:
Timestamp:
05/18/05 23:10:30 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
4977
Message:

* Matt Diephouse pointed out that run_pge.pir can easily

turn off buffering for stdin and stdout.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/pge/run_pge.pir

    r3402 r3409  
    33    .local pmc args, match, add_rule 
    44    .local string input, result, cmd, sizeStr, arg1, arg2 
    5     .local pmc stdin 
     5    .local pmc stdin, stdout 
    66    .include "iglobals.pasm" 
    77 
     
    1515    if argc == 3 goto do_args 
    1616 
     17    getstdin stdin 
     18    getstdout stdout 
     19    stdin."setbuf"(0) 
     20    stdout."setbuf"(0) 
     21 
    1722  loop: 
    18     getstdin stdin 
    1923    readline input, stdin 
    2024    length pos, input