<html><head></head><body>Not anymore, no.<br><br>And even that was somewhat questionable. Except for maybe Lua RC, I don't think we have any code that used the second value from vlclua_push_ret().<br><br><div class="gmail_quote">Le 20 mai 2019 09:33:15 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">It's used in vlclua_push_ret()<br><br>On 2019-05-19 19:24, Rémi Denis-Courmont wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><hr>  include/vlc_common.h |  2 --<br>  po/POTFILES.in       |  1 -<br>  src/Makefile.am      |  1 -<br>  src/libvlccore.sym   |  1 -<br>  src/misc/error.c     | 67 --------------------------------------------<br>  5 files changed, 72 deletions(-)<br>  delete mode 100644 src/misc/error.c<br><br>diff --git a/include/vlc_common.h b/include/vlc_common.h<br>index 7bb8d27f58..ce5fb50708 100644<br>--- a/include/vlc_common.h<br>+++ b/include/vlc_common.h<br>@@ -950,8 +950,6 @@ static inline bool mul_overflow(unsigned long long a, unsigned long long b,<br>  <br>  #define EMPTY_STR(str) (!str || !*str)<br>  <br>-VLC_API const char *vlc_error_string(int) VLC_USED;<br>-<br>  #include <vlc_arrays.h><br>  <br>  /* MSB (big endian)/LSB (little endian) conversions - network order is always<br>diff --git a/po/POTFILES.in b/po/POTFILES.in<br>index 722fa705c8..967c316c48 100644<br>--- a/po/POTFILES.in<br>+++ b/po/POTFILES.in<br>@@ -94,7 +94,6 @@ src/libvlc-module.c<br>  src/misc/actions.c<br>  src/misc/block.c<br>  src/misc/cpu.c<br>-src/misc/error.c<br>  src/misc/es_format.c<br>  src/misc/events.c<br>  src/misc/filter_chain.c<br>diff --git a/src/Makefile.am b/src/Makefile.am<br>index bc826dfefe..0dcb5e0bda 100644<br>--- a/src/Makefile.am<br>+++ b/src/Makefile.am<br>@@ -370,7 +370,6 @@ libvlccore_la_SOURCES = \<br>          misc/objres.c \<br>       misc/variables.h \<br>    misc/variables.c \<br>-   misc/error.c \<br>        misc/xml.c \<br>          misc/addons.c \<br>       misc/filter.c \<br>diff --git a/src/libvlccore.sym b/src/libvlccore.sym<br>index efc07fbb25..25526844e4 100644<br>--- a/src/libvlccore.sym<br>+++ b/src/libvlccore.sym<br>@@ -537,7 +537,6 @@ vlc_sem_wait<br>  vlc_control_cancel<br>  vlc_GetCPUCount<br>  vlc_CPU<br>-vlc_error_string<br>  vlc_event_attach<br>  vlc_event_detach<br>  vlc_filenamecmp<br>diff --git a/src/misc/error.c b/src/misc/error.c<br>deleted file mode 100644<br>index 80c1f9b08d..0000000000<br>--- a/src/misc/error.c<br>+++ /dev/null<br>@@ -1,67 +0,0 @@<br>-/*****************************************************************************<br>- * error.c: error handling routine<br>- *****************************************************************************<br>- * Copyright (C) 2002-2004 VLC authors and VideoLAN<br>- *<br>- * Authors: Samuel Hocevar <sam@zoy.org><br>- *<br>- * This program is free software; you can redistribute it and/or modify it<br>- * under the terms of the GNU Lesser General Public License as published by<br>- * the Free Software Foundation; either version 2.1 of the License, or<br>- * (at your option) any later version.<br>- *<br>- * This program is distributed in the hope that it will be useful,<br>- * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>- * GNU Lesser General Public License for more details.<br>- *<br>- * You should have received a copy of the GNU Lesser General Public License<br>- * along with this program; if not, write to the Free Software Foundation,<br>- * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.<br>- *****************************************************************************/<br>-<br>-/*****************************************************************************<br>- * Preamble<br>- *****************************************************************************/<br>-#ifdef HAVE_CONFIG_H<br>-# include "config.h"<br>-#endif<br>-<br>-#include <vlc_common.h><br>-<br>-/*****************************************************************************<br>- * vlc_error_string: strerror() equivalent<br>- *****************************************************************************<br>- * This function returns a string describing the error code passed in the<br>- * argument. A list of all errors can be found in include/vlc_common.h.<br>- *****************************************************************************/<br>-const char *vlc_error_string(int i_err)<br>-{<br>-    switch( i_err )<br>-    {<br>-        case VLC_SUCCESS:<br>-            return "no error";<br>-<br>-        case VLC_ENOMEM:<br>-            return "not enough memory";<br>-        case VLC_ETIMEOUT:<br>-            return "timeout";<br>-<br>-        case VLC_ENOMOD:<br>-            return "module not found";<br>-<br>-        case VLC_ENOOBJ:<br>-            return "object not found";<br>-<br>-        case VLC_ENOVAR:<br>-            return "variable not found";<br>-        case VLC_EBADVAR:<br>-            return "bad variable value";<br>-<br>-        case VLC_EGENERIC:<br>-            return "generic error";<br>-        default:<br>-            return "unknown error";<br>-    }<br>-}<br>-<br>-- <br>2.20.1<hr>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><br><br></blockquote><hr>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></pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>