Don't use "offset" as an identifier
This commit is contained in:
parent
e5b83821f8
commit
fb66a6bfe5
|
@ -380,8 +380,8 @@ def compute_huffman_coding(translation_name, translations, f):
|
||||||
f.write("#define word_end {}\n".format(word_end))
|
f.write("#define word_end {}\n".format(word_end))
|
||||||
f.write("#define minlen {}\n".format(minlen))
|
f.write("#define minlen {}\n".format(minlen))
|
||||||
f.write("#define maxlen {}\n".format(maxlen))
|
f.write("#define maxlen {}\n".format(maxlen))
|
||||||
f.write("#define offstart {}\n".format(offstart))
|
f.write("#define translation_offstart {}\n".format(offstart))
|
||||||
f.write("#define offset {}\n".format(offset))
|
f.write("#define translation_offset {}\n".format(offset))
|
||||||
|
|
||||||
return EncodingTable(values, lengths, words, canonical, extractor, apply_offset, remove_offset)
|
return EncodingTable(values, lengths, words, canonical, extractor, apply_offset, remove_offset)
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,8 @@ STATIC void get_word(int n, const mchar_t **pos, const mchar_t **end) {
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC int put_utf8(char *buf, int u) {
|
STATIC int put_utf8(char *buf, int u) {
|
||||||
if (u >= offstart) {
|
if (u >= translation_offstart) {
|
||||||
u += offset;
|
u += translation_offset;
|
||||||
}
|
}
|
||||||
if (u <= 0x7f) {
|
if (u <= 0x7f) {
|
||||||
*buf = u;
|
*buf = u;
|
||||||
|
|
Loading…
Reference in New Issue