Changeset 3544
- Timestamp:
- Oct 29, 2013, 8:47:18 PM (5 years ago)
- Location:
- proto/xmlschema
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
proto/xmlschema/validation_template_onevec_shiporder.cpp
r3542 r3544 121 121 int buffer_last; 122 122 FILE *gid_writein; 123 FILE *element_out; 123 124 #define ELEMENT_BUFFER_SIZE 30 124 125 char element_name_buffer[ELEMENT_BUFFER_SIZE]; … … 708 709 // cout << "2" << endl; 709 710 // cout << elem_vec_stack.top()<<endl; 710 if(Content_ gather && Content_model){711 if(Content_model){ 711 712 if(!(gid_vec[current_depth].empty())){ 712 713 // if(gid_vec.back() != 0){ … … 839 840 // s2 = s2 & (s2 - 1); 840 841 //} 841 if(Content_ gather && Content_model){842 if(Content_model){ 842 843 if (gid != 0){ 843 844 gid_vec[current_depth].push_back(gid); … … 1125 1126 1126 1127 static inline void validate_mul_block(){ 1128 FILE *element_out = fopen("element.out","w"); 1127 1129 struct Elem elem; 1128 1130 Validation_2 validation_2; … … 1144 1146 } 1145 1147 #endif 1148 for(j=0;j<MAX_COUNT;j++){ 1149 int lgth = gid_vec[j].size(); 1150 if (lgth == 0){ 1151 break; 1152 } 1153 fprintf(element_out,"%d\n",lgth); 1154 } 1155 fclose(element_out); 1146 1156 int lgth; 1147 1157 for(j=0;j<MAX_COUNT;j++){ … … 2079 2089 Content_model = 1; 2080 2090 Datatype = 0; 2081 Content_gather = 1;2091 Content_gather = 0; 2082 2092 }else if(strcmp(argv[3],"-d")==0){ 2083 2093 Symbol = 1; … … 2113 2123 //validate(); 2114 2124 //#ifdef CONTENT_MODEL 2115 if(Symbol && Content_model && !Content_gather) 2125 if(Symbol && Content_model && !Content_gather){ 2116 2126 validate_mul_block(); 2127 } 2117 2128 //#endif 2118 2129 PERF_SEC_DUMP(parser_timer);
Note: See TracChangeset
for help on using the changeset viewer.