mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
TODO: Fix all uses of casts on function pointer types.
This commit is contained in:
parent
d223460184
commit
1b92df58cf
10
TODO
10
TODO
@ -1,6 +1,16 @@
|
||||
Before 4.6.2
|
||||
============
|
||||
|
||||
Remove all instances of type casts on function pointers. Run the
|
||||
following command to get a list of function pointer types.
|
||||
grep -r 'typedef.*(\*' . \
|
||||
| sed -n 's/.*(\*\([[:alnum:]_]*\)).*/(\1)/p' \
|
||||
| sort -u \
|
||||
> fn-types.txt
|
||||
Then use fgrep to find illegal uses of these types.
|
||||
fgrep -r "`cat fn-types.txt`" .
|
||||
Fix these uses by writing small wrapper functions.
|
||||
|
||||
Due to problems in the VFS, files are not written back after being edited
|
||||
over VFS with an external editor.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user