mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Add scripts/find-banned.sh
This commit is contained in:
parent
04ccedbc7e
commit
a617df938d
4 changed files with 425 additions and 0 deletions
6
scripts/find-banned.sh
Executable file
6
scripts/find-banned.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
banned="malloc,g_strcmp0,sprintf,vsprintf,strcpy,strncpy,strcat,strncat"
|
||||
|
||||
find src/ include/ \( -name "*.c" -o -name "*.h" \) -type f \
|
||||
| ./scripts/helper/find-idents --tokens=$banned -
|
||||
Loading…
Add table
Add a link
Reference in a new issue