Diff for /wikisrc/users/jym/coccinelle.mdwn between versions 1.1 and 1.2

version 1.1, 2010/08/08 13:34:42 version 1.2, 2010/08/22 00:56:36
Line 1 Line 1
 This page lists various [coccinelle](http://coccinelle.lip6.fr/) scripts used for NetBSD:  This page lists various [coccinelle](http://coccinelle.lip6.fr/) scripts used for NetBSD:
   
 * *aprint_\*()* to *aprint_\*_dev()* possible replacements:  * [*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:
  * [aprint_debug](http://www.netbsd.org/~jym/cocci/aprint_debug.cocci)   :
  * [aprint_error](http://www.netbsd.org/~jym/cocci/aprint_error.cocci)  
  * [aprint_normal](http://www.netbsd.org/~jym/cocci/aprint_normal.cocci)  [[!template  id=programlisting text="""
  * [aprint_naive](http://www.netbsd.org/~jym/cocci/aprint_naive.cocci)  # This will show possible aprint_debug to aprint_debug_dev replacements
  * [aprint_verbose](http://www.netbsd.org/~jym/cocci/aprint_verbose.cocci)  $ spatch -sp_file aprint2aprint_dev.cocci -D aprint=aprint_debug -D aprint_dev=aprint_debug_dev -dir /path_to_directory/
   ...
   # This will show possible aprint_normal to aprint_normal_dev replacements
   $ spatch -sp_file aprint2aprint_dev.cocci -D aprint=aprint_normal -D aprint_dev=aprint_normal_dev -dir /path_to_directory/
   """]]
   
   ... and so forth.
   
 * [use __arraycount() where possible](http://www.netbsd.org/~jym/cocci/arraycount.cocci)  * [use __arraycount() where possible](http://www.netbsd.org/~jym/cocci/arraycount.cocci)

Removed from v.1.1  
changed lines
  Added in v.1.2


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb