mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=11496
This commit is contained in:
parent
a2bedc5aea
commit
e3f6ea7e91
|
@ -12411,3 +12411,10 @@ David 7 Nov 2006
|
|||
cs_scheduler.C
|
||||
lib/
|
||||
miofile.C
|
||||
|
||||
David 8 Nov 2006
|
||||
- core client: change XML parser to handle tags of the form <foo />,
|
||||
treating it as <foo/> (i.e. skip the space)
|
||||
|
||||
lib/
|
||||
parse.C
|
||||
|
|
|
@ -437,14 +437,16 @@ bool XML_PARSER::scan_nonws(int& first_char) {
|
|||
}
|
||||
|
||||
// we just read a <; read until we find a >,
|
||||
// and copy intervening text to buf.
|
||||
// and copy intervening text (except spaces) to buf.
|
||||
// Return true iff reached EOF
|
||||
// TODO: parse attributes too
|
||||
//
|
||||
bool XML_PARSER::scan_tag(char* buf, int len) {
|
||||
int c;
|
||||
while (1) {
|
||||
c = f->_getc();
|
||||
if (c == EOF) return true;
|
||||
if (isspace(c)) continue;
|
||||
if (c == '>') {
|
||||
*buf = 0;
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue