Mercurial > vim
annotate runtime/spell/main.aap @ 33791:370543108ba1 v9.0.2114
patch 9.0.2114: overflow detection not accurate when adding digits
Commit: https://github.com/vim/vim/commit/22cbc8a4e17ce61aa460c451a26e1bff2c3d2af9
Author: Christian Brabandt <cb@256bit.org>
Date: Sun Nov 19 10:47:21 2023 +0100
patch 9.0.2114: overflow detection not accurate when adding digits
Problem: overflow detection not accurate when adding digits
Solution: Use a helper function
Use a helper function to better detect overflows before adding integer
digits to a long or an integer variable respectively. Signal the
overflow to the caller function.
closes: #13539
Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Michael Henry <vim@drmikehenry.com>
Signed-off-by: Ernie Rael <errael@raelity.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 19 Nov 2023 11:00:07 +0100 |
parents | d314efe6447a |
children |
rev | line source |
---|---|
482 | 1 # Toplevel Aap recipe for Vim spell files |
2 # | |
3 # Usage: | |
4 # aap generate all the .spl files | |
5 # aap diff create all the diff files | |
456 | 6 |
648 | 7 # "hu" is at the end, because it takes a very long time. |
20753 | 8 # "eu" takes even longer (4 hours on my system). |
2152 | 9 LANG = af am bg br ca cs cy da de el en eo es fr fo ga gd gl he hr id it |
10 ku la lt lv mg mi ms nb nl nn ny pl pt ro ru rw sk sl sv sw | |
20753 | 11 tet th tl tn tr uk yi zu hu eu |
482 | 12 |
13 # TODO: | |
14 # Finnish doesn't work, the dictionary fi_FI.zip file contains hyphenation... | |
456 | 15 |
16 diff: $*LANG/diff | |
483 | 17 :print Done. |
456 | 18 |
19 @for l in string.split(_no.LANG): | |
20 :child $l/main.aap | |
482 | 21 |
22 # The existing .spl files need to be generated when the spell file format | |
23 # changes. Depending on the Vim executable does that, but results in doing it | |
483 | 24 # much too often. Generate a dummy .spl file and let the .spl depend on it, so |
25 # that they are outdated when it changes. | |
482 | 26 :child check/main.aap |
27 *.spl: check/check.latin1.spl |