Add strndup to lint checks

This commit is contained in:
Richard Patel 2023-11-30 11:43:05 +01:00 committed by pancake
parent 1a4d6e7fe3
commit ef94001419
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ cd "$(dirname $0)"/..
(git grep "`printf '\tfree('`" libr | grep c: ) && exit 1 (git grep "`printf '\tfree('`" libr | grep c: ) && exit 1
(git grep cfg.debug libr| grep get_i) && exit 1 (git grep cfg.debug libr| grep get_i) && exit 1
(git grep -e 'asm.bytes"' -e 'asm.xrefs"' -e 'asm.functions"' -e 'asm.emu"' -e 'emu.str"' libr| grep get_i) && exit 1 (git grep -e 'asm.bytes"' -e 'asm.xrefs"' -e 'asm.functions"' -e 'asm.emu"' -e 'emu.str"' libr| grep get_i) && exit 1
(git grep -n " strndup (" | grep -v sys/) && exit 1
(git grep eprintf libr| grep -i error | grep -v '/native/' | grep -v spp | grep -v cons) && exit 1 (git grep eprintf libr| grep -i error | grep -v '/native/' | grep -v spp | grep -v cons) && exit 1