GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
95cee86
)
Commented unfinished mess
author
Harvie
<tomas@mudrunka.cz>
Fri, 3 Aug 2012 03:44:55 +0000
(
05:44
+0200)
committer
Harvie
<tomas@mudrunka.cz>
Fri, 3 Aug 2012 03:44:55 +0000
(
05:44
+0200)
c/dreammachine/strobe.c
patch
|
blob
|
blame
|
history
diff --git
a/c/dreammachine/strobe.c
b/c/dreammachine/strobe.c
index 172130960e1a47789c5238d182684f42719ef1b4..42dfece47ad4d62c2bd56773d92a8abf0fa3f537 100644
(file)
--- a/
c/dreammachine/strobe.c
+++ b/
c/dreammachine/strobe.c
@@
-9,9
+9,9
@@
#include <unistd.h>
#include <signal.h>
#ifndef __WIN32__
#include <unistd.h>
#include <signal.h>
#ifndef __WIN32__
- #include <fcntl.h>
+
#include <fcntl.h>
#else
#else
- #include <windows.h>
+
#include <windows.h>
#endif
void signal_handler(int signo) {
#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);
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(".");
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
#endif
+*/
if(argc > 2) getchar(); //interactive strobe
fputs(state_b, stdout);
fflush(stdout);
if(argc > 2) getchar(); //interactive strobe
fputs(state_b, stdout);
fflush(stdout);
This page took
0.124848 seconds
and
4
git commands to generate.