summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-21 22:05:50 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-21 22:05:50 +0100
commit5bdc44a5e1ab86562d344a1e14373527406bf914 (patch)
tree9f8d438c63bbfedb7cfbf482c4117f73be1936b0 /src
parent326c127679bb27c7e894ddebf9db49158744fd38 (diff)
downloadxine-lib-5bdc44a5e1ab86562d344a1e14373527406bf914.tar.gz
xine-lib-5bdc44a5e1ab86562d344a1e14373527406bf914.tar.bz2
Handle single-quoted attributes in XML.
Diffstat (limited to 'src')
-rw-r--r--src/xine-utils/xmllexer.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/xine-utils/xmllexer.c b/src/xine-utils/xmllexer.c
index 575c37611..754a006f9 100644
--- a/src/xine-utils/xmllexer.c
+++ b/src/xine-utils/xmllexer.c
@@ -120,6 +120,10 @@ int lexer_get_token(char * tok, int tok_size) {
state = 7;
break;
+ case '\'': /* " */
+ state = 12;
+ break;
+
case '-':
state = 10;
tok[tok_pos] = c;
@@ -322,6 +326,17 @@ int lexer_get_token(char * tok, int tok_size) {
}
break;
+ /* T_STRING (single quotes) */
+ case 12:
+ tok[tok_pos] = c;
+ lexbuf_pos++;
+ if (c == '\'') { /* " */
+ tok[tok_pos] = '\0'; /* FIXME */
+ return T_STRING;
+ }
+ tok_pos++;
+ break;
+
/* IDENT */
case 100:
switch (c) {