VirtualBox

Changeset 23605 in vbox for trunk/src/VBox/Main/webservice


Ignore:
Timestamp:
Oct 7, 2009 6:49:20 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53277
Message:

split-soapC.cpp: hack for dealing with static const struct soap_coe_map variables that are used for handling enum conversions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/split-soapC.cpp

    r23400 r23605  
    8787        unsigned long cIfNesting = 0;
    8888        unsigned long cBraceNesting = 0;
     89        unsigned long cLinesSinceStaticMap = ~0UL / 2;
    8990        bool fJustZero = false;
    9091
     
    115116                           );
    116117                uLimit += cbChunk;
     118                cLinesSinceStaticMap = ~0UL / 2;
    117119            }
    118120
     
    159161            }
    160162
     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
    161169            /* 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!*/)
    163175            {
    164176                fclose(pFileOut);
    165177                pFileOut = NULL;
    166178            }
    167                
     179
    168180            if (rc)
    169181                break;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette