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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
1 # Toplevel Aap recipe for Vim spell files
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
2 #
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
3 # Usage:
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
4 # aap generate all the .spl files
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
5 # aap diff create all the diff files
456
c4d200412ae9 updated for version 7.0121
vimboss
parents: 388
diff changeset
6
648
9032e4668296 updated for version 7.0189
vimboss
parents: 502
diff changeset
7 # "hu" is at the end, because it takes a very long time.
20753
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18594
diff changeset
8 # "eu" takes even longer (4 hours on my system).
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 648
diff changeset
9 LANG = af am bg br ca cs cy da de el en eo es fr fo ga gd gl he hr id it
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 648
diff changeset
10 ku la lt lv mg mi ms nb nl nn ny pl pt ro ru rw sk sl sv sw
20753
661eb972cb22 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18594
diff changeset
11 tet th tl tn tr uk yi zu hu eu
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
12
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
13 # TODO:
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
14 # Finnish doesn't work, the dictionary fi_FI.zip file contains hyphenation...
456
c4d200412ae9 updated for version 7.0121
vimboss
parents: 388
diff changeset
15
c4d200412ae9 updated for version 7.0121
vimboss
parents: 388
diff changeset
16 diff: $*LANG/diff
483
70afa17bfc01 updated for version 7.0132
vimboss
parents: 482
diff changeset
17 :print Done.
456
c4d200412ae9 updated for version 7.0121
vimboss
parents: 388
diff changeset
18
c4d200412ae9 updated for version 7.0121
vimboss
parents: 388
diff changeset
19 @for l in string.split(_no.LANG):
c4d200412ae9 updated for version 7.0121
vimboss
parents: 388
diff changeset
20 :child $l/main.aap
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
21
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
22 # The existing .spl files need to be generated when the spell file format
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
23 # changes. Depending on the Vim executable does that, but results in doing it
483
70afa17bfc01 updated for version 7.0132
vimboss
parents: 482
diff changeset
24 # much too often. Generate a dummy .spl file and let the .spl depend on it, so
70afa17bfc01 updated for version 7.0132
vimboss
parents: 482
diff changeset
25 # that they are outdated when it changes.
482
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
26 :child check/main.aap
6f8b578776ab updated for version 7.0131
vimboss
parents: 481
diff changeset
27 *.spl: check/check.latin1.spl