In message <[EMAIL PROTECTED]>, Matt Dillon writes:
>:Why not this:
>:s = splbio();
>:TAILQ_FOREACH(bp, &vp->v_dirtyblkhd, b_vnbufs) {
>    First rule when making simple bug fixes by copying working code from one
>    source file to another is:  Dont try to optimize the code on the
>    fly.
>    Personally speaking, I don't find the FOREACH macros any more readable
>    vs an explicit for loop.  They hide too much... like for example the
>    fact that you are dependant on the current pointer remaining valid to
>    get the next pointer in the loop.

Is that any different from

        for (i = 0; i < N; i++) {
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to