From: Mart Lubbers Date: Tue, 26 Jan 2016 18:57:14 +0000 (+0100) Subject: removed debug printf X-Git-Tag: v0.3^2~13 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=a4141ae6be6f861e1fe948aa43dcc90f4e20eea7;p=CleanReadLine.git removed debug printf --- diff --git a/Clean System Files/readLine.c b/Clean System Files/readLine.c index fa9315a..e6a2c53 100644 --- a/Clean System Files/readLine.c +++ b/Clean System Files/readLine.c @@ -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 index 0000000..6a9a541 --- /dev/null +++ b/readline.history @@ -0,0 +1 @@ +testentry