-
-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all globals & static variables where possible #4055
Labels
Comments
Linked to #276 |
This seems to miss some. E.g. the internal plugin state for Hexagon. |
This was referenced Jan 3, 2024
@wargio please update the issue since I removed a bunch of those. |
updated |
wargio
changed the title
Remove all globals & static variable where possible
Remove all globals & static variables where possible
Jan 5, 2024
5 tasks
This was referenced Jan 15, 2024
10 tasks
10 tasks
This was referenced Feb 9, 2024
Merged
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Currently rizin contains a lot of global variables, ideally we want to remove most of them.
Can be found via
$ find librz/ -type f -name "*.c" -o -name "*.h" -o -name "*.inc" | xargs -I % ctags -x --c-kinds=v % | grep 'static ' | grep -v ' static const \|{\|\[\]' | grep -v ' const static \|{\|\[\]'
Extra via command:
grep -R -e '^\s\+static.\+;' . | grep '\.c:\|\.inc:' | grep -v -e 'static const\|static inline\|./subprojects/\|/test/'
The text was updated successfully, but these errors were encountered: