summaryrefslogtreecommitdiff
path: root/src/gperf_fold_key_conv.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 16:55:10 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 16:55:10 +0100
commit98ab313fe496ae7c792db29c80bf6b23347484ff (patch)
tree3e140e51f430a422b6dd4568fec4884c280b6876 /src/gperf_fold_key_conv.py
parentb62fc1758f4ae8459e6d7e8386ca547274b4daa2 (diff)
New upstream version 6.7.0upstream/6.7.0
Diffstat (limited to 'src/gperf_fold_key_conv.py')
-rwxr-xr-xsrc/gperf_fold_key_conv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gperf_fold_key_conv.py b/src/gperf_fold_key_conv.py
index 5267aa4..59c5de9 100755
--- a/src/gperf_fold_key_conv.py
+++ b/src/gperf_fold_key_conv.py
@@ -9,7 +9,7 @@ import re
REG_LINE_GPERF = re.compile('#line .+gperf"')
REG_HASH_FUNC = re.compile('hash\s*\(register\s+const\s+char\s*\*\s*str,\s*register\s+unsigned\s+int\s+len\s*\)')
REG_STR_AT = re.compile('str\[(\d+)\]')
-REG_RETURN_TYPE = re.compile('^const\s+int\s*\*')
+REG_RETURN_TYPE = re.compile('^const\s+short\s+int\s*\*')
REG_FOLD_KEY = re.compile('unicode_fold(\d)_key\s*\(register\s+const\s+char\s*\*\s*str,\s*register\s+unsigned\s+int\s+len\)')
REG_ENTRY = re.compile('\{".*?",\s*(-?\d+)\s*\}')
REG_IF_LEN = re.compile('if\s*\(\s*len\s*<=\s*MAX_WORD_LENGTH.+')