Changeset 84070 in vbox for trunk/include/iprt
- Timestamp:
- Apr 28, 2020 11:58:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/bldprog-strtab-template.cpp.h
r84055 r84070 140 140 /** The 127 words we've picked to be indexed by reference. */ 141 141 BLDPROGSTRING aCompDict[127]; 142 /** The frequency of the 127 dictionary entries. */ 143 size_t auCompDictFreq[127]; 142 144 /** Incoming strings pending compression. */ 143 145 PBLDPROGSTRING *papPendingStrings; … … 613 615 ++it, i++) 614 616 { 617 pThis->auCompDictFreq[i] = it->m_pPair->second; 615 618 pThis->aCompDict[i].cchString = it->m_pPair->first.length(); 616 619 pThis->aCompDict[i].pszString = (char *)malloc(pThis->aCompDict[i].cchString + 1); … … 1032 1035 pszBaseName, (unsigned)RT_ELEMENTS(pThis->aCompDict)); 1033 1036 for (unsigned i = 0; i < RT_ELEMENTS(pThis->aCompDict); i++) 1034 fprintf(pOut, " { %#08x, %#04x }, // %s\n", 1035 pThis->aCompDict[i].offStrTab, (unsigned)pThis->aCompDict[i].cchString, pThis->aCompDict[i].pszString); 1037 fprintf(pOut, " { %#08x, %#04x }, // %6lu - %s\n", 1038 pThis->aCompDict[i].offStrTab, (unsigned)pThis->aCompDict[i].cchString, 1039 (unsigned long)pThis->auCompDictFreq[i], pThis->aCompDict[i].pszString); 1036 1040 fprintf(pOut, "};\n\n"); 1037 1041 #endif
Note:
See TracChangeset
for help on using the changeset viewer.