<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Yes I know that I can use both vlc_list_append and vlc_list_prepend to change the order of iteration.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
But I might miss the point of doubly linked list that can't do reverse iteration.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I use a vlc_list to store a chain of filters. They apply the filtering in normal order but I have to apply some format changes in reverse order. Should I create a new list using foreach and prepend ?
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Anyway you can discard this path as Thomas said, I'll send a new one. With tests.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> vlc-devel <vlc-devel-bounces@videolan.org> de la part de Rémi Denis-Courmont <remi@remlab.net><br>
<b>Envoyé :</b> jeudi 19 septembre 2019 21:09<br>
<b>À :</b> vlc-devel@videolan.org <vlc-devel@videolan.org><br>
<b>Objet :</b> Re: [vlc-devel] [PATCH] opengl: vlc_list_reverse_foreach</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi,<br>
<br>
Maybe but what is the point? If you care about the order at all, you rarely <br>
need *both* ascending and descending orders. You can just swap <br>
vlc_list_append() and vlc_list_prepend() if you need to reverse the iteration <br>
order.<br>
<br>
-- <br>
Реми Дёни-Курмон<br>
<a href="http://www.remlab.net/">http://www.remlab.net/</a><br>
<br>
<br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></div>
</span></font></div>
</body>
</html>