summaryrefslogtreecommitdiff
path: root/src/hackvr.c
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-02-03 22:38:02 -0600
committerepoch <epoch@hacking.allowed.org>2018-02-03 22:38:02 -0600
commitfa36dbc55a93ae622a68db72eefd5c7c1fda968c (patch)
treefe2eb6a28dd8c45c0eda7901546dbd9f9ecee874 /src/hackvr.c
parent8caee377c047a60dde897de6de3ce246ceff1b90 (diff)
downloadhackvr-fa36dbc55a93ae622a68db72eefd5c7c1fda968c.tar.gz
hackvr-fa36dbc55a93ae622a68db72eefd5c7c1fda968c.zip
changed some comments
Diffstat (limited to 'src/hackvr.c')
-rw-r--r--src/hackvr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/hackvr.c b/src/hackvr.c
index 12a35b3..40c6e30 100644
--- a/src/hackvr.c
+++ b/src/hackvr.c
@@ -117,10 +117,9 @@ int load_stdin() {//this function returns -1 to quit, 0 to not ask for a redraw,
if(FD_ISSET(0,&readfs)) {*/
//#endif
counter=0;
+// printf("#right before main read loop\n");
+// fflush(stdout);
for(counter=0;counter < 100 && (line=line?free(line),read_line_hack(stdin,0):read_line_hack(stdin,0));counter++) {//load as long there's something to load
- //but doing this will make it not ever redraw the screen as long as there's more to read.
- //how do we compensate for this? an alarm that will break us out?
- //a counter that will break us out?
if(*line == '#') continue;
// fprintf(stderr,"# read command: %s\n",line);
if(a) free(a);//use a static char pointer array so I don't have to use the heap. possible optimization.