File: badguess.h

package info (click to toggle)
kdrill 6.5deb2-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,340 kB
  • sloc: ansic: 7,636; makefile: 47
file content (18 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

/* every time a user misses a translation, call this.
 * It will adjust the global numberincorrect, and adjust the
 * translation struct as well.
 * Plus, do some special invisible frequency weighting, for
 * GetRepeat()
 *
 * It will properly call RemoveThis(), if appropriate. 
 */
extern void AdjustBadCache(TRANSLATION);

/* call this if translation incorrect count has gone to zero */
extern void RemoveBadCache(TRANSLATION);

/* This returns the most frequenly misguessed kanji, or
 * NULL, if nothing in cache.
 */
extern TRANSLATION GetRepeat();