Changeset 203 for soft/giet_vm/xml
- Timestamp:
- Aug 13, 2012, 10:52:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/xml/xml_parser.c
r202 r203 1078 1078 } 1079 1079 1080 ////////// get ident attribute (optional : 0 if missing) 1081 value = getIntValue(reader,"ident", &ok); 1082 if ( ok ) 1083 { 1084 #if XML_PARSER_DEBUG 1085 printf(" ident = %d\n", value); 1086 #endif 1087 vseg[vseg_index]->ident = value; 1088 } 1089 else 1090 { 1091 vseg[vseg_index]->ident = 0; 1092 } 1093 1080 1094 /////////// get vbase attribute 1081 1095 value = getIntValue(reader,"vbase", &ok); … … 1127 1141 exit(1); 1128 1142 } 1129 1130 ////////// get ident attribute (optional : 0 if missing)1131 value = getIntValue(reader,"ident", &ok);1132 if ( ok )1133 {1134 #if XML_PARSER_DEBUG1135 printf(" ident = %d\n", value);1136 #endif1137 vseg[vseg_index]->ident = value;1138 }1139 else1140 {1141 vseg[vseg_index]->ident = 0;1142 }1143 1143 1144 1144 //////// get mode attribute … … 1257 1257 else 1258 1258 { 1259 printf("[XML ERROR] illegal or missing <startname> attribute for vspace % d\n",1260 vspace _index);1259 printf("[XML ERROR] illegal or missing <startname> attribute for vspace %s\n", 1260 vspace[vspace_index]->name); 1261 1261 exit(1); 1262 1262 } … … 1281 1281 if(index == -1) 1282 1282 { 1283 printf("[XML ERROR] vobj containing the start vector not found %s\n",str); 1283 printf("[XML ERROR] vobj containing start vector not found in vspace %s\n", 1284 vspace[vspace_index]->name); 1284 1285 exit(-1); 1285 1286 }
Note: See TracChangeset
for help on using the changeset viewer.