[libvirt] [PATCH 01/32] Convert 'int i' to 'size_t i' in daemon/ files

Daniel P. Berrange berrange at redhat.com
Wed Jul 10 09:19:01 UTC 2013


On Tue, Jul 09, 2013 at 02:50:29PM -0400, Laine Stump wrote:
> On 07/08/2013 10:21 AM, Daniel P. Berrange wrote:
> > From: "Daniel P. Berrange" <berrange at redhat.com>
> >
> > Convert the type of loop iterators named 'i', 'j', k',
> > 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or
> > 'unsigned int', also santizing 'ii', 'jj', 'kk' to use
> > the normal 'i', 'j', 'k' naming
> 
> Sigh. I actually greatly prefer using ii because a variable named "i" or
> "j" is impossible to search for. I guess I'll just live with it though...

I figured it was probably some reason like that. I'm afraid though that
consistent coding style across the codebase must always win here, and the
use of 'ii' style naming was in a small minority.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list