qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs xml.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs xml.c
Date: Wed, 26 Dec 2007 09:52:07 +0000

CVSROOT:        /cvsroot/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        07/12/26 09:52:07

Modified files:
        .              : xml.c 

Log message:
        simplified probe code

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/xml.c?cvsroot=qemacs&r1=1.9&r2=1.10

Patches:
Index: xml.c
===================================================================
RCS file: /cvsroot/qemacs/qemacs/xml.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- xml.c       15 Dec 2007 16:44:31 -0000      1.9
+++ xml.c       26 Dec 2007 09:52:07 -0000      1.10
@@ -162,16 +162,15 @@
 
 int xml_mode_probe(ModeProbeData *p1)
 {
-    const char *p;
+    const u8 *p;
 
-    p = (const char *)p1->buf;
-    while (qe_isspace((unsigned char)*p))
+    p = p1->buf;
+    while (qe_isspace(*p))
         p++;
     if (*p != '<')
         return 0;
     p++;
-    if (*p != '!' && *p != '?' && *p != '/' && 
-        !qe_isalpha((unsigned char)*p))
+    if (*p != '!' && *p != '?' && !qe_isalpha(*p))
         return 0;
     return 90; /* leave some room for more specific XML parser */
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]