removed debug printf
authorMart Lubbers <mart@martlubbers.net>
Tue, 26 Jan 2016 18:57:14 +0000 (19:57 +0100)
committerMart Lubbers <mart@martlubbers.net>
Tue, 26 Jan 2016 18:57:14 +0000 (19:57 +0100)
Clean System Files/readLine.c
readline.history [new file with mode: 0644]

index fa9315a..e6a2c53 100644 (file)
@@ -79,7 +79,6 @@ void cleanGetHistoryItem(int num, CleanString *line, CleanString *timestamp){
 }
 
 void cleanInitNewHistoryState(int offset, int flags, int num){
-       printf("Initializing: %d, %d, %d\n", offset, flags, num);
        if(history_state != NULL){
                free(history_state);
        }
@@ -101,22 +100,17 @@ void cleanInitNewHistoryState(int offset, int flags, int num){
        history_state->length = num;
        history_state->size = num;
        history_state->flags = 0;
-       printf("Initialization done\n");
 }
 
 void cleanSetNewHistoryEntry(int i, CleanString line, CleanString timestamp){
        char *cs_line = cleanStringToCString(line);
        char *cs_timestamp = cleanStringToCString(timestamp);
-       printf("adding: %d, %s, %s\n", i, cs_line, cs_timestamp);
        history_state->entries[i]->line = cs_line;
        history_state->entries[i]->timestamp = cs_timestamp;
-       printf("done adding: %d, %s, %s\n", i, cs_line, cs_timestamp);
 }
 
 void cleanCommitSetHistory(void){
-       printf("commit\n");
        history_set_history_state(history_state);
-       printf("committed\n");
 }
 
 void cleanAddHistory(CleanString entry){
diff --git a/readline.history b/readline.history
new file mode 100644 (file)
index 0000000..6a9a541
--- /dev/null
@@ -0,0 +1 @@
+testentry