diff options
Diffstat (limited to 'src/xine-utils')
-rw-r--r-- | src/xine-utils/array.c | 5 | ||||
-rw-r--r-- | src/xine-utils/array.h | 4 | ||||
-rw-r--r-- | src/xine-utils/attributes.h | 2 | ||||
-rw-r--r-- | src/xine-utils/color.c | 4 | ||||
-rw-r--r-- | src/xine-utils/compat.h | 5 | ||||
-rw-r--r-- | src/xine-utils/copy.c | 2 | ||||
-rw-r--r-- | src/xine-utils/cpu_accel.c | 2 | ||||
-rw-r--r-- | src/xine-utils/list.c | 5 | ||||
-rw-r--r-- | src/xine-utils/list.h | 4 | ||||
-rw-r--r-- | src/xine-utils/memcpy.c | 2 | ||||
-rw-r--r-- | src/xine-utils/monitor.c | 5 | ||||
-rw-r--r-- | src/xine-utils/pool.c | 5 | ||||
-rw-r--r-- | src/xine-utils/pool.h | 4 | ||||
-rw-r--r-- | src/xine-utils/ring_buffer.c | 5 | ||||
-rw-r--r-- | src/xine-utils/ring_buffer.h | 4 | ||||
-rw-r--r-- | src/xine-utils/sorted_array.c | 5 | ||||
-rw-r--r-- | src/xine-utils/sorted_array.h | 5 | ||||
-rw-r--r-- | src/xine-utils/utils.c | 5 | ||||
-rw-r--r-- | src/xine-utils/xine_buffer.c | 4 | ||||
-rw-r--r-- | src/xine-utils/xine_buffer.h | 4 | ||||
-rw-r--r-- | src/xine-utils/xine_check.c | 2 | ||||
-rw-r--r-- | src/xine-utils/xine_mutex.c | 5 | ||||
-rw-r--r-- | src/xine-utils/xineutils.h | 5 | ||||
-rw-r--r-- | src/xine-utils/xmllexer.c | 32 | ||||
-rw-r--r-- | src/xine-utils/xmllexer.h | 7 | ||||
-rw-r--r-- | src/xine-utils/xmlparser.c | 7 | ||||
-rw-r--r-- | src/xine-utils/xmlparser.h | 7 |
27 files changed, 53 insertions, 93 deletions
diff --git a/src/xine-utils/array.c b/src/xine-utils/array.c index ed529515b..6c226c7ef 100644 --- a/src/xine-utils/array.c +++ b/src/xine-utils/array.c @@ -15,10 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: array.c,v 1.4 2007/02/03 16:31:55 dsalt Exp $ - * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/src/xine-utils/array.h b/src/xine-utils/array.h index 80b7d3c9b..ae2093823 100644 --- a/src/xine-utils/array.h +++ b/src/xine-utils/array.h @@ -15,9 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: array.h,v 1.3 2007/02/03 16:31:55 dsalt Exp $ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * Array that can grow automatically when you add elements. * Inserting an element in the middle of the array implies memory moves. diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h index f7f5a111c..563832e5c 100644 --- a/src/xine-utils/attributes.h +++ b/src/xine-utils/attributes.h @@ -18,7 +18,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ /* use gcc attribs to align critical data structures */ diff --git a/src/xine-utils/color.c b/src/xine-utils/color.c index c5d42be9d..0b9cf0188 100644 --- a/src/xine-utils/color.c +++ b/src/xine-utils/color.c @@ -15,7 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * Color Conversion Utility Functions * @@ -60,8 +60,6 @@ * to facilitate these operations (such as the PPC AltiVec pixel-unpacking * instructions), these macros will automatically map to those special * instructions. - * - * $Id: color.c,v 1.30 2006/07/17 18:31:24 hadess Exp $ */ #include "xine_internal.h" diff --git a/src/xine-utils/compat.h b/src/xine-utils/compat.h index a6592b030..d4b95aeb3 100644 --- a/src/xine-utils/compat.h +++ b/src/xine-utils/compat.h @@ -15,10 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: compat.h,v 1.3 2003/04/20 21:13:26 guenter Exp $ - * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #ifndef XINE_COMPAT_H diff --git a/src/xine-utils/copy.c b/src/xine-utils/copy.c index 1a609ed89..ed42b3a88 100644 --- a/src/xine-utils/copy.c +++ b/src/xine-utils/copy.c @@ -15,7 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * $Id: * diff --git a/src/xine-utils/cpu_accel.c b/src/xine-utils/cpu_accel.c index b32733fba..c241dd7ef 100644 --- a/src/xine-utils/cpu_accel.c +++ b/src/xine-utils/cpu_accel.c @@ -16,7 +16,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #include "config.h" diff --git a/src/xine-utils/list.c b/src/xine-utils/list.c index 2c790c3db..65bdaec26 100644 --- a/src/xine-utils/list.c +++ b/src/xine-utils/list.c @@ -15,10 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: list.c,v 1.12 2006/09/26 05:19:49 dgp85 Exp $ - * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #ifdef HAVE_CONFIG_H diff --git a/src/xine-utils/list.h b/src/xine-utils/list.h index 8273d30f1..e00e30d6c 100644 --- a/src/xine-utils/list.h +++ b/src/xine-utils/list.h @@ -15,9 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: list.h,v 1.5 2007/02/19 23:34:32 dgp85 Exp $ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * Doubly-linked linked list. * diff --git a/src/xine-utils/memcpy.c b/src/xine-utils/memcpy.c index 539f4c8dd..1b3e38fd1 100644 --- a/src/xine-utils/memcpy.c +++ b/src/xine-utils/memcpy.c @@ -15,7 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * These are the MMX/MMX2/SSE optimized versions of memcpy * diff --git a/src/xine-utils/monitor.c b/src/xine-utils/monitor.c index c0cfd6179..fb323055c 100644 --- a/src/xine-utils/monitor.c +++ b/src/xine-utils/monitor.c @@ -15,12 +15,9 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: monitor.c,v 1.8 2006/06/23 18:24:22 dsalt Exp $ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * debug print and profiling functions - implementation - * */ #ifdef HAVE_CONFIG_H diff --git a/src/xine-utils/pool.c b/src/xine-utils/pool.c index 39dbccb0c..a1fddadd9 100644 --- a/src/xine-utils/pool.c +++ b/src/xine-utils/pool.c @@ -15,10 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: pool.c,v 1.2 2006/09/26 05:19:49 dgp85 Exp $ - * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/src/xine-utils/pool.h b/src/xine-utils/pool.h index 5f6e4bd7e..918da82a2 100644 --- a/src/xine-utils/pool.h +++ b/src/xine-utils/pool.h @@ -15,9 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: pool.h,v 1.2 2006/09/26 05:19:49 dgp85 Exp $ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * Object Pool */ diff --git a/src/xine-utils/ring_buffer.c b/src/xine-utils/ring_buffer.c index dc8ddbf80..031fda4fc 100644 --- a/src/xine-utils/ring_buffer.c +++ b/src/xine-utils/ring_buffer.c @@ -15,10 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: ring_buffer.c,v 1.5 2006/09/26 05:19:49 dgp85 Exp $ - * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/src/xine-utils/ring_buffer.h b/src/xine-utils/ring_buffer.h index fc826ba21..efcffd3b7 100644 --- a/src/xine-utils/ring_buffer.h +++ b/src/xine-utils/ring_buffer.h @@ -15,9 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: ring_buffer.h,v 1.3 2006/09/26 05:19:49 dgp85 Exp $ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * Fifo + Ring Buffer */ diff --git a/src/xine-utils/sorted_array.c b/src/xine-utils/sorted_array.c index c69d92d40..363325f0b 100644 --- a/src/xine-utils/sorted_array.c +++ b/src/xine-utils/sorted_array.c @@ -15,10 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: sorted_array.c,v 1.3 2006/09/26 05:19:49 dgp85 Exp $ - * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/src/xine-utils/sorted_array.h b/src/xine-utils/sorted_array.h index 767a2913c..a1894eca3 100644 --- a/src/xine-utils/sorted_array.h +++ b/src/xine-utils/sorted_array.h @@ -15,9 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: sorted_array.h,v 1.3 2006/09/26 05:19:49 dgp85 Exp $ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * Sorted array which grows automatically when you add elements. * A binary search is used to find the position of a new element. @@ -52,7 +50,6 @@ * * Delete the array: * xine_sarray_delete(sarray); - * */ #ifndef XINE_SORTED_ARRAY_H #define XINE_SORTED_ARRAY_H diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c index fa0c11dbe..47c32b713 100644 --- a/src/xine-utils/utils.c +++ b/src/xine-utils/utils.c @@ -15,10 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: utils.c,v 1.46 2006/07/21 04:47:17 dgp85 Exp $ - * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #define _POSIX_PTHREAD_SEMANTICS 1 /* for 5-arg getpwuid_r on solaris */ diff --git a/src/xine-utils/xine_buffer.c b/src/xine-utils/xine_buffer.c index 17b3a79db..190ab5197 100644 --- a/src/xine-utils/xine_buffer.c +++ b/src/xine-utils/xine_buffer.c @@ -15,9 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: xine_buffer.c,v 1.11 2006/06/23 18:24:22 dsalt Exp $ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * * generic dynamic buffer functions. The goals diff --git a/src/xine-utils/xine_buffer.h b/src/xine-utils/xine_buffer.h index 02a9e2cb1..84511bd1b 100644 --- a/src/xine-utils/xine_buffer.h +++ b/src/xine-utils/xine_buffer.h @@ -15,9 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: xine_buffer.h,v 1.7 2006/09/26 05:19:49 dgp85 Exp $ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * * generic dynamic buffer functions. The goals diff --git a/src/xine-utils/xine_check.c b/src/xine-utils/xine_check.c index f6a0498e8..f00a23832 100644 --- a/src/xine-utils/xine_check.c +++ b/src/xine-utils/xine_check.c @@ -15,7 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * Xine Health Check: * diff --git a/src/xine-utils/xine_mutex.c b/src/xine-utils/xine_mutex.c index e6b5025c8..c94f32be0 100644 --- a/src/xine-utils/xine_mutex.c +++ b/src/xine-utils/xine_mutex.c @@ -15,10 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: xine_mutex.c,v 1.5 2006/07/16 14:45:24 dsalt Exp $ - * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #ifdef HAVE_CONFIG_H diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index 03c5f689a..120cb3578 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -15,10 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - * - * $Id: xineutils.h,v 1.107 2006/12/25 15:16:33 dgp85 Exp $ - * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA */ #ifndef XINEUTILS_H #define XINEUTILS_H diff --git a/src/xine-utils/xmllexer.c b/src/xine-utils/xmllexer.c index 754a006f9..8879f7d0c 100644 --- a/src/xine-utils/xmllexer.c +++ b/src/xine-utils/xmllexer.c @@ -15,11 +15,8 @@ * * You should have received a copy of the GNU Library General Public * License along with the Gnome Library; see the file COPYING.LIB. If not, - * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * $Id: xmllexer.c,v 1.13 2007/03/04 16:19:12 hadess Exp $ - * + * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth + * Floor, Boston, MA 02110, USA */ #define LOG_MODULE "xmllexer" @@ -39,6 +36,9 @@ #include <ctype.h> #include <string.h> #include <stdlib.h> +#ifdef HAVE_ICONV +#include <iconv.h> +#endif /* private constants*/ #define NORMAL 0 /* normal lex mode */ @@ -463,7 +463,7 @@ char *lexer_decode_entities (const char *tok) { /* parse the character entity (on failure, treat it as literal text) */ const char *tp = tok; - long i; + signed long i; for (i = 0; lexer_entities[i].code; ++i) if (!strncmp (lexer_entities[i].name, tok, lexer_entities[i].namelen) @@ -491,7 +491,7 @@ char *lexer_decode_entities (const char *tok) else i = strtol (tp, (char **)&tp, 10); - if (i < 1 || i > 255 || *tp != ';') + if (*tp != ';' || i < 1) { /* out of range, or format error */ *bp++ = '&'; @@ -499,7 +499,23 @@ char *lexer_decode_entities (const char *tok) } tok = tp + 1; - *bp++ = i; + + if (i < 128) + /* ASCII - store as-is */ + *bp++ = i; + else + { + /* Non-ASCII, so convert to UTF-8 */ + int count = (i >= 0x04000000) ? 5 : + (i >= 0x00200000) ? 4 : + (i >= 0x00010000) ? 3 : + (i >= 0x00000800) ? 2 : 1; + *bp = (char)(0x1F80 >> count); + count *= 6; + *bp++ |= i >> count; + while ((count -= 6) >= 0) + *bp++ = 128 | ((i >> count) & 0x3F); + } } } *bp = 0; diff --git a/src/xine-utils/xmllexer.h b/src/xine-utils/xmllexer.h index 5a217fcd8..1e646f9b5 100644 --- a/src/xine-utils/xmllexer.h +++ b/src/xine-utils/xmllexer.h @@ -15,11 +15,8 @@ * * You should have received a copy of the GNU Library General Public * License along with the Gnome Library; see the file COPYING.LIB. If not, - * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * $Id: xmllexer.h,v 1.8 2007/03/04 16:19:12 hadess Exp $ - * + * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth + * Floor, Boston, MA 02110, USA */ /* xml lexer */ diff --git a/src/xine-utils/xmlparser.c b/src/xine-utils/xmlparser.c index 2ace4aba1..a5d8212d2 100644 --- a/src/xine-utils/xmlparser.c +++ b/src/xine-utils/xmlparser.c @@ -15,11 +15,8 @@ * * You should have received a copy of the GNU Library General Public * License along with the Gnome Library; see the file COPYING.LIB. If not, - * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * $Id: xmlparser.c,v 1.16 2007/03/04 16:19:12 hadess Exp $ - * + * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth + * Floor, Boston, MA 02110, USA */ #include <unistd.h> diff --git a/src/xine-utils/xmlparser.h b/src/xine-utils/xmlparser.h index f202ca28d..98695a756 100644 --- a/src/xine-utils/xmlparser.h +++ b/src/xine-utils/xmlparser.h @@ -15,11 +15,8 @@ * * You should have received a copy of the GNU Library General Public * License along with the Gnome Library; see the file COPYING.LIB. If not, - * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * $Id: xmlparser.h,v 1.6 2007/03/04 16:19:12 hadess Exp $ - * + * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth + * Floor, Boston, MA 02110, USA */ #ifndef XML_PARSER_H |