cards

a command-line tool for reviewing flashcards
git clone https://github.com/tanguyandreani/cards
Log | Files | Refs | README

commit 0434c363faa3284c16b1ff3a151347c78db6383b
parent e5d5da54383751a6c7da31ac6bd9f5b5e8e66b95
Author: Tanguy Andreani <dev@tanguy.space>
Date:   Fri, 29 Mar 2019 19:23:35 +0100

fixed: comments

Diffstat:
Mcards.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/cards.c b/cards.c @@ -107,11 +107,6 @@ hash_table_insert(struct Cards *ht, const wchar_t * question, ht->buckets[hashed_key].head = kv; ht->buckets[hashed_key].size++; - /* - * if (ht->buckets[hashed_key].size > 1) { fprintf(stderr, - * "collision!\n"); sleep(1); } - */ - return (0); } @@ -183,6 +178,9 @@ main(int argc, char *argv[]) exit(1); } + /* int z = 1000; */ + /* and z-- instead of 1000 */ + #define o(k,v) \ ht_insert(cards, k, v, 1000, 0) /* or 1 */