Changeset 186
- Timestamp:
- Jul 30, 2012, 4:12:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/xml/xml_parser.c
r183 r186 501 501 if ( strcmp(tag,"port") == 0 ) cpPortNode(reader); 502 502 else if ( strcmp(tag,"reg") == 0 ) cpRegNode(reader); 503 else if ( strcmp(tag,"#text") == 0 ) { } 503 else if ( strcmp(tag,"#text" ) == 0 ) { } 504 else if ( strcmp(tag,"#comment") == 0 ); 504 505 else if ( strcmp(tag,"coproc") == 0 ) 505 506 { … … 674 675 if ( strcmp(tag,"irq") == 0 ) irqNode(reader); 675 676 else if ( strcmp(tag,"#text") == 0 ) { } 677 else if ( strcmp(tag,"#comment") == 0 ); 676 678 else if ( strcmp(tag,"proc") == 0 ) 677 679 { … … 1234 1236 else if ( strcmp(tag,"task") == 0 ) taskNode(reader); 1235 1237 else if ( strcmp(tag,"#text") == 0 ) { } 1238 else if ( strcmp(tag,"#comment") == 0 ); 1236 1239 else if ( strcmp(tag,"vspace") == 0 ) 1237 1240 { … … 1430 1433 else if ( strcmp(tag, "coproc") == 0 ) coprocNode(reader); 1431 1434 else if ( strcmp(tag, "#text") == 0 ) { } 1435 else if ( strcmp(tag,"#comment") == 0 ); 1432 1436 else if ( strcmp(tag, "cluster") == 0 ) 1433 1437 { … … 1461 1465 if ( strcmp(tag,"cluster") == 0 ) clusterNode(reader); 1462 1466 else if ( strcmp(tag,"#text") == 0 ) { } 1467 else if ( strcmp(tag,"#comment") == 0 ); 1463 1468 else if ( strcmp(tag,"clusterset") == 0 ) 1464 1469 { … … 1508 1513 if ( strcmp(tag,"vseg") == 0 ) vsegNode(reader); 1509 1514 else if ( strcmp(tag,"#text" ) == 0 ) { } 1515 else if ( strcmp(tag,"#comment") == 0 ); 1510 1516 else if ( strcmp(tag,"globalset") == 0 ) 1511 1517 { … … 1550 1556 if ( strcmp(tag,"vspace") == 0 ) vspaceNode(reader); 1551 1557 else if ( strcmp(tag,"#text" ) == 0 ) { } 1558 else if ( strcmp(tag,"#comment") == 0 ); 1552 1559 else if ( strcmp(tag,"vspaceset") == 0 ) 1553 1560 { … … 1706 1713 else if ( strcmp(tag,"vspaceset") == 0 ) vspaceSetNode(reader); 1707 1714 else if ( strcmp(tag,"#text") == 0 ) { } 1715 else if ( strcmp(tag,"#comment") == 0 ); 1708 1716 else if ( strcmp(tag,"mapping_info") == 0 ) 1709 1717 { … … 1905 1913 } 1906 1914 else 1915 if ( strcmp(tag,"#comment") == 0 );// a way to skips comment 1916 else 1907 1917 { 1908 1918 printf("[XML ERROR] Wrong file type: \"%s\"\n", argv[1]);
Note: See TracChangeset
for help on using the changeset viewer.