Commented unfinished mess
authorHarvie <tomas@mudrunka.cz>
Fri, 3 Aug 2012 03:44:55 +0000 (05:44 +0200)
committerHarvie <tomas@mudrunka.cz>
Fri, 3 Aug 2012 03:44:55 +0000 (05:44 +0200)
c/dreammachine/strobe.c

index 172130960e1a47789c5238d182684f42719ef1b4..42dfece47ad4d62c2bd56773d92a8abf0fa3f537 100644 (file)
@@ -9,9 +9,9 @@
 #include <unistd.h>
 #include <signal.h>
 #ifndef __WIN32__
-  #include <fcntl.h>
+       #include <fcntl.h>
 #else
-  #include <windows.h>
+       #include <windows.h>
 #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);
This page took 0.106728 seconds and 4 git commands to generate.