From: Harvie Date: Fri, 3 Aug 2012 03:44:55 +0000 (+0200) Subject: Commented unfinished mess X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=b28afc5086a615b179adc680546ca72b51cd3a43;p=mirrors%2FPrograms.git Commented unfinished mess --- diff --git a/c/dreammachine/strobe.c b/c/dreammachine/strobe.c index 1721309..42dfece 100644 --- a/c/dreammachine/strobe.c +++ b/c/dreammachine/strobe.c @@ -9,9 +9,9 @@ #include #include #ifndef __WIN32__ - #include + #include #else - #include + #include #endif void signal_handler(int signo) { @@ -54,14 +54,16 @@ int main(int argc, char *argv[]) { fputs(state_a, stdout); fflush(stdout); usleep(half_interval); - #ifndef __WIN32__ - int fflags = fcntl(fileno(stdin), F_GETFL, 0); - fcntl(fileno(stdin), F_SETFL, fflags | O_NONBLOCK); +/* + #ifndef __WIN32__ + int fflags = fcntl(fileno(stdin), F_GETFL, 0); + fcntl(fileno(stdin), F_SETFL, fflags | O_NONBLOCK); while(getchar()) puts("."); - fcntl(fileno(stdin), F_SETFL, fflags); - #else - //WARNING! Somehow implement FILE_FLAG_OVERLAPPED & FILE_FLAG_NO_BUFFERING support on windows + fcntl(fileno(stdin), F_SETFL, fflags); + #else + //WARNING! Somehow implement FILE_FLAG_OVERLAPPED & FILE_FLAG_NO_BUFFERING support on windows #endif +*/ if(argc > 2) getchar(); //interactive strobe fputs(state_b, stdout); fflush(stdout);