cards

alternative to Anki for the command-line
Log | Files | Refs | Feed

commit 52e1a7f6fedff9674c775c6950a8e87e6dc0a760
parent 764287ff67f25b4c643ed56cabc5b0aa8c9a6189
Author: Jenny Doe <tng@soykaf.me>
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 */