[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs htmlsrc.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs htmlsrc.c |
Date: |
Wed, 19 Aug 2015 14:27:41 +0000 |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 15/08/19 14:27:40
Modified files:
. : htmlsrc.c
Log message:
htmlsrc: parse hex html entities
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/htmlsrc.c?cvsroot=qemacs&r1=1.25&r2=1.26
Patches:
Index: htmlsrc.c
===================================================================
RCS file: /sources/qemacs/qemacs/htmlsrc.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- htmlsrc.c 19 Jun 2015 14:23:55 -0000 1.25
+++ htmlsrc.c 19 Aug 2015 14:27:40 -0000 1.26
@@ -25,24 +25,26 @@
unsigned int *p_start, c;
p_start = p;
- c = (u8)*p;
+ c = *p;
if (c != '&')
return 0;
- p++;
- c = (u8)*p;
-
+ c = *++p;
if (c == '#') {
+ c = *++p;
+ if (c == 'x') {
do {
- p++;
- c = (u8)*p;
- } while (qe_isdigit(c));
+ c = *++p;
+ } while (qe_isxdigit(c));
+ } else {
+ while (qe_isdigit(c))
+ c = *++p;
+ }
} else
if (qe_isalpha(c)) {
do {
- p++;
- c = (u8)*p;
+ c = *++p;
} while (qe_isalnum(c));
} else {
/* not an entity */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemacs-commit] qemacs htmlsrc.c,
Charlie Gordon <=