Move deprecated APIs to compat
Move deprecated APIs to compat
Fix indent
compat: add appropriate copyright notice
src: bump copyright date
Update NEWS
contrib: indent
contrib: use new APIs
update .gitignore for contrib directory
contrib: provide default makefile
contrib: execute program and dump database
fix incorrect dist files
Adjust chiSymbolCursor correctly in cand selection

When bPhraseChoiceRearward is enable, we need to set chiSymbolCursor to
candidate head before calling SetChoiceInfo. The value of
chiSymbolCursor is determined by oldChiSymbolCursor and candidate
length.

The original code has two problems:

1.  It has an off-by-one issue when calculate chiSymbolCursor. If
    candidate length is 1, chiSymbolCursor shall equal to
    oldChiSymbolCursor.

2.  It does not do chiSymbolCursor adjust when oldChiSymbolCursor is at
    the end of preedit buffer. When oldChiSymbolCursor is at the end of
    preedit buffer, it is not point to end of candidate. We need to
    consider it when calculate candidate head (chiSymbolCursor). This is
    also an off-by-one issue.

These two issues actual hide the problem when we open candidate at the
end of buffer because they works in different direction and becomes
off-by-zero.

Closed #140
Uniform global declaration of test-config.c

Signed-off-by: ChangZhuo Chen (陳昌倬) <czchen@gmail.com>
Add const to chewing_set_selKey
Let `make check` in cmake build everything
Disable deprecated warning when testing
Fix indent
include: Introduce macro DEPRECATED_FOR, {BEGIN,END}_IGNORE_DEPRECATIONS
test: Use macro {BEGIN,END}_IGNORE_DEPRECATIONS for deprecated functions