Changeset 200 for pjproject/trunk


Ignore:
Timestamp:
Feb 19, 2006 3:36:21 PM (19 years ago)
Author:
bennylp
Message:

Added support for <! element

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/xml.c

    r194 r200  
    7777    } 
    7878 
    79     /* Handle comments construct (i.e. "<!--") */ 
    80     if (pj_scan_strcmp(scanner, "<!--", 4) == 0) { 
    81         pj_scan_advance_n(scanner, 4, PJ_FALSE); 
     79    /* Handle comments construct (i.e. "<!") */ 
     80    if (pj_scan_strcmp(scanner, "<!", 2) == 0) { 
     81        pj_scan_advance_n(scanner, 2, PJ_FALSE); 
    8282        for (;;) { 
    8383            pj_str_t dummy; 
    84             pj_scan_get_until_ch(scanner, '-', &dummy); 
    85             if (pj_scan_strcmp(scanner, "-->", 3) == 0) { 
    86                 pj_scan_advance_n(scanner, 3, PJ_TRUE); 
     84            pj_scan_get_until_ch(scanner, '>', &dummy); 
     85            if (pj_scan_strcmp(scanner, ">", 1) == 0) { 
     86                pj_scan_advance_n(scanner, 1, PJ_TRUE); 
    8787                break; 
    8888            } else { 
Note: See TracChangeset for help on using the changeset viewer.