diff options
author | epoch <epoch@hacking.allowed.org> | 2017-01-26 02:47:08 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2017-01-26 02:47:08 -0600 |
commit | 16ed36684a8c3dbd62f619c196e2e9b0adabe884 (patch) | |
tree | 93df1864619095138693ef3b759d6c08ccb8c537 | |
parent | aaad5c31463a909723ddcc94fe3626e82d2b8590 (diff) | |
download | hackvr-16ed36684a8c3dbd62f619c196e2e9b0adabe884.tar.gz hackvr-16ed36684a8c3dbd62f619c196e2e9b0adabe884.zip |
I derped with the define
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/hackvr.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5761abc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/src/hackvr.c b/src/hackvr.c index 5c0d0b8..f708e65 100644 --- a/src/hackvr.c +++ b/src/hackvr.c @@ -100,13 +100,13 @@ int load_stdin() { int i;//used to store the last triangle. even though I have a global for that. >_> // printf("# entering load_stdin()\n"); -#ifdef _HACKVR_USE_NONBLOCK_ +//#ifdef _HACKVR_USE_NONBLOCK_ for(i=0;global.shape[i];i++) ;//hop to the end. fcntl(0,F_SETFL,O_NONBLOCK); if(feof(stdin)) { clearerr(stdin); } -#else +//#else /* readfs=master; timeout.tv_sec=0; timeout.tv_usec=1; @@ -115,7 +115,7 @@ int load_stdin() { return 0; } if(FD_ISSET(0,&readfs)) {*/ -#endif +//#endif while((line=read_line_hack(stdin,0))) {//load as long there's something to load if(*line == '#') return 0; // printf("# read command: %s\n",line); |