[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Use svn_hash_gets

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 23 Mar 2013 16:40:30 +0200

Nothing to see here; I'm just correcting the commands I used:

spatch -inplace -sp_file 1 subversion/libsvn_subr/*.c
vim
:match Error /.\{81\}.*/
:set aw et so=99 ai si ci sw=2 ts=2 cin cino=>2,n2,f0,{2,}0,=2,t0,+4,C1,(0,u0,*300
:map <F3> :cn<CR>
:map <F4> gw%
:map <F5> f,f<Space>r<CR>gw%
:vimgrep /svn_hash_sets.*\%81c/ subversion/libsvn_subr/*.c
:vimgrep /svn_hash_gets.*\%81c/ subversion/libsvn_subr/*.c
:"### (those cinoptions don't format blocks correctly, but they suffice for
:"### the one-line task at hand here)
...
:wq
svn commit

where...

[[[
% cat 1.cocci
@@
expression ht, key;
@@

-apr_hash_get(ht, key, APR_HASH_KEY_STRING)
+svn_hash_gets(ht, key)
 
@@
expression ht, key, val;
@@

-apr_hash_set(ht, key, APR_HASH_KEY_STRING, val)
+svn_hash_sets(ht, key, val)
 
]]]
Received on 2013-03-23 15:41:09 CET

This is an archived mail posted to the Subversion Dev mailing list.