1: This page lists various [coccinelle](http://coccinelle.lip6.fr/) scripts used for NetBSD:
2:
3: * [*aprint_\*()* to *aprint_\*_dev()* possible replacements](http://www.netbsd.org/~jym/cocci/aprint2aprint_dev.cocci). Note that the script uses virtual identifiers, so pass the appropriate functions as argument to **spatch**. For example:
4:
5: [[!template id=programlisting text="""
6: # This will show possible aprint_debug to aprint_debug_dev replacements
7: $ spatch -sp_file aprint2aprint_dev.cocci -D aprint=aprint_debug -D aprint_dev=aprint_debug_dev -dir /path_to_directory/
8: ...
9: # This will show possible aprint_normal to aprint_normal_dev replacements
10: $ spatch -sp_file aprint2aprint_dev.cocci -D aprint=aprint_normal -D aprint_dev=aprint_normal_dev -dir /path_to_directory/
11: """]]
12:
13: ... and so forth.
14:
15: * [use __arraycount() where possible](http://www.netbsd.org/~jym/cocci/arraycount.cocci)
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb