nbis: Make the extern global bozworth 'y' variable as bz_y

Othewise this could create issues with other 'y' variable definitions
shadowing it.

Add a cocci file that performs the change automatically
This commit is contained in:
Marco Trevisan (Treviño)
2019-12-04 14:22:07 +01:00
parent 70a0d6f0fe
commit 35e9f19c0c
5 changed files with 44 additions and 20 deletions

View File

@@ -186,6 +186,9 @@ sed -i 's/^\([[:space:]]*[[:alnum:]_]\+[\*[:space:]]\+'\
# Use GLib memory management
spatch --sp-file glib-memory.cocci --dir . --in-place
# Rename global "y" variable in "bz_y"
spatch --sp-file remove-global-y.cocci bozorth3/* include/bozorth.h --in-place
# The above leaves an unused variable around, triggering a warning
# remove it.
patch -p0 < glib-mem-warning.patch