There are several occasions in which a function argument called index shadows declarations from header files (string.h), but i can't see why the member name of the _struct_ was renamed.<br><br>If anything at all, then to go with other renamings from index to "idx", but there is really no other reason than this consistency (in code), which weighs much less than consistency of the API, especially since the PS iter is not marked private, and addtionally since this is just a minor change that wouldn't have had to be made.
<br><br><div><span class="gmail_quote">On 11/27/06, <b class="gmail_sendername">David Weinehall</b> <<a href="mailto:david.weinehall@nokia.com">david.weinehall@nokia.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On sön, 2006-11-26 at 20:54 +0100, ext Milosz Derezynski wrote:<br>[snip]<br><br>> ("index" was renamed to "idx")<br><br>Try compiling with -Wshadow, and you'll (hopefully) realise why.<br><br><br>Regards: David Weinehall
<br>_______________________________________________<br>hal mailing list<br><a href="mailto:hal@lists.freedesktop.org">hal@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/hal">http://lists.freedesktop.org/mailman/listinfo/hal
</a><br></blockquote></div><br>