Changeset 23605 in vbox for trunk/src/VBox/Main/webservice
- Timestamp:
- Oct 7, 2009 6:49:20 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53277
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/split-soapC.cpp
r23400 r23605 87 87 unsigned long cIfNesting = 0; 88 88 unsigned long cBraceNesting = 0; 89 unsigned long cLinesSinceStaticMap = ~0UL / 2; 89 90 bool fJustZero = false; 90 91 … … 115 116 ); 116 117 uLimit += cbChunk; 118 cLinesSinceStaticMap = ~0UL / 2; 117 119 } 118 120 … … 159 161 } 160 162 163 /* look for static variables used for enum conversion. */ 164 if (!strncmp(pLine, "static const struct soap_code_map", sizeof("static const struct soap_code_map") - 1)) 165 cLinesSinceStaticMap = 0; 166 else 167 cLinesSinceStaticMap++; 168 161 169 /* start a new output file if necessary and possible */ 162 if (cbWritten >= uLimit && cIfNesting == 0 && fJustZero && cFiles < cChunk) 170 if ( cbWritten >= uLimit 171 && cIfNesting == 0 172 && fJustZero 173 && cFiles < cChunk 174 && cLinesSinceStaticMap > 150 /*hack!*/) 163 175 { 164 176 fclose(pFileOut); 165 177 pFileOut = NULL; 166 178 } 167 179 168 180 if (rc) 169 181 break;
Note:
See TracChangeset
for help on using the changeset viewer.