refactor: move definitions from typval.h to typval_defs.h (#20194)

Taken from #20187.
This commit is contained in:
Famiu Haque
2022-09-14 11:01:39 +06:00
committed by GitHub
parent 1e5daed676
commit bd4eca1146
3 changed files with 402 additions and 398 deletions

View File

@@ -2700,7 +2700,7 @@ def CheckLanguage(filename, clean_lines, linenum, error):
if match:
error(filename, linenum, 'runtime/printf', 4,
'Use xstrlcat or snprintf instead of %s' % match.group(1))
if not Search(r'eval/typval\.[ch]$', filename):
if not Search(r'eval/typval\.[ch]$|eval/typval_defs\.h$', filename):
match = Search(r'(?:\.|->)'
r'(?:lv_(?:first|last|refcount|len|watch|idx(?:_item)?'
r'|copylist|lock)'