mirror of
https://github.com/labwc/labwc.git
synced 2026-03-02 01:40:24 -05:00
Add scripts/find-banned.sh
This commit is contained in:
parent
235a8ad9bc
commit
29031a4c85
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